POST
Cancel an intermediary payment (back office)

Authorizations

Authorization
string
header
required

By route: the id_token of the client's server login or of the customer, or a back-office user's token. The gateway authorizer rejects any other token before the route runs.

Headers

idempotency-key
string<uuid>
required

Required. A UUID: the same key with the same body returns the stored result; with a different body it is a 409 IDEMPOTENCY_KEY_REUSED.

Path Parameters

customerId
string
required

The paying customer

Minimum string length: 1
accountId
string
required

The customer's EUR account

Minimum string length: 1
paymentRequestId
string<uuid>
required

The intermediary payment

Query Parameters

programId
string
required

Required for the client's server login and back office: the program to act on. Every handler bounds it.

Minimum string length: 1
sandbox
enum<string>

Back office only, when the token carries no sandbox claim

Available options:
true,
false

Body

application/json
reasonCode
enum<string>
required
Available options:
PAYOUT_FAILED,
CUSTOMER_REQUEST,
DUPLICATE,
COMPLIANCE,
OTHER
reason
string
required

Shown to the customer: 10-500 characters

internalNote
string

Back office only, never shown to the customer: up to 1000 characters

Maximum string length: 1000
acknowledgePayoutRisk
boolean

Required (true) once TM has passed: the client may already have paid the recipient

Response

Cancelled, or the original cancellation on a repeat

success
enum<boolean>
required
Available options:
true
data
object
required