Set or update auto-recharge config for a customer
Persists the auto-recharge configuration for a customer. When no reusable card is on file, a Stripe SetupIntent client secret is returned so the caller can collect one.
Request body
Response
Saved auto-recharge config and optional SetupIntent details.
Example response
{
"config": {
"enabled": true,
"maxMonthlySpendMinor": 10000,
"monthlySpendMinor": 4500,
"monthlySpendPeriod": "2026-07",
"topup": {
"amountMinor": 2000,
"currency": "USD",
"mode": "fixed"
},
"trigger": {
"thresholdAmountMinor": 500,
"type": "balance"
}
},
"display": {
"currency": "USD",
"exchangeRate": 1,
"formatted": {
"threshold": "$5.00",
"topup": "$20.00"
},
"rateSource": "db",
"thresholdAmountMajor": 5,
"topupAmountMajor": 20
}
}Changes
Changed in 3 of the 27 revisions of this API.156
- ●
added the new
dbenum value to the/response property for the response statusresponse-property-enum-value-added
- ●
added the new
fallbackenum value to the/response property for the response statusresponse-property-enum-value-added
- ●
added the new
parityenum value to the/response property for the response statusresponse-property-enum-value-added
- ●
- ▲
removed the required property
/from the response with the statusresponse-required-property-removed
- ●
removed the request property
request-property-removed
- ●
removed the optional property
/from the response with the statusresponse-optional-property-removed
- ○
added the new optional request property
new-optional-request-property
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
removed the
completedenum value from the/response property for the response statusresponse-property-enum-value-removed
- ○
added the required property
/to the response with the statusresponse-required-property-added
- ▲
- ○
endpoint added
endpoint-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○