Skip to main content
PUT
Set or update auto-recharge config for a customer

Authorizations

Authorization
string
header
required

Provider secret API key (sk_live_… / sk_test_…) supplied as a Bearer token.

Body

application/json
currency
string
required
customerRef
string
required
Minimum string length: 1
enabled
boolean
required
triggerType
enum<string>
required
Available options:
balance
customerEmail
string<email>
customerName
string
deferSetupIntent
boolean
maxMonthlySpendMajor
number
Required range: 0 < x < 10000
thresholdAmountMajor
number
Required range: 0 < x < 10000
topupAmountMajor
number
Required range: 0 < x < 10000

Response

Saved auto-recharge config and optional SetupIntent details.

config
object
required
display
object
publishableKey
string

Stripe publishable key for the resolved environment

setupClientSecret
string

Stripe SetupIntent client secret for card collection

stripeAccountId
string

Connected Stripe account ID