Skip to main content
Version: 1.0

Refund transaction detail

Endpoint: /api/v1/transaction/refund/{refundId}

Method: GET

Header: How to generate JWT_TOKEN

{
"X-APPOTAPAY-AUTH": Bearer JWT_TOKEN,
"Content-Type": "application/json"
}

HTTP Request:

ParamsTypeRequiredDescription
refundIdStringPartner refund id

Dữ liệu trả về

Tham sốKiểu dữ liệuMô tả
appotapayTransIdStringAppotaPay transaction id
refundIdStringAppotaPay refund id
refundOriginalIdStringPartner refund id
amountIntegerRefund amount
reasonStringRefund reason
statusStringStatus
transactionTsIntegerPayment time

Example

Response

{
"errorCode": 0,
"message": "Thành công",
"data": {
"appotapayTransId": "AP211364332963",
"refundId": "57bd2769-3827-42a4-be47-aab498496a46",
"refundOriginalId": "237052c887614019bedfd1851a287d9c",
"amount": 10000,
"reason": "Test refund",
"status": "processing",
"transactionTs": 1638180805
},
}

Error

{
"errorCode": int,
"message": error message
}