QuickPay Delete API
HTTPS POST / Server-to-Server
QuickPay Delete requests and responses are encoded using Base64. Merchant required to:
- Encode the QuickPay Delete request
- Decode the QuickPay Deleteresponse
https://demo2.2c2p.com/2C2PFrontEnd/QuickPay/DirectAPI
https://t.2c2p.com/QuickPay/DirectAPI
API Parameter
QuickPay Delete Request Parameter
QuickPay Delete Response Parameters
Delete Request
- Prepare an API request to delete QuickPay data.
- Bind the QuickPay Delete Request data into QPDeleteReq.
Encode the request data in Base64 format. The sample code below demonstrates correctly encoded request data.
{
"QPDeleteReq": {
"version": "2.1",
"merchantID": "JT01",
"qpID": "230969",
"timeStamp": "20210125053251",
"hashValue": "f65175454ef754cc3ef4d0fe93115bffbf7f1123"
}
}
ewoJIlFQRGVsZXRlUmVxIjogewoJCSJ2ZXJzaW9uIjogIjIuMSIsCgkJIm1lcmNoYW50SUQiOiAiSlQwMSIsCgkJInFwSUQiOiAiMjMwOTY5IiwKCQkidGltZVN0YW1wIjogIjIwMjEwMTI1MDUzMjUxIiwKCQkiaGFzaFZhbHVlIjogImY2NTE3NTQ1NGVmNzU0Y2MzZWY0ZDBmZTkzMTE1YmZmYmY3ZjExMjMiCgl9Cn0=
- Send the encoded request data to the API endpoint.
curl --location --request POST 'https://demo2.2c2p.com/2C2PFrontEnd/QuickPay/DirectAPI' \
--header 'Content-Type: text/plain' \
--data-raw 'ewoJIlFQRGVsZXRlUmVxIjogewoJCSJ2ZXJzaW9uIjogIjIuMSIsCgkJIm1lcmNoYW50SUQiOiAiSlQwMSIsCgkJInFwSUQiOiAiMjMwOTY5IiwKCQkidGltZVN0YW1wIjogIjIwMjEwMTI1MDUzMjUxIiwKCQkiaGFzaFZhbHVlIjogImY2NTE3NTQ1NGVmNzU0Y2MzZWY0ZDBmZTkzMTE1YmZmYmY3ZjExMjMiCgl9Cn0=
'
Delete Response
- Process a response from the Delete API. Note that the API will return response data in Base64 format.
- Decode the response data. The sample code below demonstrates correctly decoded API response data.
- Read the QuickPay Delete Response data from QPDeleteRes.
{
"QPDeleteRes": {
"version": "2.1",
"timeStamp": "20210125163453",
"qpID": "230969",
"resCode": "000",
"resDesc": "Success",
"hashValue": "05D8DDEF5F43F5860ABF68BAA161151E9A965392"
}
}
eyJRUERlbGV0ZVJlcyI6eyJ2ZXJzaW9uIjoiMi4xIiwidGltZVN0YW1wIjoiMjAyMTAxMjUxNjM0NTMiLCJxcElEIjoiMjMwOTY5IiwicmVzQ29kZSI6IjAwMCIsInJlc0Rlc2MiOiJTdWNjZXNzIiwiaGFzaFZhbHVlIjoiMDVEOERERUY1RjQzRjU4NjBBQkY2OEJBQTE2MTE1MUU5QTk2NTM5MiJ9fQ==
Updated over 2 years ago