GroundsocialDocs

API · Dashboard billing

PUT /accounts/{id}/auto-topup

Turn auto top-up on or off and set its threshold, pack and monthly cap.

RequestPUT /v1/accounts/{id}/auto-topup
Operation idaccounts.autoTopup.update
CostFree
AuthDashboard session: Authorization: Bearer <session_token>. API keys are refused.

Below threshold_credits (100 to 1000000, under the pack's credits) the saved card is charged for the pack, at most monthly_cap_usd per UTC month (up to $10000). Turning it on needs a saved card (409 otherwise). A declined card turns it off and emails the owners.

Path parameters

NameTypeRequiredDescription
idstringyesExample: acct_01J….

Request body

FieldTypeRequiredDescription
enabledbooleanyes
threshold_creditsintegeryes
packstringyesstarter, builder, scale, volume
monthly_cap_usdstringyes

Responses

StatusMeaningSchema
200The saved settings.AutoTopup
400Invalid settings.Error
401Not signed in, or an API key was sent.Error
403Members can look; owners and admins make changes.Error
404No such account among yours.Error
409No saved card yet.Error

AutoTopup fields

FieldTypeDescription
enabledboolean
activebooleanEnabled with a saved card: the next spend below the threshold charges it.
threshold_creditsinteger
packstring
monthly_cap_usdstring
spent_this_month_usdstring
cardobject | null
disabled_reasonstring | null
attemptsobject[]

Errors use one shape everywhere; see Errors for every code and what to do.