Refund Status Inquiry
HTTPS POST / Server-to-Server
Payment requests and responses are encrypted using JWE
- JWE algorithm = RSA-OAEP + A256GCM
- The signature uses JWS PS256
Merchants must know how to prepare requests and process responses using JWE + JWS with exchange key.
https://demo2.2c2p.com/2C2PFrontend/PaymentAction/2.0/action
https://t.2c2p.com/PaymentAction/2.0/action
Refund Status Request
To prepare a refund status request, refer to the guidelines below.
Provided Sample Code
The following sample code demonstrates how to prepare request data, generate the JWT token with key, and send the API request.
For the JWT token, you may also refer to the sample code here.
- To prepare the data payload for the refund request, refer to the sample structure shown below. You may also check the API specifications here: Refund Status Request Parameters
2.To generate encrypted request data, refer to this guide: Generate JWT Request with Keys
<PaymentProcessRequest>
<version>3.8</version>
<merchantID>JT07</merchantID>
<invoiceNo>260121085327</invoiceNo>
<actionAmount>25.00</actionAmount>
<processType>RS</processType>
</PaymentProcessRequest>
eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCJ9.ZXlKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V5TlRaSFEwMGlmUS5tTnExRkxHbUZNNldNcHItYjl4MzE4aG9BRVM0SXFlZm9WQ3FBVGtXZC1Ba0JIaUc2dEtELWJVZEI1UzVCUDAzU0xxQVJfWlFqa1JmeE5ZdW9CUmlIT1BDSHVYZXVIQ2c4X1VqRGpLVzFSQnBNUzFfeTd3dUFoV0VXY2Y4a2FIcndlRGcyMHd0RUswUzFvM1BOa2c2RHRmZjNzTTRrLXZ6ckg0eXpCRnRIemxwUDhyVUNTd2ZTRXgwWUVPaFU3OXViazhaWnBaRUpZYU9QVGdpelRlSVUtaHNvblRuYlFzajkwaEJtZG4xN0Q5UXF4TnhHQWtRTFZWb1pXNlFydEZxek9USmRFZnJwM3BsVVJseDlJalpOWTdTY25vb3VPb3pnYllJdHJDbzQzdGpPN0s4MEpKNzZEcDlIOXVDQWk5LU40anRWWDNxUnExRlZBYXY1VDdlRFEuclFfQ3RCM2lqdWRRRlFZZS5xVTZMT0dr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API, refer to the sample request below.
curl --location --request POST 'https://demo2.2c2p.com/2C2PFrontend/PaymentAction/2.0/action' \
--header 'Content-Type: text/plain' \
--data-raw 'eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCJ9.ZXlKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V5TlRaSFEwMGlmUS5tTnExRkxHbUZNNldNcHItYjl4MzE4aG9BRVM0SXFlZm9WQ3FBVGtXZC1Ba0JIaUc2dEtELWJVZEI1UzVCUDAzU0xxQVJfWlFqa1JmeE5ZdW9CUmlIT1BDSHVYZXVIQ2c4X1VqRGpLVzFSQnBNUzFfeTd3dUFoV0VXY2Y4a2FIcndlRGcyMHd0RUswUzFvM1BOa2c2RHRmZjNzTTRrLXZ6ckg0eXpCRnRIemxwUDhyVUNTd2ZTRXgwWUVPaFU3OXViazhaWnBaRUpZYU9QVGdpelRlSVUtaHNvblRuYlFzajkwaEJtZG4xN0Q5UXF4TnhHQWtRTFZWb1pXNlFydEZxek9USmRFZnJwM3BsVVJseDlJalpOWTdTY25vb3VPb3pnYllJdHJDbzQzdGpPN0s4MEpKNzZEcDlIOXVDQWk5LU40anRWWDNxUnExRlZBYXY1VDdlRFEuclFfQ3RCM2lqdWRRRlFZZS5xVTZMT0drMjJ0WDh2TjlwQW5BWm5WYTB1SXQ1X0ZNbk1YQmJzRk11ZmlqMWNJSzdOY3lsblZzb1FJTXZrVVM3TjJSclM4NjFPaTZjLV9mUS0yMFdCU0NDdG5mR0RFVXF6dlFDRFEtQWtfQkd3eU9fNmFSOENta3YxNzJTc0xmNjJncDBDd0NxWTJma1BKRjB1aXZOa3dRek1nWE5nX2xqUHljVnd4ME1vYWtWek01a01EdUJvSmhnbGxwRFVDc0poWFBuWVNJSUtfSHhWRGZHOXhadEd5Ri13bWl6cG83VVc4MjhnVGtJZW1fMlVYQWoyaXNYaEdoRDJPT2Q5bGFZZDhTd2hRLmJqalROZGtTNE5ibVo1eXp0SEYtU0E.hfwDzs6Xa4jBS3oHiMOJxSGkvsNS3hUkxCqkZvBLfR8bhoL2BQw-a8yvYtBw4lf7A5jlb-k4KdqPUoRfkr9sXaPJ_KfSc8TfpbHTbrCnayYxH67-Yb_25PmQXUOXdJrAf3xi9IxhjswAVyZBe52Pwk9KG07v-YIq5A8H7AXKmUzrkz-lXCM0yziqHsDRuC72E3Ea-AVJuj3gJaUq5_s3x4vb2ZA-09LdiFuPT2FlmVEuk_7f_yVken5x0H7ib4Skn5p9EwcSdBTrePSaSFvRexHVRq7OiQKbkFlzamzjllsObMyOls8l9_HfxpphnFH2_qX9ffStW4QNMqMtdIEe7aLvYg5DNSN9caHz-kFGYt_cw-1kvU7lLO0QNC7PqrwxS1hVpiedvD5zF3r5M-YuCW7JPRRFkk-nY05Z_bnpWp6rH-OPwM9pv2AB70W_F3xz2u5_-shd7maoz3IS_XD6NhWrhBw6hS-l79l8R4fIPFKIUJbp5I0kPakcxs6DRZincKewoHfJJL-UUy4KuCChWcxT9LRi3sx23yBV8de-zfvUxKYEsWvnfOgu7w5AwByDPoevwBKQGpd-ZUtETnK3okY9C5mO_n-Xuhu7Eay-bwVhS0Yr-1qidZ3js_XmtUpjSnnU2qlHmbw6k-CjKkUegNaJrFqxXkOF38k6XjaHfDE'
Refund Status Response
To receive and process refund status request responses, refer to the sample code below.
Provided Sample Code
The following sample code demonstrates how to receive response data and decrypt the JWT token with key.
For decrypting the JWT token, you may also refer to the sample code here.
-
Following a refund status request, the API will return encrypted response data. Refer to the sample encrypted response below.
-
To decrypt the response, refer to: Process JWT Request with Keys
-
Refer to the sample response structure below. You may also check the API specifications here: Response Parameters
eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCJ9.ZXlKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V5TlRaSFEwMGlmUS50TS1qYVY2ZTUyOTN3ME5pbXFYd3ZYWE8xMUZPQmltMVFpaTFRWEY1SFZOOERQb1pHUTFmQlZrQW5DanlXb1FRSFREMGt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NlLS1majZVYnB4cWNweEFQZWlzN2JpczgzRGtISlJ2el9EQUFBZzh5RE9NUG1NXzNkZW1XZVhEWGwxVXpuR1NxTFU4Sk1UUHBaeTRtOWJEYVJZa0pYa05OZ1Z6akU0WnlyWU9sdGs3MW9tb3lSUFhZWHBHMFFxd1h3NkVUZUZlUGJET1kwT0E1M21mWjRaOUpXV3YybEwyejc4MnVwZW1iV2xjeUpzeUVfU29paFY3cV84YXlCVzljOVJUVlZrVkIxeV9KY3owLm5ZcGdiN3J5Q2tiNmo0dzdiRWhUMUE.qhqBHT8cVkGp2bSFOyDak3CLW-AjiZPjIQ5lPxkMMtq2GgYVLMpxLmM0Q6rlzTHGDAchtfvmOAuqbU9lXW6W1B4o84MG8UAQsMRs6ywibwM1t7mCUwZF6-Qr_Bs4wAzK-S7pvgB-0PhwvXtEA1wSXlcM2fAFOHZVV-k4aUUd3VJgehusqD6zFbxaPcjrejuW7eNsT_4dhmS1pvb3jkT7u5sS8onadqnUUCJ_ywSIRDCk8sKBX4veo9g9n_67SPp_hXKfqSZJh2BkdWPXZ-ZobeG42yLJuUSYJzlWMIrUErHyn_lZX2fXrofsNqjlVtV34YUvcnPcR8l3uBu0biREUg
<PaymentProcessResponse>
<version>3.8</version>
<timeStamp>250221160113</timeStamp>
<respCode>00</respCode>
<respDesc>Success</respDesc>
<processType>RS</processType>
<invoiceNo>260121085327</invoiceNo>
<amount>25.00</amount>
<status>S</status>
<approvalCode>621529</approvalCode>
<referenceNo>3528643</referenceNo>
<transactionDateTime>20210126085854</transactionDateTime>
<maskedPan>411111XXXXXX1111</maskedPan>
<eci>05</eci>
<refundList>
<refund amount="25.00" status="RF" referenceNo="3598743" dateTime="20210225155130" userDefined1="" userDefined2="" userDefined3="" userDefined4="" userDefined5="" />
</refundList>
<paymentScheme>VI</paymentScheme>
<processBy>VI</processBy>
</PaymentProcessResponse>
Updated over 2 years ago