API Check status transaction
Endpoint: /api/v1/service/transfer/transaction/{partnerRefId}
Method: GET
Header: How to generate JWT_TOKEN
{
"X-APPOTAPAY-AUTH": Bearer JWT_TOKEN,
"Content-Type": "application/json"
}
Params
Params | Required | Type | Description |
---|---|---|---|
partnerRefId | √ | String | Transaction id from partner passed to API Url |
Data result
Params | Type | Description |
---|---|---|
errorCode | Integer | Error result |
message | String | Description error code detail |
transaction | Object | Transaction information |
transaction.phoneNumber | String | Customer phone number |
transaction.amount | Integer | Money transfer |
transaction.transferAmount | Integer | The actual amount transferred to the receiver, will be less if this transaction paid by receiver |
transaction.appotapayTransId | String | Transaction id from AppotaPay |
transaction.accountNo | String | Recipient's account/card number |
transaction.accountName | String | Recipient's name |
transaction.time | Integer | Transaction time |
signature | String | Signature of parameter passed to the API, the parameter is included into signature like this: amount + appotapayTransId + errorCode + time + transferAmount (see more how to generate signature) |
Example
Response
{
"errorCode": 0,
"message": "Thành công",
"transaction": {
"phoneNumber":"0987777888",
"amount":50000,
"transferAmount":50000,
"appotapayTransId":"01EQTH129581",
"accountNo":"9704000000000018",
"accountName":"AP APPOTAPAY",
"time": 1608778440
},
"signature": "b5bb9a6e9c71281fb1e06d"
}