Billing

Set the org's auto-recharge policy

PUT
/v1/orgs/{orgId}/billing/auto-recharge
AuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer vl_….

In: header

Path Parameters

orgId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/orgs/string/billing/auto-recharge" \  -H "Content-Type: application/json" \  -d '{    "enabled": true,    "thresholdCents": 0,    "amountCents": 0  }'
{
  "enabled": true,
  "thresholdCents": 0,
  "amountCents": 0
}
{
  "error": "string",
  "code": "string"
}
{
  "error": "string",
  "code": "string"
}
{
  "error": "string",
  "code": "string"
}
{
  "error": "string",
  "code": "string"
}