accounting.journal_entries (changes to the entry types catalog also require accounting.entry_types.write)
Create journal entry
Journal entries created through the API are always saved as DRAFT. The accountant reviews and posts them in FileXpress; until then they do not affect the financial statements.
details[]
Rules
- Each line carries an amount in the debit or the credit, not both.
- The entry must balance: sum of debits = sum of credits.
- The entry type comes from the same catalog used by the new journal entry screen in FileXpress (Journal entry types). If
entry_typeorentry_type_idis sent and does not match an active type of the business, it responds422with the list of valid codes. - Without
entry_typeorentry_type_id, the type configured for the external API in the business accounting settings is used (DIAif none was configured), as before. - The saved description includes the integration name, for example
Comisiones de ventas octubre [Ref: COM-2026-10] (API: Mi ERP).
Cost center behavior
Each account in the chart of accounts has a cost center policy, configured in FileXpress (see Cost centers):
If the company has the option to require cost centers turned on, accounts with an optional policy are treated as required. Get the center IDs with Cost centers.
201 response: the created entry (format below), with status: "BORRADOR", entry_code: null (the code is assigned when it is posted) and entry_type_id with the applied type.
Common errors (422)
details.N.cost_center_id messages: La cuenta <código> no acepta centro de costo (solo las cuentas de resultado lo llevan). and those for a center that does not exist, is inactive, or has sub-centers.
It also responds 422 if there is no open period for entry_date.
List journal entries
Get journal entry
reference_type indicates the origin: sale, expense, payment_received, payment_made, payroll, payroll_payment, payroll_provision, external_integration, or empty (manual entry).
Each details line includes cost_center_id (null if it has no center) and cost_center_distribution_id (the originating distribution, or null). In entries generated from documents, the center only appears on income statement account lines.
Journal entry types
The business’s catalog of journal entry types is the same one used by the new journal entry screen in FileXpress. Thecode of each type is the value you send as entry_type when you create a journal entry (or its id as entry_type_id).
An entry type from another business responds
404, the same as one that does not exist.
List entry types
Get entry type
list.
Create entry type
201 response: the created type. If the code already exists it responds 422 (Entry type PROV already exists.). If the code belonged to a previously deleted type, that type is restored with the data sent.
Edit entry type
name, description, prefix, requires_approval, and is_active. The code cannot be changed because entries reference it; sending it responds 422. To use a different code, create a new type.