Skip to main content
POST
/
user
/
purchase-topup
Purchase top-up
curl --request POST \
  --url https://api.olostep.com/user/purchase-topup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "credits": 10000
}
'
{
  "success": true,
  "payment_intent_id": "pi_xxx",
  "credits": 10000
}
credits must be one of: 10000, 20000, 80000, or 100000 — that is 10K, 20K, 80K, or 100K credits.
For a guided overview, see Balance & billing.

Authorizations

Authorization
string
header
required

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

Body

application/json
credits
enum<integer>
required

Number of credits to purchase. Allowed values: 10,000, 20,000, 80,000, or 100,000.

Available options:
10000,
20000,
80000,
100000

Response

Payment succeeded.

success
enum<boolean>
Available options:
true
payment_intent_id
string

Stripe PaymentIntent id for the charge.

credits
integer

Credits purchased in this request.