PATCH
/
v3
/
billing
/
auto-recharge
Update Auto Recharge
curl --request PATCH \
  --url http://127.0.0.1:3333/v3/billing/auto-recharge \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": true,
  "triggerAmount": 1,
  "rechargeAmount": 501
}
'
{
  "workspaceId": "<string>",
  "autoRechargeEnabled": true,
  "autoRechargeTrigger": 123,
  "autoRechargeAmount": 123,
  "billingCurrency": "brl"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

workspaceId
string
required

Body

application/json
enabled
boolean
required
triggerAmount
number
required
Required range: x >= 0
rechargeAmount
number
required
Required range: x >= 500
currency
enum<string>
Available options:
brl,
usd,
eur,
gbp

Response

Default Response

workspaceId
string
required
autoRechargeEnabled
boolean
required
autoRechargeTrigger
number
required
autoRechargeAmount
number
required
billingCurrency
enum<string> | null
Available options:
brl,
usd,
eur,
gbp