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`.
Request Body
application/json
amountnumberrequired
The new amount, in the major unit of the currency. Minimum: 0.01.
currencystringrequired
ISO 4217 currency code, active on Wajub.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://api.wajub.com/payments/trx_test_CSUGajfv9xh0XQ5wu2lx" \ -H "Content-Type: application/json" \ -d '{ "amount": 12500, "currency": "XAF" }'{ "code": 200, "status": "OK", "message": "Payment updated", "transaction": { "id": "trx_CSUGajfv9xh0XQ5wu2lx", "amount": 12500, "currency": "XAF", "status": "pending" }}Payment updated