cURL
curl --request POST \ --url https://api.example.com/payment/topup \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "amount": 0, "threshold": 0, "enabled": true } '
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Amount to top up in cents
Top up threshold in cents, if balance goes below this value, top up will be triggered
If true, top up will be triggered when balance goes below threshold
Successful Response