Skip to main content
POST
Top up credits
This endpoint does not charge a saved card in the background. Send the user to the returned hosted Checkout URL so they can confirm the payment interactively.

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
amount_cents
integer
required

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

Required range: x >= 100
Example:

2000

Response

200 - application/json

Hosted Checkout created

checkoutUrl
string<uri>
required
sessionId
string
required