Skip to main content
PUT
/
agency
/
billing
/
options
Update agency billing
curl --request PUT \
  --url https://api.closebot.com/agency/billing/options \
  --header 'Content-Type: application/json' \
  --header 'X-CB-KEY: <api-key>' \
  --data '
{
  "overBillingEnabled": true,
  "autoRefillEnabled": true,
  "topUpAmount": 123,
  "refillThreshold": 123
}
'
{
  "overBillingEnabled": true,
  "usageBillingEnabled": true,
  "autoRefillEnabled": true,
  "topUpAmount": 123,
  "refillThreshold": 123,
  "currency": "<string>"
}

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Body

overBillingEnabled
boolean | null
autoRefillEnabled
boolean | null
topUpAmount
integer<int64> | null
refillThreshold
integer<int64> | null

Response

Success

overBillingEnabled
boolean
usageBillingEnabled
boolean
autoRefillEnabled
boolean
topUpAmount
integer<int64>
refillThreshold
integer<int64>
currency
string | null