Authorization
default A public key (pk./pk_test.) is accepted on /payments, /customers, /links, /invoices and the catalogue reads (/channels, /providers, /countries, /currencies); anything that moves money out, reads the balance or manages the account answers 406 to it. It is an identifier, never an authorization. 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
The beneficiary `id`.
Request Body
application/json
What the seller owes back, in the major unit of `currency`.
Defaults to XAF.
Your own identifier for this debt, usually the refunded order.
The refund it comes from, if it went through Wajub.
A label for the debt, up to 255 characters.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.wajub.com/beneficiaries/ben_Fw8Qa3Zr6Ty1Np5Jd2Lv/receivables" \ -H "Content-Type: application/json" \ -d '{ "amount": 12500, "reference": "order-9981-refund" }'{ "code": 200, "status": "OK", "message": "Receivable already recorded", "receivable": { "id": "rcv_Yt6Dn2Wq9Lc4Hs7Mb1Kx", "reference": "order-9981-refund", "amount": 12500, "outstanding": 12500, "status": "open" }}Same reference sent again