Check transaction status
API check transaction status
Endpoint: /api/v1.1/orders/transaction/bank/status
Method: POST
Header: How to generate JWT_TOKEN
{
"X-APPOTAPAY-AUTH": Bearer JWT_TOKEN,
"Content-Type": "application/json"
}
HTTP Request:
Params | Sample |
---|---|
orderId | 5f5b46cb73fd0 |
signature | 3d4cf0f6130ee51f75714733922a7e76b1c18704187827a78abd379f4ab266ec |
HTTP Response:
Params | Data type | Description |
---|---|---|
errorCode | Integer | Error Code |
message | String | Error detail |
partnerCode | String | Partner Code |
apiKey | String | Partner APIKEY |
transaction | Object | Transaction |
transaction.status | String | Payment status |
transaction.amount | Integer | Payment amount |
transaction.currency | String | Currency code (default: VND) |
transaction.orderId | String | Order ID |
transaction.bankCode | String | Bank code |
transaction.paymentMethod | String | Payment method |
transaction.paymentType | String | Payment type (default: WEB) |
transaction.appotapayTransId | String | AppotaPay transaction ID |
transaction.transactionTs | Integer | Transaction time |
transaction.extraData | String | Extra data |
signature | String | Signature check data signature = data: |
Example Response
{
"errorCode":0,
"message":"Thành công",
"partnerCode": "TEST",
"apiKey": "oMhJpkz7K6HDcR6S",
"transaction": {
"status": "success"
"amount":50000,
"currency":"VND",
"orderId":"5f5b46cb73fd0",
"bankCode":"SHB",
"paymentMethod":"ATM",
"paymentType":"WEB",
"appotapayTransId":"AP200910014125B",
"transactionTs":1599817433,
"extraData":"test test",
},
"signature":"d6ff2d38c2b1167c6d17b9dbb1380347b24c1bf912dc442dbd018b2e1ed74f3d"
}