Skip to main content
PUT
cURL

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer YOUR_API_KEY.

Headers

Idempotency-Key
string

Optional. A retry with the same key returns the first answer with idempotentReplay: true.

Required string length: 8 - 255

Path Parameters

locationId
string
required

The sub-account's Location ID.

Minimum string length: 1

Body

application/json

On, optionally with auto-recharge and Credit Guard; or off.

On, optionally with auto-recharge and Credit Guard; or off.

enabled
boolean
required

true to turn direct billing on, false to turn it off.

autoRecharge
object

Only with enabled: true. Set the sub-account's auto-recharge in the same step. On needs your client's card saved first.

creditGuard
object

Only with enabled: true. Leave out to turn Credit Guard on for a sub-account that was not on direct billing, and to keep it as it is for one that was.

Response

The sub-account after the change.

success
boolean
required
Example:

true

data
object
required
idempotentReplay
boolean

Present, and true, when this answer is a replay of an earlier request with the same Idempotency-Key.