Skip to main content
PUT
Disable an enabled collection account by setting action to disable. Once disabled, the account no longer accepts incoming payments. Only virtual accounts can be disabled through this endpoint. In production, disabling is asynchronous — the account keeps accepting payments until the disablement request reaches succeeded. The response returns the account only and does not include a requests array, so track completion by subscribing to collection_account.disablement_succeeded (see Collection Account Webhooks) or by polling List Collection Accounts with status=disabled. In sandbox, disabling takes effect immediately: the returned account is already disabled, no request is created, no webhook fires, and reason is not recorded. An account disabled this way can be re-enabled later when is_reenablement_supported is true. Accounts disabled by Tazapay rather than by you cannot be re-enabled through the API.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

Unique ID of the collection account to update. 24 characters, starting with cva_ (virtual account) or cwa_ (wallet).

Body

application/json
metadata
object

Set of key-value pairs to attach to the collection account object.

alias
string

Nickname for the account.

action
enum<string>

State transition to perform. Omit to update alias and metadata only. When supplied, a disablement or re-enablement request is created and processed asynchronously.

Available options:
disable,
reenable
reason
string

Reason recorded against the state transition. Applies only when action is supplied. Surfaced as disablement_reason on the resulting request object.

Response

200 - application/json

Collection account updated successfully.

status
string
message
string
data
object