API Check Transaction
Endpoint: /v1/services/transaction/check?api_key=YOUR_API_KEY
Method: GET
Header: How to generate JWT_TOKEN
{
"X-APPOTAPAY-AUTH": Bearer JWT_TOKEN,
"Content-Type": "application/json"
}
Params
| Params | Required | Type | Description |
|---|---|---|---|
| partner_code | √ | String | Partner code is provided by AppotaPay |
| transaction_id | √ | String | Partner Transaction ID |
| signature | √ | String | Hash params: signature= SHA256(partner_code + transaction_id + secret_key) Secret key is provided by AppotaPay |
Data result
| Params | Type | Description |
|---|---|---|
| error_code | String | Error Code |
| message | String | Error Message |
| data | Object | Response Data |
| data.amount | Integer | Card value |
| data.serial | String | Card serial |
| data.transaction_id | String | AppotaPay transaction ID |
| data.time | String | Transaction time |