Corgi BankDocumentation
OpenAPI

Independently cancel an unposted payment or recover its committed journal

POST/facilities/{id}/payment-cancellations

Path parameters

idstringRequired

Headers

Idempotency-KeystringOptional

Send on every write that creates or changes money or state; a replay with the same key returns the original result with 200.

Body parameters

payment_keystringRequired
reasonstringRequired

Returns

200 OK

actorstringRequired
atstring · date-timeRequired
completed_atstring · date-time or nullOptional
executed_bystringOptional
facility_idstringRequired
outcomestringOptional
paymentobject or nullOptional

FacilityPayment is money applied to a facility.

10 child attributes
amountintegerRequired
created_atstring · date-timeRequired
facility_idstringRequired
fees_amountintegerRequired
idstringRequired
income_amountintegerRequired

Factor income recognised on a remittance, or a factoring fee

interest_amountintegerRequired
journal_idstringRequired

Example jrnl_2tVh8nqLxq4GbDe0K1F6S9zRcWm

kindstringRequired

Payment, remittance (merchant cash advance), settlement (of an item)

principal_amountintegerRequired
payment_keystringRequired
reasonstringRequired

Errors

Every error is a problem document with a stable code. See Errors.

400401403404409412413422424429500503

to move to open esc to close