Collection status
GET
/business/collections/{collectionId}Look up one collection by its ID. Webhooks carry final statuses only, so this endpoint is the source of truth. To see many collections at once, use List collections.
Path parameters
collectionIdstringrequiredThe id returned by Create collection.
Tanzania
cURL: Tanzania
curl "https://api.test.wakapay.io/business/collections/019abc..." \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"200OK
{
"id": "019abc...",
"amount": 1000,
"businessId": "biz_abc123",
"currency": "TZS",
"mobile": "+2557XXXXXXXX",
"provider": "airtel",
"reference": "INV-1001",
"status": "collection_success",
"statusMessage": "Success",
"mnoPaymentReference": "AIRTEL123456",
"createdAt": "2024-08-08T07:53:06Z",
"updatedAt": "2024-08-08T07:54:12Z"
}200Cancelled or expired
{
"id": "019def...",
"amount": 1000,
"currency": "TZS",
"mobile": "+2557XXXXXXXX",
"provider": "mno_provider",
"reference": "INV-1002",
"status": "cancelled",
"statusMessage": "Collection expired"
}provider shows the customer’s mobile network. mnoPaymentReference is the network’s own receipt number.
Statuses
| Status | Meaning |
|---|---|
collection_pending | Prompt sent. Waiting for the customer. |
collection_success | Customer paid. Funds are in your collection wallet. |
collection_failure | Customer declined or the provider failed. |
cancelled | Cancelled or timed out. statusMessage says which. |
See Transaction lifecycle for how statuses change.
Response fields
| Field | Meaning |
|---|---|
id | Collection ID. |
amount, currency | What the customer was asked to pay. |
mobile | Customer’s number. |
provider | Customer’s mobile network. |
reference | Your reference from the create request. |
status, statusMessage | Current status and a short reason. |
mnoPaymentReference | Network receipt number. null until the customer pays. |