Skip to main content
PATCH
Opt in to automatic prepaid top-ups with a monthly ceiling

Authorizations

__Secure-better-auth.session_token
string
cookie
required

Better Auth session with selected organization. Mutations also require the trusted Origin header.

Body

application/json
autoTopup
boolean
required
autoTopupAmountCents
integer
required
Required range: 1000 <= x <= 10000
autoTopupThresholdCents
integer
required
Required range: 200 <= x <= 10000
autoTopupMonthlyLimitCents
integer
required
Required range: 1000 <= x <= 100000

Response

Successful JSON response

The response is of type object.