API referencePayout schedules

Create a payout schedule

Set up a recurring run. Nothing is validated against a rail here — the lines are checked when each occurrence materialises, so a beneficiary blocked after the schedule was created is caught on the run rather than being paid on stale information.

POST
/api/b/v1/payout-schedules

Set up a recurring run.

Nothing is validated against a rail here — the lines are checked when each occurrence materialises, so a beneficiary blocked after the schedule was created is caught on the run rather than being paid on stale information.

Authorization

OAuth2PasswordBearer
AuthorizationBearer <token>

In: header

admin_access_token?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

A recurring set of payouts. IN-302.

The schedule holds lines; each run turns them into a batch unchanged. Which of day_of_month / day_of_week applies depends on cadence, and the run time is read in timezone rather than UTC.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/b/v1/payout-schedules" \  -H "Content-Type: application/json" \  -d '{    "name": "Monthly salaries",    "currency": "RWF",    "cadence": "monthly",    "lines": [      {        "amount_minor": "15000000",        "method": "mobile_money",        "transaction_type": "b2p"      }    ]  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "currency": "string",  "cadence": "daily",  "status": "active",  "day_of_month": 0,  "day_of_week": 0,  "run_hour": 0,  "run_minute": 0,  "timezone": "string",  "line_count": 0,  "total_minor": 158000000,  "next_run_at": "2019-08-24T14:15:22Z",  "last_run_at": "2019-08-24T14:15:22Z",  "ends_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z"}