Kenya Collection
Collections from Kenya are made via mobile money.
Below is a sample request for Kenya collection:
Initialize Collections [POST]
curl --location '{{sandboxURL}}/wallets/collections/initialize' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{APIKEY}}' \
--data '{
"reference": "<samplereference>",
"customerEmail": "ray.jon@mail.com",
"country": "KE",
"currency": "KES",
"amount" : 500,
"description": "Payment for artwork"
"payload": {
"network": "MPESA"
"type": "MOMO",
"accountNumber": "+25475049021",
"accountName": "May Dean",
}
}
Parameter | Description | Required |
---|---|---|
type | This is the payment type. It will be MOMO | ✅ |
accountNumber | This is the phone number that funds will be received from | ✅ |
accountName | This is the name of the sender | ✅ |
network | The phone number's mobile network, (MPESA ) | ✅ |