c2b_register_urls
Register the validation and confirmation URLs Daraja calls when customers pay your PayBill or till, enabling C2B notifications. Required once per shortcode.
Instructions
Register the validation and confirmation URLs that Daraja calls when a customer pays your PayBill or till directly. Required once per shortcode before C2B notifications work.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "c2b_register_urls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shortCode | No | ||
| responseType | No | What Daraja should do when your validation endpoint is unreachable. Completed accepts the payment anyway; Cancelled rejects it. | Completed |
| validationUrl | No | ||
| confirmationUrl | No |