> ## Documentation Index
> Fetch the complete documentation index at: https://developers.xfaster.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Orders into Comax

> Optional, off by default.

* When the store accepts an order, XFaster writes it into Comax with `WriteCustomersOrderByArray`.
* **Reference** is the XFaster order number, with Comax's duplicate check on, so an order is never written twice.
* **Lines** go by barcode (or the mapped Comax code), with quantity and unit price including VAT. `TotalSum` is the goods total; the full order total is in the remarks.
* The Comax document number is saved on the XFaster side. Failures are retried a few times and shown to XFaster.

<Warning>
  This is a customer order, not an invoice. If the store's PayPlus already issues the customer's invoice, the store must not turn it into a Comax invoice, or the order gets two invoices. See [Reports & invoices](/reports/invoices).
</Warning>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.