PUT
/
v1
/
ledger
/
{ledger_key}
/
account
/
{account_key}

This endpoint updates an account and associated asset rules

Headers

Authorization
string
required

The Basic Authentication header. Format: "Basic {base64(orgID:apiKey)}"

Path Parameters

ledger_key
string
required

The key of the ledger. Examples:

  • "123e4567-e89b-12d3-a456-426614174000"
  • "id:123e4567-e89b-12d3-a456-426614174000"
  • "ref:ledger:customer_a"
account_key
string
required

The key of the account. Examples:

  • "123e4567-e89b-12d3-a456-426614174000"
  • "id:123e4567-e89b-12d3-a456-426614174000"
  • "ref:internal:revenue:fx"

Body

application/json
default_asset_code
string

the new default asset code for the account

Minimum length: 1
metadata
object

the new metadata for the account, will overwrite existing metadata

status
enum<string>

the new status for the account

Available options:
ACTIVE,
INACTIVE,
INACTIVE

Response

200 - application/json
account_id
string
required

The unique identifier of the account

account_ref
string
required

The externally defined reference of the account

Minimum length: 1
created_at
string
required
default_asset_code
string
required

The default asset for the account

Minimum length: 1
enabled_assets
object[]
required

The enabled assets for the account with asset rules such as min/max balances

updated_at
string
required
metadata
object

Additional, optional, metadata for the account

status
enum<string>

The status of the account, defaults to ACTIVE

Available options:
ACTIVE,
INACTIVE,
INACTIVE