curl --request POST \
--url https://api.clickpesa.com/third-parties/billpay/bulk-create-order-control-numbers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"controlNumbers": [
{
"billAmount": 25000,
"billDescription": "Order 1"
},
{
"billReference": "ORD002",
"billAmount": 50000
}
]
}
'{
"billPayNumbers": [
"<string>"
],
"created": 123,
"failed": 123,
"errors": [
{
"index": 123,
"reason": "<string>"
}
]
}Bulk creates BillPay Order Control Numbers (max 50 per request). Supports partial success: valid items are created while invalid items are reported in the errors array.
curl --request POST \
--url https://api.clickpesa.com/third-parties/billpay/bulk-create-order-control-numbers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"controlNumbers": [
{
"billAmount": 25000,
"billDescription": "Order 1"
},
{
"billReference": "ORD002",
"billAmount": 50000
}
]
}
'{
"billPayNumbers": [
"<string>"
],
"created": 123,
"failed": 123,
"errors": [
{
"index": 123,
"reason": "<string>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.clickpesa.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header containing the JWT access token returned from the generate token endpoint. The token already includes the Bearer prefix. Example: Authorization: Bearer eyJhbGciOi...
Array of order control number items
1 - 50 elementsShow child attributes
Bulk create result - may include partial success with per-item errors