Skip to content

Collections Status

This endpoint is used to check the status of a collection request by its reference ID.

Endpoint

GET https://api.lipila.dev/api/v1/collections/check-status

Query Parameters

The following query parameter is accepted.

ParameterTypeDescriptionRequired
referenceIdstringUnique reference identifier of the collection transactionYes

Headers

The following header is accepted.

HeaderTypeDescriptionRequired
acceptapplication/jsonExpected response formatYes

Example Request

js

curl -X 'GET' \
  'https://api.lipila.dev/api/v1/collections/check-status?referenceId=8017bfe9-d62b-4abb-b711-1690792e6efe' \
  -H 'accept: application/json' \
  -H 'x-api-key: your_secret_key'

Example Successful Response

Below is an example successful response.

HTTP Status CodeDescription
200SUCCESS
js

{
  "referenceId": "fca597ea2da6",
  "currency": "ZMW",
  "amount": 1,
  "accountNumber": "260xxxxxxxxxx",
  "status": "Successful",
  "paymentType": "AirtelMoney",
  "type": "Collection",
  "ipAddress": "::1",
  "identifier": "LPLTXNCAM-20250818145713-B4AB61CD8A8F",
  "externalId": "MP251003.1252.C7324",
  "message": "Transaction Successful"
}

Error Codes

HTTP Status CodeError CodeDescription
400BAD REQUESTMissing or invalid query parameters
404NOT FOUNDCollection with the given referenceId not found
429TOO MANY REQUESTSRate limit exceeded, slow down requests

Released under the MIT License.