API Check transaction status
Endpoint: /api/v1/service/topup/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 result |
message | String | Description error code detail |
transaction | Object | Transaction information |
transaction.amount | Integer | Amount information |
transaction.topupAmount | String | Amount topup |
transaction.phoneNumber | String | Phone number topup |
transaction.appotapayTransId | String | Transaction id from AppotaPay |
transaction.time | String | Transaction time |
signature | String | Signature of parameter passed to the API, the parameter is included into signature like this: (amount + appotapayTransId + errorCode + phoneNumber + time + topupAmount) |