Skip to contentSkip to Content
API ReferenceCollectionsGETCollection status

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

collectionIdstringrequired

The id returned by Create collection.

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

StatusMeaning
collection_pendingPrompt sent. Waiting for the customer.
collection_successCustomer paid. Funds are in your collection wallet.
collection_failureCustomer declined or the provider failed.
cancelledCancelled or timed out. statusMessage says which.

See Transaction lifecycle for how statuses change.

Response fields

FieldMeaning
idCollection ID.
amount, currencyWhat the customer was asked to pay.
mobileCustomer’s number.
providerCustomer’s mobile network.
referenceYour reference from the create request.
status, statusMessageCurrent status and a short reason.
mnoPaymentReferenceNetwork receipt number. null until the customer pays.