ERP import, task links and overdue purchase orders
Import warehouses, opening stock, sales orders and purchase orders from a file through the API and MCP, link tasks to fourteen kinds of entity, receive purchase_order.overdue, propose a transport document from shipments and transfers, and match scanned invoices to purchase orders. 20 new operations, 37 updated ones.
2 December 2026 — The omnichannel ERP families gain four file imports, a wider set of task links, a new event for late purchase orders and a few additions to the transport document, the purchase scanner and the PDF template catalog. The contract goes from 830 to 850 operations over 62 resources and 686 paths. Nothing that was already published is removed or renamed.
Import the ERP from a file
Four entities can be loaded from a CSV file, each with the same five operations: a template to download, a preview that creates nothing, the import itself, the status of an import and the report of the rows that were rejected. See the bulk import guide and Export and import.
- Warehouses. Scope
warehouses:writeto preview and import,warehouses:readfor the template, the status and the report. - Opening stock per warehouse. One opening movement per balance, with reason
initial. A second load of the same file is skipped (already_exists) and never adds to the stock. Same scopes as warehouses. - Sales orders. Scopes
sales_orders:writeandsales_orders:read. - Purchase orders. Scopes
purchase_orders:writeandpurchase_orders:read.
How an import behaves:
- The preview describes what would be created, skipped or rejected. The import returns
201when it runs in the request (up to 200 rows) or202when it is queued, always with aLocationto the status of the import. - Rows that do not pass validation go to the rejection report; they never stop the rest of the batch.
- Repeating the call with the same
Idempotency-Keyreturns the same response and the sameLocation, withIdempotent-Replayed: true, and creates no rows. - A second import of the same entity while one is running responds
409import_in_progress. - A request body over 10 MB responds
413payload_too_large; a file over 10 MB that fits the envelope responds422invalid_param_valueonfile. - On a plan with a monthly limit of sales orders, rows beyond the limit are reported with the
row code
sales_orders_monthly_limit_exceededand the reasonplan_limit_reached; the request itself still succeeds with the rows that fit. - The modules decide who can use each entity: sales orders, warehouses and purchase orders from the Avanzado plan upwards.
Through MCP there are sixteen new tools, four per entity (preview, import, status and
rejection report); the template download has no tool. Their file_base64 argument admits up
to 10 MB once decoded, and above that the tool answers 422 business_rule_violation with
subcode media_too_large. See the tool catalog.
Fourteen kinds of task link
A task can now be linked to a sales_order, a purchase_order, a return_order, a
goods_receipt or a stock_transfer, in addition to the nine kinds it already accepted
(invoice, quote, proforma, delivery_note, purchase_invoice, recurring_invoice,
contact, product and employee).
- Creating a task with
entity_link, creating and listing the links of a task, and listing the tasks linked to an entity (entity_type) all take the fourteen values. - The
entity_idof a link accepts any UUID version: a sales order that came from a connected store carries a deterministic v5. - An entity that does not exist, belongs to another company or sits in a module that is not
available answers the same
404linked_entity_not_found, without telling the cases apart. Each of the five new kinds needs the module of its resource:sales_orders,purchase_orders(purchase orders and goods receipts),returnsorwarehouses(stock transfers), all from the Avanzado plan upwards. - The employee portal does not return task links.
- An automation rule with the trigger
sales_order.confirmedcan create a task linked to the order. See Tasks and Automations.
purchase_order.overdue
A new event for webhooks, automations and n8n. It is emitted once per expected delivery date that has passed on a purchase order that has not been received; if the expected date changes, it can be emitted again for the new date. It only emits: the status of the order does not change, and it creates no notification of its own in the application.
data.object is the purchase order captured at that moment, and data.days_overdue is an
integer next to object. Automation conditions can evaluate it (days_overdue >= 5). The
event is in the live catalog and in the event-name enumerations of the webhook endpoints.
See Events.
Transport document from shipments and transfers
Creating a transport document can propose its shipments from delivery notes and from stock transfers; proposing never issues it.
stock_transfer_ids(on creation) andshipments[].stock_transfer_id(on creation, edit and modify) take a transfer as the source of a shipment, exclusive withshipments[].delivery_note_id. Together withdelivery_note_idsthey add up to 50 sources.- The origin can come from a warehouse (
origin_warehouse_id) or from an address. - Each shipment returns
source_type(delivery_note,stock_transferornull) andstock_transfer_id;source_changed,source_changesandsource_missingapply to transfers too. - The document returns
warnings, a list ofTransportDocumentWarning(code,param,message) that is empty when there is nothing to report and always empty on an issued document. The codes areincomplete_parties,origin_missing,origin_not_supportedanddestination_not_supported. - No new scope:
warehouses:readis needed besides the scope of the operation when the body carries transfers, anddelivery_notes:readfor a delivery note with a physical cycle. - The ten
transport_document.*events carry the same resource, with no change of payload version.
See Transport documents.
Purchase scanner and purchase orders
A scanned purchase invoice can be matched to a purchase order.
- The detail of a scan (
order_matching) lists the order reference read from the document, the chosen order, the suggested one and the candidates, only when the company has purchase orders and the key coverspurchase_orders:read. - The review accepts
fields.order_referenceandfields.purchase_order_id; converting a scan acceptspurchase_order_id. Sending the order requirespurchase_orders:writein addition topurchase_invoices:write. - A purchase order that does not exist or belongs to another company answers
404purchase_order_not_found. - For SDK generators, the request type
ConvertPurchaseScanRequestis nowConvertPurchaseScanV1Request.
See Document scanner.
Other updates
- PDF templates. Each template in the catalog of account personalization lists
document_types, the document types it can print (seven values, sales orders and purchase orders among them). The PDF of a sales order and of a purchase order is composed with the brand template and the identity of the issuing company. See Account personalization. - Event catalog. The webhook endpoints, the account webhooks, the events and their
deliveries list
purchase_order.overdueamong the event names.