Sample Payment Cancellation Request and Response in JSON Format
Using the below example, you can cancel a payment request for the 438418685299 payment.
Sample Payment Cancellation Request in JSON Format
{
"C1-CancelPayment":
{
"cancelReason": "ENTR"
"cancelTypeFlag": "T",
"paymentEventId": "",
"paymentId": "547019197259",
"bank": "BOA",
"bankAccount": "BOA",
"sourceSystem": "ZZ_IWS_ES",
"externalTransactionId": "122",
"externalSourceId": "444",
}
}
Sample Payment Cancellation Response in JSON Format
{
"C1-CancelPayment":
{
"cancelReason": "ENTR"
"cancelTypeFlag": "T",
"paymentEventId": "",
"paymentId": "547019197259",
"bank": "BOA",
"bankAccount": "BOA",
"sourceSystem": "ZZ_IWS_ES",
"externalTransactionId": "122",
"externalSourceId": "444",
"paymentsDtls":
{
"paymentEventId": "",
"paymentId": "547019197259",
"paymentStatus": "Frozen",
"messageValue": "",
"statusCd": "Success",
"paymentStatusDesc": ""
}
}
}
Note: We have given the above request and response samples to illustrate
how the attribute value pairs should be structured while sending a
payment cancellation request from the external system. However, you
should not seamlessly use this request sample in your environment
because the required pre-requisite data may not be available in your
environment. In such case, the system will give erroneous results.
Related Topics
For more information on... | See... |
---|---|
Payment Cancellation Request and Response - Attribute/Value Pairs in JSON Format | Payment Cancellation Request and Response - Tags in JSON Format |