POST
/
rtp_requests
/
{rtp_request_id}
/
cancel
curl --request POST \
  --url https://api.useswift.dev/rtp_requests/{rtp_request_id}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "account_id": "account_vjb43lkAdf934jb13Df93",
  "amount": 10000,
  "created_at": "2024-01-31T23:59:59Z",
  "id": "rtp_request_vjb43lkAdf934jb13Df93",
  "reason": null,
  "rfp_registration_id": "rfp_registration_vjb43lkAdf934jb13Df93",
  "status": "pending",
  "user_bank_id": "user_bank_vjb43lkAdf934jb13Df93"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

rtp_request_id
string
required

The identifier of the Real-time Payments Request for Payment to cancel.

Response

200
application/json

Real-Time Payments Request

Represents a Request for Payment over the Real-time Payments network. This transfer is between an RTP-enabled User Bank and an Account.