Factuarea APIDevelopers
Added

Orders, stock and purchasing in the ERP

Sales orders that stay editable after confirmation, returns that discount, a stock ledger for the company, transfers with transit, shipments with package contents, purchasing with rejections and partial invoicing, and the agenda and automation catalog reads. 1 new operation, 189 updated ones.

2 December 2026 — The order, warehouse, fulfilment and purchasing families describe and apply a wider set of behavior. One operation is new, GET /v1/companies/{company}/stock-movements, and 189 existing ones describe more in the contract. The contract goes from 850 to 851 operations. Nothing that was already published is removed or renamed.

Sales orders

See Sales orders, Storefront and Fulfilment and returns.

  • Editable after confirmation. A confirmed order keeps its shipping address, the warehouse of the header and of each line, the expected date and the notes editable while something is left to serve. sales_order.updated is also emitted after confirmation.
  • Related documents. Quotes, pro-forma invoices, delivery notes, invoices and returns carry the sales order they relate to.
  • Returns that discount. Receiving a return subtracts it from the order (quantity_returned, pending quantity and status). sales_order.partially_served and sales_order.served can be emitted for that reason, and a closed order records what was returned without reopening.
  • Serving what was invoiced. An invoiced or partially invoiced order can be served for what is pending, and what was served is not invoiced again. Converting the delivery note of an order into an invoice invoices the order (sales_order.partially_invoiced and sales_order.invoiced); a delivery note that was already invoiced answers 422 sales_order_line_quantity_exceeded. Editing a draft delivery note keeps what was served in sync.
  • Series on first use. The first confirmation and the first return create their series (PED, DEV), and two simultaneous confirmations of the same order do not spend a number. Serving short and sending again what was returned are accepted.
  • Buyer without a contact. PATCH …/buyer on a confirmed order only links a contact with an identical identity. The generic channel holder is rejected with contact_is_channel_holder, and the prefix channel-holder: is reserved. In the three contact batches the holder appears in failures with business_rule_violation and no subcode, and in the sales order and invoice batches it is a failure of its row. Creating the generic contact publishes no contact.created nor contact.role.assigned and fires no automation.
  • Storefront payment. confirm-payment confirms the draft before issuing and takes the date of the payment as the operation date. The asynchronous notice of the payment provider confirms the payment even if the buyer does not come back. marketing_consent is stored on the order and read from it.

Warehouses and transfers

See Inventory and warehouses and Product catalog.

  • Stock movements of the company. GET /v1/companies/{company}/stock-movements lists the ledger of the whole company; the movements of a product keep their own operation.
  • Transit. Every receipt of a transfer, partial ones included, records the entry of what arrived and reduces the transit. Receiving more than was dispatched is still rejected.
  • Cancel a dispatched transfer. What was dispatched and not received returns to the origin (movement stock_transfer_cancelled); what was received stays at the destination. Cancelling a draft moves nothing.
  • Default warehouse and location. Creating a product with stock_quantity > 0 records an initial movement in the resolved warehouse, or responds 422 warehouse_not_resolvable without creating the product. The first own warehouse activates stock management and, when needed, creates the main warehouse; because of that, confirming or editing a sales order and creating a reservation can answer 409 identity_reservation on warehouses. A receipt with a location checks it with stock_transfer_location_invalid.

Shipments and stores

See Fulfilment and returns, Ecommerce stores, Transport documents and Versioning.

  • Package contents and weight. Shipment packages carry their contents, and total_weight_kg is null when a package has no weight, with the warning packages_without_weight.
  • Carrier tax ID. A carrier carries its NIF. A transport document proposed from delivery notes with a carrier without one is saved incomplete and is not issued; with a NIF, the prefill copies tax_id and address.
  • Handed over. fulfilment_already_handed_over is emitted for the packages (param: packages) and for the carrier (param: carrier_id), with subcode shipment_handed_over. tracking_number stays editable, also when the delivery note is invoiced.
  • Store context. Integration events carry the context of the store they belong to.
  • Paused stores. A store with status paused is returned as such with Factuarea-Version: 2026-11-01; with an earlier version it reads as active. The tools always speak the current contract.
  • Payloads. The sales_order.* events take the fields of the points above; invoice.*, quote.* and proforma.*, the sales_order; delivery_note.*, the sales_order, warehouse and consignee_name; fulfilment.*, total_weight_kg and packages_without_weight; stock_transfer.*, the warehouse fields; purchase_order.* and goods_receipt.*, those of purchasing. There are no new events or payload versions. See Events and Integrations.

