v1
latestOpenAPI 3.1.02026-07-2691531.2 KBPayment Channels
Create payment channel
Registers an M-Pesa shortcode (Paybill or Till Number) as a payment channel. You can pass a channelId when initiating STK Push to route the payment through a specific shortcode.
Mark a channel as isDefault: true to use it automatically when no channelId is specified in payment requests.
post/payment-wallet/channels
Request body
Example request
{
"name": "Main Collections Paybill",
"shortcode": "123456",
"accountNumber": "ACCOUNT001"
}Response
Channel created successfully.
Example response
{
"success": true,
"data": {
"category": "PAYMENT_WALLET",
"shortcode": "123456",
"name": "Main Collections Paybill",
"accountNumber": "ACCOUNT001",
"isDefault": true
},
"requestId": "c1b2a3d4-e5f6-7890-abcd-ef1234567890"
}