Bill Transaction
Endpoint
Method |
URI |
GET |
/api/collections/{CODE}/bills/{BILL_NO}/transactions |
GET |
/api/collections/{CODE}/bills/{BILL_NO}/transactions/{REF_ID} |
Required Headers
Key |
Value |
Accept |
application/json |
Content-Type |
application/json |
Authorization |
Bearer {ACCESS-TOKEN} |
Status Transaction:
Type |
Status Code |
STATUS_CREATED_BY_API |
0 |
STATUS_CREATED |
1 |
STATUS_PENDING |
2 |
STATUS_FAILED |
3 |
STATUS_SUCCESS |
4 |
STATUS_UNKNOWN |
5 |
STATUS_NOT_FOUND |
6 |
Get All Transactions
Parameters
Method |
URI |
GET |
/api/collections/{CODE}/bills/{BILL_NO}/transactions |
Include Parameter:
Key |
Type |
bill.collection |
?include=bill.collection |
payment |
?include=payment |
Response
{success} Success code : 200
{
#dssad
"id": 187,
"ref_id": "RUG4Iici__20191027215526",
"currency": "MYR",
"amount": "15.00",
"exchange_rate_id": null,
"status": 4, // 1 -> STATUS_SUCCESS
"failed_reason": null,
"created_at": "2019-10-27 13:55:26",
"updated_at": "2019-10-27 13:55:33",
"paid": true,
"payment-method": "Online Banking"
}
{info} For Error Reference, Related guide: Errors
Get Transaction
Parameters
Method |
URI |
GET |
/api/collections/{CODE}/bills/{BILL_NO}/transactions/{REF_ID} |
Include Parameter:
Key |
Type |
bill.collection |
?include=bill.collection |
payment |
?include=payment |
Response
{success} Success code : 200
{
"id": 187,
"ref_id": "RUG4Iici__20191027215526",
"currency": "MYR",
"amount": "15.00",
"exchange_rate_id": null,
"status": 4,
"failed_reason": null,
"created_at": "2019-10-27 13:55:26",
"updated_at": "2019-10-27 13:55:33",
"paid": true,
"payment-method": "Online Banking"
}
{info} For Error Reference, Related guide: Errors