b2b_payment
Pay another business via M-Pesa: settle PayBills, Buy Goods tills, or top up B2C working accounts.
Instructions
Pay another business: a PayBill, a Buy Goods till, or a B2C working account top-up.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>",
"receiverShortCode": "<receiverShortCode>",
"amount": "<amount>"
},
"name": "b2b_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount in KES, whole numbers only. | |
| target | Yes | paybill pays a PayBill, buygoods pays a till, topup funds a B2C working account. | |
| remarks | No | Payment | |
| requester | No | Optional phone number of the person on whose behalf you are paying. | |
| resultUrl | No | ||
| shortCode | No | ||
| accountReference | No | Required for paybill. Ignored for buy goods. | |
| receiverShortCode | Yes | Shortcode being paid. |