These docs are for v4.0.2. Click to read the latest docs for v4.3.0.

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


  1. Prepare an API request to delete QuickPay data.
  2. 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=
  1. 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


  1. Process a response from the Delete API. Note that the API will return response data in Base64 format.
  2. Decode the response data. The sample code below demonstrates correctly decoded API response data.
  3. Read the QuickPay Delete Response data from QPDeleteRes.
{
	"QPDeleteRes": {
		"version": "2.1",
		"timeStamp": "20210125163453",
		"qpID": "230969",
		"resCode": "000",
		"resDesc": "Success",
		"hashValue": "05D8DDEF5F43F5860ABF68BAA161151E9A965392"
	}
}
eyJRUERlbGV0ZVJlcyI6eyJ2ZXJzaW9uIjoiMi4xIiwidGltZVN0YW1wIjoiMjAyMTAxMjUxNjM0NTMiLCJxcElEIjoiMjMwOTY5IiwicmVzQ29kZSI6IjAwMCIsInJlc0Rlc2MiOiJTdWNjZXNzIiwiaGFzaFZhbHVlIjoiMDVEOERERUY1RjQzRjU4NjBBQkY2OEJBQTE2MTE1MUU5QTk2NTM5MiJ9fQ==