POST
/
v1
/
ledger
/
{ledger_key}
/
type
/
account
curl --request POST \
  --url https://api.sandbox.nxos.io/v1/ledger/{ledger_key}/type/account \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "code": "<string>",
  "metadata": {}
}'
{
  "code": "<string>",
  "metadata": {}
}

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"

Body

application/json

Response

200 - application/json
The request has succeeded.

The response is of type object.