Skip to main content
POST
Grant or revoke automatic billing collection

Authorizations

Authorization
string
header
required

Customer access token; current membership, role and app selection are enforced. Protected actions use recent email-code verification in the configured Sandbox or recent authenticator verification in legacy password mode. Available when customer authentication is enabled.

Headers

Idempotency-Key
string
required

Required. A client-generated key that identifies this operation so it can be retried safely. Repeating the request with the same key and the same body returns the original result instead of performing the action again; reusing a key with a different body is rejected with 409. After a timeout or network error, retry with the same key, never a new one.

Required string length: 1 - 80
Pattern: ^[A-Za-z0-9_-]+$
authorization
string | null

Path Parameters

tenant_id
string
required
Required string length: 1 - 40

Query Parameters

environment
enum<string>
required
Available options:
sandbox,
live

Body

application/json
automatic_collection
boolean
required
expected_generation
integer
required

Required for automatic_collection=true; use consent_generation from the payer response.

Required range: 0 <= x <= 2147483647
terms_id
string
required
Required string length: 1 - 40

Response

Successful Response