Reverse Detail
EndPoint
GET
/credit-card/reversal/:creditCardReversalId
Header Params
{
Content-Type: "application/json",
X-APPOTAPAY-AUTH: "your_auth_token",
Language: "en", // option vi | en, default vi
X-Request-ID: "your_request_id" // optional - easy to debug request
}
Request Params
URL Parameter
Parameters | Requirement | Data type | Description | Note |
---|---|---|---|---|
creditCardReversalId | required | String | Unique ID is returned by AppotaPay when merchant summits reversal request successfully or Reference ID is sent in the request by merchant |
Query Parameter
Parameters | Requirement | Data type | Description | Note |
---|---|---|---|---|
referenceType | optional | String | - APPOTAPAY_REFERENCE_ID Reversal ID returned by AppotaPay which can be retrieved from the charge response to retrieve the transaction detail (default value) - MERCHANT_REFERENCE_ID Reference ID submitted by the merchant during reversal transaction |
Response Params
{
"reversalId": "01HQHS26CFK4CEGE2QW0PATV5B",
"authorizationId": "01HQHRZQNJE4BWRB8P9P5Z8BE7",
"merchantRefId": "MufRIHgy11",
"amount": 1000000,
"currency": "VND",
"status": "success",
"createdAt": "2024-02-26T10:59:13+07:00",
"updatedAt": "2024-02-26T10:59:15+07:00",
"reversedAt": "2024-02-26T10:59:14+07:00"
}
Success
Http Status Code
200
-OK
The response is the same with Reverse Authorization API
Error
HTTP Status Code !=
200