Skip to main content
POST
/
api
/
billing
/
{spaceId}
/
auto-top-up
cURL
curl --request POST \
  --url https://api.kazzle.app/api/billing/{spaceId}/auto-top-up \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": true,
  "threshold": 123,
  "amount": 123
}
'
{
  "ok": true
}

Authorizations

Authorization
string
header
required

Better Auth JWT token

Path Parameters

spaceId
string
required

Body

application/json
enabled
boolean
required
threshold
number | null
amount
number | null

Response

200 - application/json

Successful response

ok
boolean
required