POST
/
v1
/
ledger
/
{ledger_key}
/
type
/
asset-move

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
code
string
required

The code of the type. This code will be unique across the ledger and will be used to reference the type. For account types this could be something like 'checking' or 'savings', for asset move types this could be 'remittance' or 'withdrawal'. And for asset move decline types this could be 'invalid_destination'

Minimum length: 1
metadata
object

Additional, optional, metadata for the type

Response

200 - application/json
code
string
required

The code of the type. This code will be unique across the ledger

Minimum length: 1
metadata
object

Additional, optional, metadata for the type