initiate_payment
Send a USSD payment request to a payer's phone number for approval, specifying amount, currency, channel, and external reference.
Instructions
Send a USSD payment request to a payer's phone number for approval.
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": {
"channel": "<channel>",
"currency": "<currency>",
"payer": "<payer>",
"amount": "<amount>",
"externalref": "<externalref>",
"accountnumber": "<accountnumber>"
},
"name": "initiate_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payer | Yes | Customer's phone number. | |
| amount | Yes | Amount to collect. | |
| channel | Yes | 13=MTN, 6=Telecel, 7=AT. | |
| headers | No | HTTP headers to include | |
| otpcode | No | OTP code if required by the flow. | |
| currency | Yes | Currency code (e.g., GHS). | |
| reference | No | Optional payment reference. | |
| sessionid | No | USSD session ID if applicable. | |
| externalref | Yes | Unique reference for the payment. | |
| accountnumber | Yes | Your Moolre Account Number. |