For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update Account

Updates an existing account's properties, including its name, default flag, and status. Returns the updated account details.

Endpoint

PATCH/v2/account/{id}

Link

Request

Path Parameters

Parameter
Type
Description
Required
Example

id

string

Account ID to update.

Yes

"UhcPVBEpjmtR"

Headers

Key
Value
Required

Authorization

Bearer <JWT>

Yes

Content-Type

application/json

Yes

Accept

application/json

Yes

Request Body (JSON)

All fields are optional - only include the fields you want to update.

Field
Type
Description & Values
Example

name

string

New account name.

"New Account Name"

currencyIso

string

New currency code (ISO 4217, e.g., USD).

"EUR"

isDefault

boolean

Set as default account (true/false).

true

status

string

New account status: - NEW - PRE_MODERATION - MODERATION - ACCEPTED - REJECTED - BANNED - PROCESSING

"ACCEPTED"

Example Request Body:

json


Response (200 OK)

Returns the updated Account entity v2 object in JSON format (same structure as Get Account by ID).

Key Response Fields

  • name: Updated account name

  • currencyIso: Updated currency (if changed)

  • isDefault: New default status

  • status: Updated account status

  • updatedAt: New timestamp reflecting update time

Example Response:

json

Error Cases

  1. Invalid Status Transition:

    json

  2. Currency Change Restrictions:

    json

  3. Account Not Found:

    json


Notes

  • Partial Updates: Only included fields are modified; omitted fields remain unchanged.

  • Immutable Fields: Some fields (e.g., customerId) cannot be updated.

  • Status Flow: Ensure valid status transitions (e.g., NEW → ACCEPTED is valid, but BANNED → ACCEPTED may be blocked).

Examples

Real request

Real response

200 OK

Last updated