Skip to main content
DELETE
Delete a connected account

Authorizations

Authorization
string
header
required

Bearer token authentication. Pass your API key as Authorization: Bearer sk_.... See Authentication for keys, scopes, and sandbox vs production.

Scopes

connected_accounts:write

Path Parameters

account_id
string
required

The account to act on. It must be one of your own accounts; any other ID returns 404 so the response never confirms that an unrelated account exists.

Body

application/json
confirm_name
string | null

When supplied, must match the exact account name, or the account ID when the account is unnamed.

Minimum string length: 1
Example:

"Ada Stores"

reason
string | null

Your optional reason for closing the account.

Maximum string length: 1000
Example:

"Store no longer uses the platform."

Response

Account soft deleted, or the existing closure on retry.

organization_id
string
required

The account that was soft deleted.

Example:

"acct_3Wq8ZfT1yHnJ5sVe"

closed_at
string<date-time>
required

When the account was closed; retries return the original time.

Example:

"2026-11-23T18:00:00Z"

confirmation_email_sent
boolean
required

Whether the account closure confirmation email was sent.

Example:

true

personal_data_erasure_scheduled
boolean
required

Always false for platform closure: the account and its records are retained.

Example:

false

reason
string | null

The stored reason for closure, if one was supplied.

Example:

"Store no longer uses the platform."