QM Developer Docs
Billing Reference

Get Bills

Retrieve list of bills, with optional filters, paging and sorting.

Get a list of bills.

POST /v1/bills HTTP/1.1
Content-Type: application/json
Key: {API Key}
Sign: {Signature}

{
    "filters": [
        {
            "name": "string",
            "value": "string",
            "matchType": "string"
        }
    ],
    "paging": {
        "index": 0,
        "size": 0
    },
    "sort": {
        "name": "string",
        "order": 1
    }
}

Request

Body

application/json
PropertyTypeDescription
filtersarrayOptional. The filters to apply to the query.
filters[].namestringThe property name of the filter.
filters[].valuestringThe property value of the filter.
filters[].matchTypestringThe match type of the filter. Valid values are like or equal.
pagingobjectOptional. The paging of the query.
paging.indexnumberThe index of the page.
paging.sizenumberThe size of the page.
sortobjectOptional. The sorting of the query.
sort.namestringThe property name of the sort.
sort.ordernumberThe order of the sort. Valid values are 1 (ascending) or -1 (descending).

Response

Body

application/json
{
  "code": 0,
  "message": "string",
  "data": {
    "lists": [
      {
        "billId": "string",
        "merchantReference": "string",
        "requestReference": "string",
        "paymentReference": "string",
        "billAmount": 0.00,
        "currency": "string",
        "status": 0,
        "statusName": "string",
        "isFinal": bool,
        "dateTime": 1706600000000
      }
    ],
    "total": 0
  }
}
PropertyTypeDescription
codenumberThe response code. Refer to ENUM Definition.
messagestringThe response message.
dataobjectThe response data.
data.listsarrayThe list of bills.
data.lists[].billIdstringThe unique ID of the bill.
data.lists[].merchantReferencestringYour own reference number of the bill.
data.lists[].requestReferencestringThe reference number of the bill request.
data.lists[].paymentReferencestringThe reference number of the bill payment.
data.lists[].billAmountnumberThe amount of the bill.
data.lists[].currencystringThe currency of the bill.
data.lists[].statusnumberThe status of the bill. Refer to ENUM Definition.
data.lists[].statusNamestringThe status name of the bill.
data.lists[].isFinalboolWhether the status of the bill is final.
data.lists[].dateTimenumberThe timestamp (in unix milliseconds) of the bill.
data.totalnumberThe total number of bills.

© 2023-2024 Quantum Metal Sdn Bhd