Skip to main content
POST
Cancel RTP

Authorizations

X-SFPY-AGGREGATOR-SECRET-KEY
string
header
required

Path Parameters

raast-aggregator-id
string
required

The unique identifier for the aggregator

Example:

"agg_2288490a-2176-4de5-b373-0ffb6f8e2e6e"

payment-id
string
required

The unique identifier for the payment

Example:

"pm_2288490a-2176-4de5-b373-0ffb6f8e2e6e"

Body

application/json

Request to cancel an unsettled RTP payment

RTP cancellation payload

request_id
string<uuid>
required

Client-supplied UUID v4 idempotency key for the cancellation (exactly 36 characters with hyphens). Must be distinct from the original payment's request id.

Example:

"f0a3b1c2-8d4e-4f6a-9b1c-2d3e4f5a6b7c"

reason
enum<string>
required

Public reason for the cancellation. Only PAYMENT_CANCEL_REASON_CUSTOMER_REQUEST is currently accepted; the remaining reason codes are reserved until Raast confirms support for them.

Available options:
PAYMENT_CANCEL_REASON_CUSTOMER_REQUEST
Example:

"PAYMENT_CANCEL_REASON_CUSTOMER_REQUEST"

additional_info
string

Optional free-text context for the cancellation (max 105 characters).

Maximum string length: 105

Response

Cancellation request accepted. The camt.055 has been posted to Raast and the final outcome is delivered asynchronously.

Standard response structure for successful operations

api_version
string

The current version of the API spec

Example:

"v1"

data
object

The created cancellation record.