ratiba_create_and_wait
Create an M-Pesa Ratiba standing order and wait for customer approval, returning the settled outcome and reminder schedule ID.
Instructions
Create an M-Pesa Ratiba standing order and wait for the customer to approve it. Returns the settled outcome including the reminder schedule id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount in KES. Whole numbers only. | |
| endDate | Yes | Final execution date, yyyymmdd or yyyy-mm-dd. | |
| frequency | Yes | How often the standing order executes. | |
| shortCode | No | ||
| startDate | Yes | First execution date, yyyymmdd or yyyy-mm-dd. | |
| callbackUrl | No | ||
| phoneNumber | Yes | Customer phone number. Accepts 07..., +2547..., or 2547... and is normalised. | |
| receiverType | No | Whether the shortcode is a PayBill or a Buy Goods till. | paybill |
| timeoutSeconds | No | ||
| transactionDesc | No | ||
| accountReference | No | ||
| standingOrderName | Yes | Name of the standing order. Must be unique for this customer; a repeat name is rejected. |