Skip to main content
POST
Enable pay-as-you-go

Authorizations

Authorization
string
header
required

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

Body

application/json
amountUsd
number
required

Initial prepaid credit amount to purchase while enabling PAYG.

Required range: x >= 10
autoTopupThresholdCents
integer

Optional low-balance threshold, in cents, that enables auto-top-up after payment succeeds.

Required range: x >= 1
autoTopupAmountCents
integer

Optional refill amount, in cents, used with autoTopupThresholdCents.

Required range: x >= 1000

Response

PAYG enable PaymentIntent created.

object
string
required
Allowed value: "payg_enable_intent"
clientSecret
string
required
paymentIntentId
string
required
breakdown
object
required
requestId
string
required