Versioning
The current public API version is v1.
text
https://api.factulit.es/api/v1
https://api.sandbox-factulit.es/api/v1Versioning is shared by both environments: each serves the same v1 version and the same order payload contract.
Factulit keeps v1 compatible for existing server-side integrations. Additive fields may be introduced when they do not break existing payloads.
Order Payload Contract
Order payloads support contract_version.
- Missing
contract_versionis treated as1.0. 1.1adds optional fiscal and reconciliation fields.1.3adds explicitcorrection_events[].1.4adds optional ordertags[]as source facts for account-configured rules.1.5adds optional timing metadata and the payment datepaid_at.1.6adds optionalbuyer_roleas a declared fact about the buyer.1.7adds optionalid_external_variationto identify the exact variation sold on a line.1.8adds optionalkindondiscounts[]andunmapped_totals[].1.9defines how dates without a time zone are read and adds optionalsource_timezone.- Existing v1.0 integrations do not need to send v1.1 fields.
Breaking API changes will be published as a new public version.
v1.4 (additive, backward-compatible)
- Orders may send up to 100
tags, with 255 characters per value. - Omitting
tagson update preserves the stored list;tags: []clears it. - Tags never instruct Factulit to invoice or cancel. The account owner defines ordered rules in Factulit, and explicit refunds/corrections retain priority.
v1.9 (additive, backward-compatible)
- A date with a time zone (
Z,+02:00) is an instant; send dates this way. The business time zone does not change it. - A date without a time zone is read as local time: first in the business time zone configured in Factulit, then in
source_timezone, then in UTC. Payloads below 1.9 keep reading it as UTC. source_timezoneis an IANA zone (Europe/Madrid). Any other value is ignored and the order is not rejected.- Factulit derives the operation day in the business time zone. An order that is already invoiced keeps its dates when a new reading only differs by the time zone. See Orders.
v1.8 (additive, backward-compatible)
discounts[]andunmapped_totals[]acceptkind, one ofpromotional,customer_credit,gift_card,loyaltyorunknown. Any other value is discarded.kindis a convenience, not the only route: a rule the account owner defines on the row'scodetakes precedence over the connector's label.unmapped_totals[]requires a stable lowercasecode; rows without one are discarded.
v1.7 (additive, backward-compatible)
- Lines in
breakdown[]andcorrection_events[].lines[]acceptid_external_variation, the exact variation sold. Leave it empty for simple products. - The variation takes part in version and fiscal-decision fingerprints: changing it invalidates an earlier decision even when the total is unchanged.
v1.6 (additive, backward-compatible)
buyer_role(consumer,businessorunknown) declares the role the recipient acts in for that purchase. It is a neutral fact, not a fiscal instruction: absence meansunknownand never on its own widens the simplified-invoice threshold.
v1.5 (additive, backward-compatible)
- Optional timing metadata (
source_updated_at,source_event_id,source_event_occurred_at,mapper_version,sync_scope) to order the history. Their absence never blocks syncing. paid_atdeclares the payment date.
Changelog
v1 scheduled direct invoices (1.10, additive, backward-compatible) (2026-11-05)
POST /invoiceaccepts optionalscheduled_issue_date,scheduled_issue_timeandsend_to_customer. With a scheduled date it returns202and an unnumbered draft; it is issued on that day with the same guards as the panel. Requires an active Pro or Premium plan.GET /invoice/{external_id}reportsscheduled,issued,failedorcancelled, plusscheduled_error_codeon failure. There is no webhook.PUT /invoice/{external_id}updates, reschedules, cancels or issues early (issue_now) a scheduled invoice; issued invoices stay immutable (409).- It does not change the order payload
contract_version. See Invoices.
v1 direct invoice description: 120 characters (2026-10-19)
POST /invoiceaccepts up to 120 characters indescription, the length declared to the AEAT as the operation description. The previous documented limit of 500 was misleading: only the first 120 characters reached the AEAT. A longer value now returns422.- Line breaks, control characters, emojis and other non-text symbols are removed before the description is stored and declared. A description with no usable text returns
422. Linedescriptionkeeps its 500-character limit and the same cleaning.
v1 direct invoice issuance (additive, backward-compatible)
- API connections with explicit VeriFactu invoicing consent can use
POST /invoiceto atomically issue a numbered invoice and itsALTArecord. external_idprovides connection-scoped idempotency;GET /invoice/{external_id}retrieves the result andPUTis rejected because issued invoices are immutable.- Existing client, status, order, and key operations are unchanged.
v1.1 (additive, backward-compatible)
invoice_actiongained theexchange_to_fullvalue, requesting the exchange of an already-issued simplified invoice (F2) for a full invoice (F3) once the customer provides their tax ID. See Fiscal Lifecycle.original_order_reference(optional, up to 64 characters) was added at the order level to reference the original order when the F3 exchange arrives as a separate order rather than an update.breakdown[].regimeis now documented against the full VeriFactu regime key list (ClaveRegimen). The core always honors an explicitregime; it only derives a value automatically when the line omits it or sends the generic01.
These fields are optional and do not change the behavior of existing v1.0 or v1.1 integrations that omit them.