Chi tiết giao dịch hoàn tiền
Endpoint: /api/v1/transaction/refund/{refundId}
Method: GET
Header: Cách tạo JWT_TOKEN
{ "X-APPOTAPAY-AUTH": Bearer JWT_TOKEN, "Content-Type": "application/json"}
#
Tham sốTham số | Yêu cầu | Kiểu dữ liệu | Mô tả |
---|---|---|---|
refundId | √ | String | Mã giao dịch hoàn tiền của đối tác |
#
Dữ liệu trả vềTham số | Kiểu dữ liệu | Mô tả |
---|---|---|
appotapayTransId | String | Mã giao dịch thanh toán của AppotaPay |
refundId | String | Mã giao dịch hoàn tiền của AppotaPay |
refundOriginalId | String | Mã giao dịch hoàn tiền của đối tác gửi lên |
amount | Integer | Số tiền hoàn |
reason | String | Lý do hoàn tiền |
status | String | Trạng thái giao dịch hoàn tiền |
transactionTs | Integer | Thời gian tạo giao dịch hoàn tiền |
#
Ví dụ#
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}