Skip to main content
PUT
Designate the tenant's account for a currency and role

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Path Parameters

currency
string
required

ISO 4217 code of the asset the account holds.

Pattern: ^[A-Z]{3}$
Example:

"BRL"

role
enum<string>
required

suspense: the CCB's own residual, on either side. below: still owed to the borrower in a disbursement in parts (valores a liberar ao tomador). above: paid over the liberated amount (pago a maior). loss: the expense a disbursement excess the borrower keeps is written off to.

Available options:
suspense,
below,
above,
loss
Example:

"below"

Body

application/json
gl_account
string
required

GL account in the tenant's ledger, as its Midaz alias: at most 50 letters, digits, ':', '_' and '-', with an optional leading '@', or @external/ (LENDER-0429 otherwise).

Required string length: 1 - 128
Example:

"2100-90-001"

Response

OK

currency
string
required

ISO 4217 code of the asset the account holds.

Example:

"BRL"

gl_account
string
required

GL account in the tenant's ledger.

Example:

"2100-90-001"

role
enum<string>
required

What the account takes.

Available options:
suspense,
below,
above,
loss
Example:

"below"