Skip to main content
POST
/
billing
/
topup
Top up credits
curl --request POST \
  --url https://api.goyappr.com/billing/topup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amountCents": 2000
}
'
{
  "success": true,
  "new_balance_cents": 123
}

Authorizations

Authorization
string
header
required

Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys.

Body

application/json
amountCents
integer
required

Amount in cents (e.g. 2000 = $20)

Required range: x >= 500
Example:

2000

Response

200 - application/json

Top-up successful

success
boolean
new_balance_cents
integer