Skip to main content
POST
/
payment
/
topup
Setup Topup
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>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Cookies

session
String

Body

application/json
amount
integer
default:0

Amount to top up in cents

threshold
integer
default:0

Top up threshold in cents, if balance goes below this value, top up will be triggered

enabled
boolean
default:true

If true, top up will be triggered when balance goes below threshold

Response

Successful Response