Authorization
default Authorization<token>
Use a public key (pk./pk_test.) for payment initialization. Use a secret key (sk./sk_test.) for sensitive operations (transfers, refunds, balance), or a restricted key (rk./rk_test.) scoped to specific permissions. The _test. variant of any key selects the sandbox environment, there is no separate sandbox URL. Never expose your secret key in client-side code.
In: header
Path Parameters
idstringrequired
Payment `id`.
Header Parameters
Idempotency-Keystring
Request Body
application/json
channelstringrequired
Same as `POST /payments/{id}`.
dataobject
The payer's details for this channel.
phonestring
Mobile Money number, in international format.
split_countinteger
Split into this many equal instalments: 2, 3 or 4.
split_amountsarray<number>
Or give each instalment's amount, 2 to 4 of them.
split_currencystring
Currency of `split_amounts`, ISO 4217.
Response Body
application/json
application/json
application/json
curl -X POST "https://api.wajub.com/payments/trx_test_CSUGajfv9xh0XQ5wu2lx/splits" \ -H "Idempotency-Key: order-1042-part-1" \ -H "Content-Type: application/json" \ -d '{ "channel": "cm.mtn" }'{ "code": 202, "status": "Accepted", "message": "Confirm the transaction on your phone.", "transaction": { "id": "trx_test_Rk4Wm8Zq2Lp6Xv9Tb3Nh", "amount": 600000, "amount_paid": 0, "currency": "XAF", "status": "processing", "split": { "id": "splt_test_Jc5Ny7Qd1Hs8Mv3Ka6Wf", "split_number": 1, "total_splits": 2, "split_currency": "XAF", "amount": 300000, "status": "processing" } }}First instalment sent to the payer