post https://api.sandbox.directdebit.belvo.com/payment_requests//cancel
Cancel a payment request.
Info
You can only cancel a payment request when the
status
is in theinitial
state.
Responses
Cancel a payment request.
Info
You can only cancel a payment request when the
status
is in theinitial
state.
xxxxxxxxxx
curl --request POST \
--url https://api.sandbox.directdebit.belvo.com/payment_requests/paymentRequestId/cancel \
--header 'accept: application/json'
xxxxxxxxxx
21{
"id": "0d1a377b-b4c5-4a94-9e2e-83e59d1f6a9c",
"createdDate": "2022-02-09T08:45:50.406032Z",
"lastUpdatedDate": "2022-02-09T08:45:50.406032Z",
"status": "processing",
"failedReason": null,
"failedReasonMessage": null,
"amount": "100000.00",
"currency": "mxn",
"customer": "3118128a-6792-4b06-bd61-4acf6f6ad6b5",
"customerName": "Carlos Vives",
"reference": "Monthly gym subscription",
"paymentMethod": {
"type": "bank_account",
"details": {
"accountNumber": "445566790",
"accountType": "savings",
"bank": "mx_citi_banamex"
}
}
}