Skip to main content

Transactions

This endpoint allows you to fetch transactions under a store, It requires Bearer token authentication.

Query Parameters

The Get Transactions endpoint takes in the parameters as shown below

ParameterTypeRequiredDescription
pageintegerYesPage number for pagination (default: 1)
perPageintegerYesNumber of records per page (default: 10)
startDatestringNoStart date for transaction filter (YYYY-MM-DD)
endDatestringNoEnd date for transaction filter (YYYY-MM-DD)
transactionTypestringNoSee transaction types below
paymentTypestringNoSee Payment types below
statusstringNoStatus of the transaction
externalIdstringNoExternal identifier for the transaction
accountNumberstringNoPhone Number

Transaction Types

Lipila supports the following transaction types:

Payment TypeDescription
AirtelMoneyAirtel Money
MTNMoneyMTN Mobile Money
ZamtelKwachaZamtel Kwacha
CardCard Payment

Transaction Types

The following are the transaction types found on Lipila

Transaction TypeDescription
CollectionInvolves receiving funds in to collections wallet (Deposits)
DisbursementInvolves sending of funds from the disbursements wallet (Withdraws)
SettlementInvolves sending collected fund to either merchants Bank account or mobile money
AllocationInvolves adding of funds into merchants Disbursements wallet.

Transaction status

Below are the statuses that lipila supports.

StatusDescription
PendingThe transaction is processing.
SuccessfulThe transaction was successful.
FailedThe transaction is failed.
AmbiguousThe transaction is awaiting final status

Transaction Endpoint

Here’s how to use the endpoint to get transactions:


curl -X 'GET' \
'https://lipila-uat.hobbiton.app/transactions/thirdParty/merchants?page=1&perPage=10' \
-H 'accept: */*' \
-H 'Authorization: Bearer YOUR_SECRET_KEY'

Response Codes

Status codeDescription
401Unauthorized
404No transactions found
500Internal server error

Transaction Response

Below is a snapshot of the sample response for the transaction response.


{
"totalItems": 1,
"pageSize": 10,
"pageNumber": 1,
"totalPages": 1,
"data": [
{
"transactionReferenceId": "LPTXN2508051643211591",
"tillNumber": 20501,
"externalId": "test-3531",
"amount": 100,
"currency": "ZMW",
"status": "Successful",
"customer": {
"email": "Anonymous",
"fullName": "TAONGA NAMBELA",
"phoneNumber": "260966666666"
},
"xReferenceId": "LPTXN2508051643211591",
"paymentType": "MTNMoney",
"transactionType": "Collection",
"narration": "test",
"createdAt": "2025-08-05T14:43:21.572Z",
"updatedAt": "2025-08-05T14:43:24.271Z"
}
]
}

Note

By default, the endpoint pulls transactions for the past 7 days. The Date filters can be adjusted.