Collections
Initiate mobile money collection
Changed onInitiate a payment collection from a mobile money account. Creates a transaction record in your dashboard.
post/api/v1/bila/collections/mobile-money
Request
- Base URLhttps://api.usebila.com
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"amount": 100.5,
"reference": "collection-001",
"phone": "0977433571",
"operator": "airtel",
"country": "zm",
"bearer": "customer",
"narration": "Payment for subscription",
"walletId": "68f11209-451f-4a15-bfcd-d916eb8b09f4",
"customerName": "John Doe"
}Response
Collection initiated successfully
Example response
{
"status": true,
"message": "Operation completed successfully",
"data": {
"id": "col-001",
"reference": "order-12345",
"status": "successful",
"amount": 100,
"currency": "ZMW",
"narration": "Payment for Order #12345",
"customer": {
"phone": "0977123456",
"name": "JOHN DOE",
"operator": "airtel"
},
"createdAt": "2024-01-15T10:30:00Z",
"completedAt": "2024-01-15T10:31:00Z"
}
}Changes
- info
the
request property default valuemerchantwas added - info
added the new
ngenum value to the request property - info
added the new
vodacomenum value to the request property
- info
- breaking
removed the enum value
ngof the request property - breaking
removed the enum value
vodacomof the request property - info
the
request property default valuemerchantwas removed
- breaking