Skip to main content
PATCH

Errors

Plus the shared errors — see Accounts errors.

Authorizations

API-KEY
string
header
required

Your partner API key.

Headers

Api-Version
string
default:2026-09.1
required

The API version this request targets. Required on every /api/v0/* call. Format YYYY-MM.<release>; 2026-09.1 is the latest. The version that served the request is echoed back on the response. Missing, malformed or unsupported values are rejected with 400.

Pattern: ^\d{4}-\d{2}\.\d+$

Path Parameters

userId
string
required

The customer the account belongs to. Must be a cus_… reference id, and must belong to your partner account. Blank → 400 ERRACC_1000; malformed, unknown, soft-deleted or another partner's → 404 ERRREF_1001.

Example:

"cus_9HqA2mT7xK4vRb1NdLpZ"

accountId
string
required

The account to act on. Must be an acct_… reference id. Malformed → 400 ERRREF_1000; well-formed but unknown → 404 ERRREF_1001.

Example:

"acct_8f2a1c4e9b7d43a6"

Response

Queues a deactivation of an active account.

The change is applied asynchronously, so status and requested will differ until it lands. Poll Get Account until status reaches requested.

id
string
required

The account's reference id, echoed as sent.

requested
enum<string>
required

The transition you asked for — ACTIVE or DEACTIVATED.

Available options:
ACTIVE,
DEACTIVATED
acceptedAt
string<date-time>
required

When the request was accepted. A statement about the request, not a claim that the change has landed.

status
enum<string>

The account's state right now, re-read after the change was queued.

Available options:
ACTIVE,
PENDING,
DEACTIVATED,
CLOSED,
FROZEN,
UNDER_REVIEW,
DORMANT