Bill Transaction



Endpoint


Method URI
GET /api/v2/collections/{CODE}/bills/{BILL_NO}/transactions
GET /api/v2/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/v2/collections/{CODE}/bills/{BILL_NO}/transactions

Include Parameter:


Key Type
bill.collection ?include=bill.collection
payment ?include=payment

Response


{success} Success code : 200

{
    "success": true,
    "data": {
        "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"
    },
    "errors": null,
    "meta": {
        "timestamp": "2020-06-25 15:03:24 UTC",
        "timezone": "UTC"
    }
}

{info} For Error Reference, Related guide: Errors




Get Transaction

Parameters


Method URI
GET /api/v2/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

{    
    "success": true,
    "data": {
        "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"
    },
    "errors": null,
    "meta": {
        "timestamp": "2020-06-25 23:29:55 UTC",
        "timezone": "UTC"
    }
}

{info} For Error Reference, Related guide: Errors