Get All Collection

Get All Collection

Retrieves collection transaction records for a specified user within a given date range. Supports pagination and sorting.

Request

GET {{base_url}}/api/v1/transaction/collection-query

Authentication & Headers

HeaderRequiredDescriptionExample
x-merchant-refYesUnique reference identifying the merchant.{{vault:x-merchant-ref}}

Query Parameters

ParameterTypeRequiredDescriptionExample
date_fromstringYesStart date for the collection query.2026-03-01
date_tostringYesEnd date for the collection query.2026-03-31
pageintegerYesPage number to retrieve.1
no_recordsintegerYesNumber of records to return per page.10
sortstringYesSort order. Accepts asc or desc.asc
user_refstringYesReference of the user associated with the collection.USR_784521

Example Request

{{base_url}}/api/v1/transaction/collection-query?date_from=2026-03-01&date_to=2026-03-31&page=1&no_records=10&sort=asc&user_ref=USR_784521

Headers

HeaderValue
x-merchant-ref{{vault:x-merchant-ref}}

Example Response

{
  "status": "success",
  "message": "Retrieved successfully",
  "data": [
    {
      "amount": 2750,
      "collection_data": {
        "account_name": "Michael Adeyemi",
        "account_number": "0123456789",
        "bank_code": "058",
        "bank_name": "Example Bank"
      },
      "currency": "NGN",
      "date": "2026-03-15 14:40",
      "payment_ref": "PAY_784521",
      "payment_status": "SUCCESSFUL",
      "txn_merchant_ref": "COL_001245"
    }
  ]
}

Response

FieldTypeDescription
statusstringIndicates whether the request was successful.
messagestringResponse message.
dataarrayList of collection transaction records.
data[].amountnumberAmount collected.
data[].collection_dataobjectBank account details associated with the collection.
data[].collection_data.account_namestringName on the collection account.
data[].collection_data.account_numberstringCollection account number.
data[].collection_data.bank_codestringBank code of the collection account.
data[].collection_data.bank_namestringName of the collection bank.
data[].currencystringCurrency of the collection.
data[].datestringDate and time of the collection transaction.
data[].payment_refstringUnique payment reference.
data[].payment_statusstringCurrent status of the collection payment.
data[].txn_merchant_refstringMerchant reference for the collection transaction.

Did this page help you?