EnableDocumentation Index
Fetch the complete documentation index at: https://developers.kulmipay.com/llms.txt
Use this file to discover all available pages before exploring further.
collection_event to receive notifications when a collection invoice is created or changes state.
Collection events are sent for invoices with a positive value. They use the same invoice shape returned by the collection APIs, plus your configured challenge.
When it fires
- A collection invoice is created.
- The invoice state changes, for example from
PENDINGtoCOMPLETEorFAILED.
Payload
Important fields
| Field | Description |
|---|---|
invoice_id | Invoice alias ID. Use this with the payment status endpoint. |
state | Invoice state, such as PENDING, PROCESSING, COMPLETE, or FAILED. |
provider | Collection provider, currently M-PESA or PESALINK. |
value | Gross collected amount. |
net_amount | Amount after applicable charges. |
api_ref | Your reconciliation reference. |
challenge | Your configured challenge value. Verify it before processing the event. |
