QuickPay Delete API
HTTPS POST / Server-to-Server
Sandbox endpoint : demo2.2c2p.com/2C2PFrontEnd/QuickPay/DirectAPI
To go live, please refer to: Live endpoint guide
Delete Request
- To prepare an API request to delete QuickPay data, refer to the sample request structure below.
For specific API request parameters, refer to: QuickPay Delete Request Parameter
{
"QPDeleteReq": {
"version": "2.1",
"merchantID": "JT01",
"qpID": "230969",
"timeStamp": "20210125053251",
"hashValue": "f65175454ef754cc3ef4d0fe93115bffbf7f1123"
}
}
- Bind the QuickPay Delete Request data into QPDeleteReq.
Encode the request data in Base64 format. The sample code below demonstrates correctly encoded request data.
ewoJIlFQRGVsZXRlUmVxIjogewoJCSJ2ZXJzaW9uIjogIjIuMSIsCgkJIm1lcmNoYW50SUQiOiAiSlQwMSIsCgkJInFwSUQiOiAiMjMwOTY5IiwKCQkidGltZVN0YW1wIjogIjIwMjEwMTI1MDUzMjUxIiwKCQkiaGFzaFZhbHVlIjogImY2NTE3NTQ1NGVmNzU0Y2MzZWY0ZDBmZTkzMTE1YmZmYmY3ZjExMjMiCgl9Cn0=
- Send the encoded request data to the API endpoint.
Delete Response
- To process a response from the Delete API, refer to the sample response below. Note that the API will return response data in Base64 format.
eyJRUERlbGV0ZVJlcyI6eyJ2ZXJzaW9uIjoiMi4xIiwidGltZVN0YW1wIjoiMjAyMTAxMjUxNjM0NTMiLCJxcElEIjoiMjMwOTY5IiwicmVzQ29kZSI6IjAwMCIsInJlc0Rlc2MiOiJTdWNjZXNzIiwiaGFzaFZhbHVlIjoiMDVEOERERUY1RjQzRjU4NjBBQkY2OEJBQTE2MTE1MUU5QTk2NTM5MiJ9fQ==
- Decode the response data. The sample code below demonstrates correctly decoded API response data.
{
"QPDeleteRes": {
"version": "2.1",
"timeStamp": "20210125163453",
"qpID": "230969",
"resCode": "000",
"resDesc": "Success",
"hashValue": "05D8DDEF5F43F5860ABF68BAA161151E9A965392"
}
}
- Read the QuickPay Delete Response data from QPDeleteRes.
For specific API response parameters, refer to: QuickPay Delete Response Parameters
Updated 2 months ago