Saltar al contenido principal
PUT
Designate the tenant's account for a currency and role

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Parámetros de ruta

currency
string
requerido

ISO 4217 code of the asset the account holds.

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

"BRL"

role
enum<string>
requerido

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.

Opciones disponibles:
suspense,
below,
above,
loss
Ejemplo:

"below"

Cuerpo

application/json
gl_account
string
requerido

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
Ejemplo:

"2100-90-001"

Respuesta

OK

currency
string
requerido

ISO 4217 code of the asset the account holds.

Ejemplo:

"BRL"

gl_account
string
requerido

GL account in the tenant's ledger.

Ejemplo:

"2100-90-001"

role
enum<string>
requerido

What the account takes.

Opciones disponibles:
suspense,
below,
above,
loss
Ejemplo:

"below"