QuickPay Delete API
HTTPS POST / Server-to-Server
Sandbox endpoint : demo2.2c2p.com/2C2PFrontEnd/QuickPay/DirectAPI
Go live when you are ready, Live Endpoint is provided.
Delete Request
Below are the guidelines that how to prepare a delete request and send to 2c2p
- Below sample request data show the request structure. Refer QuickPay Delete Request Parameter for API Specification.
Bind the QuickPay Delete Request data into QPDeleteReq.
{
"QPDeleteReq": {
"version": "2.1",
"merchantID": "JT01",
"qpID": "230969",
"timeStamp": "20210125053251",
"hashValue": "f65175454ef754cc3ef4d0fe93115bffbf7f1123"
}
}
- Encode the request data using Base64 Format. Below show sample encoded request
ewoJIlFQRGVsZXRlUmVxIjogewoJCSJ2ZXJzaW9uIjogIjIuMSIsCgkJIm1lcmNoYW50SUQiOiAiSlQwMSIsCgkJInFwSUQiOiAiMjMwOTY5IiwKCQkidGltZVN0YW1wIjogIjIwMjEwMTI1MDUzMjUxIiwKCQkiaGFzaFZhbHVlIjogImY2NTE3NTQ1NGVmNzU0Y2MzZWY0ZDBmZTkzMTE1YmZmYmY3ZjExMjMiCgl9Cn0=
- Send the encoded request data to API endpoint.
Delete Response
Below are the guidelines that how to process delete response from 2c2p.
- QuickPay Delete API will return response data in Base64 format. Sample response show below.
eyJRUERlbGV0ZVJlcyI6eyJ2ZXJzaW9uIjoiMi4xIiwidGltZVN0YW1wIjoiMjAyMTAxMjUxNjM0NTMiLCJxcElEIjoiMjMwOTY5IiwicmVzQ29kZSI6IjAwMCIsInJlc0Rlc2MiOiJTdWNjZXNzIiwiaGFzaFZhbHVlIjoiMDVEOERERUY1RjQzRjU4NjBBQkY2OEJBQTE2MTE1MUU5QTk2NTM5MiJ9fQ==
- Decode the response data using Base64 Format. Below show decoded QuickPay Delete Response Data
{
"QPDeleteRes": {
"version": "2.1",
"timeStamp": "20210125163453",
"qpID": "230969",
"resCode": "000",
"resDesc": "Success",
"hashValue": "05D8DDEF5F43F5860ABF68BAA161151E9A965392"
}
}
- Read the QuickPay Delete Response data from QPDeleteRes. Refer QuickPay Delete Response Parameter for API Specification.
Updated almost 3 years ago