Check status transaction
API used to check status transaction
API check status transaction
Endpoint: /api/v1/service/bill/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 send to API url |
Data result
| Params | Type | Description |
|---|---|---|
| errorCode | Integer | Error code |
| message | String | Description detail error code |
| billDetail | Array | JSON String is array information bill is result from API check bill |
| billDetail[].billNumber | String | Bill ID |
| billDetail[].period | String | Period payment bill |
| billDetail[].amount | Integer | Money bill |
| billDetail[].billCreated | String | Created time bill |
| billDetail[].billExpiry | String | Expiry payment |
| billDetail[].billType | String | Bill type |
| billDetail[].billOtherInfo | String | Bill other information |
| billDetail[].isPartialPaymentAllowed | Bool | Does the invoice allow partial payments? (default: false) |
| billDetail[].extraInfo | String | Extra information |
| transaction | Object | Transaction information |
| transaction.appotapayTransId | String | Transaction id from AppotaPay |
| transaction.amount | Integer | Money transaction |
| transaction.billAmount | Integer | Money to bill |
| transaction.time | String | Time transaction |
| signature | String | Signature of parameter passed to the API, the parameter is included into signature like this (amount + appotapayTransId + billAmount + errorCode + time) (see more how to generate signature) |
Example
Response
{
"errorCode": 0,
"message": "Success",
"billDetail": [
{
"billNumber": "117934",
"period": "4/2020",
"amount": 100000,
"billCreated": "",
"billExpiry": "",
"billType": "",
"billOtherInfo": "",
"isPartialPaymentAllowed": false,
"extraInfo": ""
}
],
"transaction": {
"amount": 100000,
"billAmount":100000,
"appotapayTransId": "01ARXAAWEBDS",
"time": "10-04-2020 10:10:10"
},
"signature": "b10294bae53e89919b3efd62a763bf3228e260ef1a329..."
}