Purchasing

See Purchasing and receiving.

  • Rejection at receipt. A goods receipt can record rejected quantities.
  • Matching against several invoices. A purchase order matches against what is invoiceable, across several purchase invoices. The deviations quantity_below and line_not_invoiced are no longer emitted, and stay in the enumeration for matches that already carry them.
  • billed. A purchase order becomes billed only when everything received is invoiced, also when it is closed with a pending quantity. Closing with a pending quantity emits purchase_order.received.
  • Defaults. Purchase order creation applies the default VAT. An offer of another supplier is rejected as not existing, a reorder suggestion does not duplicate an order, and cancelling the receipt of an order closed with a pending quantity or already invoiced is rejected.
  • Filters. has_rejections (a boolean; anything else answers 400) and match_status (an invalid value answers 422) filter the lists.

Reads

  • Agenda. A layer without scope or without module is left out of the agenda instead of failing the request. See Calendar feed.
  • Automation catalog. The catalog describes the entity selector of its actions. See Automations.

New endpoints1

EndpointDescription
GET/v1/companies/{company}/stock-movementsList the stock movements of the company

Updated endpoints189

EndpointDescription
GET/v1/accounts/{account}/webhooks/{webhook}/deliveriesList account webhook deliveries
GET/v1/companies/{company}/agendaList agenda items
GET/v1/companies/{company}/automations/catalogRetrieve the automation catalog
POST/v1/companies/{company}/carriersCreate a carrier
POST/v1/companies/{company}/carriers/find-by-codeFind a carrier by code
GET/v1/companies/{company}/carriersList all carriers
GET/v1/companies/{company}/carriers/{carrier}Retrieve a carrier
PATCH/v1/companies/{company}/carriers/{carrier}Update a carrier
POST/v1/companies/{company}/contacts/{contact}/archiveArchive a contact
POST/v1/companies/{company}/contacts/{contact}/roles/{role}Assign a contact role
POST/v1/companies/{company}/contacts/bulk/archiveArchive contacts in bulk
POST/v1/companies/{company}/contacts/bulk/statusChange contact role status in bulk
POST/v1/companies/{company}/contacts/bulk-createCreate contacts in bulk
POST/v1/companies/{company}/contacts/bulk-deleteDelete contacts in bulk
PATCH/v1/companies/{company}/contacts/{contact}/roles/{role}/statusChange a contact role status
POST/v1/companies/{company}/contactsCreate a contact
DEL/v1/companies/{company}/contacts/{contact}Delete a contact
POST/v1/companies/{company}/contacts/importImport contacts
POST/v1/companies/{company}/contacts/import/previewPreview a contact import
DEL/v1/companies/{company}/contacts/{contact}/roles/{role}Remove a contact role
POST/v1/companies/{company}/contacts/{contact}/restoreRestore an archived contact
PATCH/v1/companies/{company}/contacts/{contact}Update a contact
PATCH/v1/companies/{company}/contacts/{contact}/bank-accountsReplace the bank accounts of a contact
PATCH/v1/companies/{company}/contacts/{contact}/customer-profileUpdate a customer profile
PATCH/v1/companies/{company}/contacts/{contact}/supplier-profileUpdate a supplier profile
POST/v1/companies/{company}/delivery-notes/{delivery_note}/cancelCancel a delivery note
POST/v1/companies/{company}/delivery-notes/{delivery_note}/convertConvert delivery note to invoice
POST/v1/companies/{company}/delivery-notesCreate a delivery note
POST/v1/companies/{company}/delivery-notes/{delivery_note}/duplicateDuplicate a delivery note
POST/v1/companies/{company}/delivery-notes/find-by-external-idFind a delivery note by external ID
POST/v1/companies/{company}/delivery-notes/{delivery_note}/fulfilment-statusTransition the fulfilment status of a delivery note
GET/v1/companies/{company}/delivery-notesList all delivery notes
POST/v1/companies/{company}/delivery-notes/{delivery_note}/mark-deliveredMark delivery note as delivered
POST/v1/companies/{company}/delivery-notes/{delivery_note}/packagesAdd a package to a delivery note
DEL/v1/companies/{company}/delivery-notes/{delivery_note}/packages/{package}Delete a package of a delivery note
GET/v1/companies/{company}/delivery-notes/{delivery_note}/packagesList the packages of a delivery note
PATCH/v1/companies/{company}/delivery-notes/{delivery_note}/packages/{package}Update a package of a delivery note
POST/v1/companies/{company}/delivery-notes/{delivery_note}/picking-lines/{picking_line}/pickMark a picking line
POST/v1/companies/{company}/delivery-notes/{delivery_note}/picking-listOpen the picking list of a delivery note
GET/v1/companies/{company}/delivery-notes/{delivery_note}/picking-listRetrieve the picking list of a delivery note
GET/v1/companies/{company}/delivery-notes/picking-queueList the delivery note picking queue
GET/v1/companies/{company}/delivery-notes/{delivery_note}/shipmentRetrieve the shipment of a delivery note
PATCH/v1/companies/{company}/delivery-notes/{delivery_note}/shipmentUpdate the shipment of a delivery note
GET/v1/companies/{company}/delivery-notes/{delivery_note}Retrieve a delivery note
POST/v1/companies/{company}/delivery-notes/{delivery_note}/signSign a delivery note
PATCH/v1/companies/{company}/delivery-notes/{delivery_note}Update a delivery note
GET/v1/companies/{company}/eventsList all events
GET/v1/companies/{company}/events/{event}Retrieve an event
POST/v1/companies/{company}/goods-receipts/{goods_receipt}/cancelCancel a goods receipt
POST/v1/companies/{company}/goods-receiptsRegister a goods receipt
GET/v1/companies/{company}/goods-receipts/{goods_receipt}/linesList the lines of a goods receipt
GET/v1/companies/{company}/goods-receiptsList all goods receipts
POST/v1/companies/{company}/goods-receipts/{goods_receipt}/postPost a goods receipt
GET/v1/companies/{company}/goods-receipts/{goods_receipt}Retrieve a goods receipt
GET/v1/companies/{company}/integrations/eventsList integration events
POST/v1/companies/{company}/integrations/events/{event}/replayReplay a parked integration event
GET/v1/companies/{company}/integrations/events/{event}Retrieve an integration event
POST/v1/companies/{company}/invoices/{invoice}/annulAnnul an invoice
POST/v1/companies/{company}/invoices/{invoice}/assign-real-numberAssign a real invoice number
POST/v1/companies/{company}/invoices/{invoice}/correctiveGenerate corrective invoice
GET/v1/companies/{company}/invoices/{invoice}/correctivesList corrective invoices
POST/v1/companies/{company}/invoicesCreate an invoice
POST/v1/companies/{company}/invoices/{invoice}/duplicateDuplicate an invoice
POST/v1/companies/{company}/invoices/find-by-external-idFind an invoice by external ID
POST/v1/companies/{company}/invoices/find-by-numberFind an invoice by number
POST/v1/companies/{company}/invoices/{invoice}/issueIssue an invoice
GET/v1/companies/{company}/invoicesList all invoices
POST/v1/companies/{company}/invoices/{invoice}/mark-paidMark invoice as paid
POST/v1/companies/{company}/invoices/{invoice}/mark-sentMark an invoice as sent
PATCH/v1/companies/{company}/invoices/{invoice}/rescheduleReschedule an invoice
POST/v1/companies/{company}/invoices/{invoice}/scheduleSchedule an invoice
POST/v1/companies/{company}/invoices/{invoice}/sendSend invoice by email
GET/v1/companies/{company}/invoices/{invoice}Retrieve an invoice
POST/v1/companies/{company}/invoices/substitute-simplifiedSubstitute simplified invoices with full invoice
POST/v1/companies/{company}/invoices/{invoice}/unscheduleUnschedule an invoice
POST/v1/companies/{company}/invoices/{invoice}/unsendUnsend an invoice
PATCH/v1/companies/{company}/invoices/{invoice}Update an invoice
POST/v1/companies/{company}/invoices/{invoice}/voidVoid an invoice
POST/v1/companies/{company}/products/{product}/base-unit-replacementReplace a product by changing its base unit
POST/v1/companies/{company}/products/bulk-update-stockUpdate stock for many products
POST/v1/companies/{company}/productsCreate a product
POST/v1/companies/{company}/products/find-by-external-idFind a product by external ID
POST/v1/companies/{company}/products/find-by-skuFind a product by SKU
GET/v1/companies/{company}/productsList all products
GET/v1/companies/{company}/products/low-stock-reportList products below the stock threshold
GET/v1/companies/{company}/products/searchSearch products
GET/v1/companies/{company}/products/{product}Retrieve a product
GET/v1/companies/{company}/products/{product}/stock-movementsList stock movements of a product
POST/v1/companies/{company}/products/{product}/toggle-activeToggle product active state
PATCH/v1/companies/{company}/products/{product}Update a product
PATCH/v1/companies/{company}/products/{product}/stockUpdate product stock
POST/v1/companies/{company}/products/{product}/videoUpload a video to a product
POST/v1/companies/{company}/proformas/{proforma}/acceptAccept a proforma
POST/v1/companies/{company}/proformas/{proforma}/convertConvert proforma to invoice
POST/v1/companies/{company}/proformas/{proforma}/convert-to-sales-orderConvert proforma to sales order
POST/v1/companies/{company}/proformasCreate a proforma
POST/v1/companies/{company}/proformas/{proforma}/duplicateDuplicate a proforma
POST/v1/companies/{company}/proformas/find-by-external-idFind a proforma by external ID
GET/v1/companies/{company}/proformasList all proformas
POST/v1/companies/{company}/proformas/{proforma}/rejectReject a proforma
POST/v1/companies/{company}/proformas/{proforma}/sendSend proforma by email
GET/v1/companies/{company}/proformas/{proforma}Retrieve a proforma
GET/v1/companies/{company}/proformas/statusesList proforma statuses
PATCH/v1/companies/{company}/proformas/{proforma}Update a proforma
GET/v1/companies/{company}/purchase-invoicesList all expenses
POST/v1/companies/{company}/purchase-invoices/{purchase_invoice}/match/acceptAccept the deviation of a purchase invoice match
POST/v1/companies/{company}/purchase-invoices/{purchase_invoice}/match/linkLink a purchase invoice to a purchase order
POST/v1/companies/{company}/purchase-invoices/{purchase_invoice}/match/rejectReject a purchase invoice match
POST/v1/companies/{company}/purchase-orders/bulk-createBulk create purchase orders
POST/v1/companies/{company}/purchase-orders/{purchase_order}/cancelCancel a purchase order
POST/v1/companies/{company}/purchase-orders/{purchase_order}/closeClose a purchase order
POST/v1/companies/{company}/purchase-orders/{purchase_order}/confirmConfirm a purchase order
POST/v1/companies/{company}/purchase-ordersCreate a purchase order
POST/v1/companies/{company}/purchase-orders/find-by-supplier-referenceFind a purchase order by supplier reference
POST/v1/companies/{company}/purchase-orders/{purchase_order}/linesAdd a line to a purchase order
DEL/v1/companies/{company}/purchase-orders/{purchase_order}/lines/{line}Delete a line of a purchase order
GET/v1/companies/{company}/purchase-orders/{purchase_order}/linesList the lines of a purchase order
PATCH/v1/companies/{company}/purchase-orders/{purchase_order}/lines/{line}Update a line of a purchase order
GET/v1/companies/{company}/purchase-ordersList all purchase orders
POST/v1/companies/{company}/purchase-orders/{purchase_order}/mark-as-sentMark a purchase order as sent
POST/v1/companies/{company}/purchase-orders/{purchase_order}/receiptsRegister a goods receipt for a purchase order
GET/v1/companies/{company}/purchase-orders/{purchase_order}/receiptsList the goods receipts of a purchase order
GET/v1/companies/{company}/purchase-orders/{purchase_order}Retrieve a purchase order
PATCH/v1/companies/{company}/purchase-orders/{purchase_order}Update a purchase order
POST/v1/companies/{company}/purchase-reorder-suggestions/acceptAccept a reorder suggestion
POST/v1/companies/{company}/quotes/{quote}/acceptAccept a quote
POST/v1/companies/{company}/quotes/{quote}/convertConvert quote to invoice
POST/v1/companies/{company}/quotes/{quote}/convert-to-sales-orderConvert quote to sales order
POST/v1/companies/{company}/quotesCreate a quote
POST/v1/companies/{company}/quotes/{quote}/duplicateDuplicate a quote
POST/v1/companies/{company}/quotes/find-by-external-idFind a quote by external ID
GET/v1/companies/{company}/quotesList all quotes
POST/v1/companies/{company}/quotes/{quote}/rejectReject a quote
POST/v1/companies/{company}/quotes/{quote}/sendSend quote by email
GET/v1/companies/{company}/quotes/{quote}Retrieve a quote
GET/v1/companies/{company}/quotes/statusesList quote statuses
PATCH/v1/companies/{company}/quotes/{quote}Update a quote
POST/v1/companies/{company}/recurring-invoicesCreate a recurring invoice
PATCH/v1/companies/{company}/recurring-invoices/{recurring_invoice}Update a recurring invoice
POST/v1/companies/{company}/returns/{return}/approveApprove a return
POST/v1/companies/{company}/returnsRequest a return
GET/v1/companies/{company}/returnsList all returns
POST/v1/companies/{company}/returns/{return}/receiveReceive a return
POST/v1/companies/{company}/returns/{return}/refundRefund a return
POST/v1/companies/{company}/returns/{return}/rejectReject a return
GET/v1/companies/{company}/returns/{return}Retrieve a return
PATCH/v1/companies/{company}/returns/{return}Update a return
POST/v1/companies/{company}/sales-orders/bulk-deleteBulk delete sales orders
PATCH/v1/companies/{company}/sales-orders/{sales_order}/buyerUpdate the buyer of a sales order
POST/v1/companies/{company}/sales-orders/{sales_order}/cancelCancel a sales order
POST/v1/companies/{company}/sales-orders/{sales_order}/closeClose a sales order
POST/v1/companies/{company}/sales-orders/{sales_order}/confirmConfirm a sales order
POST/v1/companies/{company}/sales-orders/{sales_order}/convert-to-delivery-noteConvert a sales order to a delivery note
POST/v1/companies/{company}/sales-orders/{sales_order}/convert-to-invoiceConvert a sales order to an invoice
POST/v1/companies/{company}/sales-ordersCreate a sales order
DEL/v1/companies/{company}/sales-orders/{sales_order}Delete a sales order
POST/v1/companies/{company}/sales-orders/find-by-external-idFind a sales order by external id
POST/v1/companies/{company}/sales-orders/{sales_order}/linesAdd a line to a sales order
DEL/v1/companies/{company}/sales-orders/{sales_order}/lines/{line}Delete a line of a sales order
GET/v1/companies/{company}/sales-orders/{sales_order}/linesList the lines of a sales order
PATCH/v1/companies/{company}/sales-orders/{sales_order}/lines/{line}Update a line of a sales order
GET/v1/companies/{company}/sales-ordersList all sales orders
PATCH/v1/companies/{company}/sales-orders/{sales_order}/shipping-addressUpdate the shipping address of a sales order
GET/v1/companies/{company}/sales-orders/{sales_order}Retrieve a sales order
GET/v1/companies/{company}/sales-orders/statusesList sales order statuses
PATCH/v1/companies/{company}/sales-orders/{sales_order}Update a sales order
POST/v1/companies/{company}/stock-availability/batchRetrieve stock availability in batch
GET/v1/companies/{company}/stock-availabilityList stock availability
GET/v1/companies/{company}/stock-availability/{product}Retrieve the stock availability of an article
POST/v1/companies/{company}/stock-reservationsCreate a stock reservation
POST/v1/companies/{company}/stock-transfers/{stock_transfer}/cancelCancel a stock transfer
POST/v1/companies/{company}/stock-transfersCreate a stock transfer
POST/v1/companies/{company}/stock-transfers/{stock_transfer}/dispatchDispatch a stock transfer
POST/v1/companies/{company}/stock-transfers/{stock_transfer}/linesAdd a line to a stock transfer
GET/v1/companies/{company}/stock-transfers/{stock_transfer}/linesList the lines of a stock transfer
GET/v1/companies/{company}/stock-transfersList all stock transfers
POST/v1/companies/{company}/stock-transfers/{stock_transfer}/receiveReceive a stock transfer
GET/v1/companies/{company}/stock-transfers/{stock_transfer}Retrieve a stock transfer
PATCH/v1/companies/{company}/storefront/orders/{order}/buyer-identityUpdate the buyer fiscal identity of a storefront order
POST/v1/companies/{company}/storefront/orders/{order}/confirm-paymentConfirm the payment of a storefront order
POST/v1/companies/{company}/storesConnect a store
GET/v1/companies/{company}/storesList connected stores
GET/v1/companies/{company}/stores/{store}/product-linksList the product links of a store
GET/v1/companies/{company}/stores/{store}/product-links/{link}Retrieve a product link of a store
GET/v1/companies/{company}/stores/{store}Retrieve a connected store
PATCH/v1/companies/{company}/stores/{store}Update store settings
POST/v1/companies/{company}/warehousesCreate a warehouse
GET/v1/companies/{company}/webhook-endpoints/{webhook_endpoint}/deliveriesList webhook deliveries
GET/v1/companies/{company}/webhook-endpoints/{webhook_endpoint}/deliveries/{delivery}Retrieve webhook delivery

On this page

Need a hand?Contact support