POST

/api/billing/topup

Credit top-up via Stripe

Creates a Stripe payment intent for credit top-up. Returns a client secret for frontend confirmation.

curl -s -X POST "$BASE/api/billing/topup" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount": 10}'

Request Body

FieldTypeReqDefaultDescription
amountnumberYTop-up amount in USD
paymentMethodIdstringNSaved payment method ID (optional)

Try it out

Sign in to use your API key
Request Body
Response
Click Execute to test