Utilice este endpoint para crear una Cuenta en Midaz. Puede crear tantas cuentas como sea necesario para estructurar su ledger, pero cada solicitud crea solo una cuenta a la vez.
Importante: Antes de crear una Cuenta, asegúrese de que el Activo correspondiente ya exista. Utilice el endpoint Crear un Activo para registrarlo si es necesario.
Si ha definido previamente Tipos de Cuenta, asegúrese de que estén correctamente configurados antes de la creación de la cuenta. Recomendamos recrear las cuentas existentes o actualizarlas para incluir el tipo correcto antes de habilitar la función de validación de Tipo de Cuenta — esto ayuda a prevenir errores de validación y garantiza el cumplimiento de su estructura contable.
El token de autorización. Este encabezado es requerido si su entorno tiene Access Manager habilitado.
El tipo de medio del recurso. El valor recomendado es application/json.
Un identificador único utilizado para rastrear y seguir cada solicitud.
El identificador único de la Organización asociada al Ledger.
El identificador único del Ledger asociado.
The code that identifies the Asset used in the Account. Important: Must be an Asset that you've already created using the Crear un Activo endpoint.
Specifies the Account Type associated with the account. Important: When Account Type validation is enabled for your Organization and Ledger, this field becomes mandatory and must match an existing keyValue defined in your Account Types configuration. However, when validation is disabled (default behavior), this field is optional and accepts any free-form string without validation.
The name of the Account.
256A unique, user-friendly identifier for the account. Used to reference the account in transactions and other operations. If not provided, the system will use the account's ID as the alias.
100Defines whether the account should start locked.
The unique identifier of the parent Account, if this is a sub-account.
The unique identifier of the Entity responsible for the Account.
The unique identifier of the associated Portfolio.
The unique identifier of the Segment which is used to cluster the Account.
An object containing information about the status. Important: If not provided, the default status will be 'ACTIVE'.
An object containing key-value pairs to add as metadata, where the field name is the key and the field value is the value. For example, to add a Cost Center, use 'costCenter': 'BR_11101997'.
Indica que la solicitud fue exitosa y la respuesta contiene los datos esperados.
El identificador único de la Cuenta.
The unique identifier of the Organization.
El identificador único del Ledger.
The code that identifies the Asset used in the Account.
The name of the Account.
256A unique, user-friendly identifier for the account. Used to reference the account in transactions and other operations.
Specifies the Account Type associated with the account.
Defines whether the account should be blocked.
The unique identifier of the Parent Account.
The unique identifier of the Entity responsible for the Account.
The unique identifier of the associated Portfolio.
The unique identifier of the Segment which is used to cluster the Account.
An object containing key-value pairs to add as metadata, where the field name is the key and the field value is the value. For example, to add a Cost Center, use 'costCenter': 'BR_11101997'.
Timestamp of creation (UTC).
Timestamp of last update (UTC).
Timestamp of soft deletion, if applicable (UTC).