Xentral icon

Xentral

Interact with Xentral ERP API

Actions196

Invoice → Create from Sales Order

AI-generated

Summary

Create an invoice from an existing sales order by specifying its sales order ID.

Inputs

  • Sales Order ID (required) — The ID of the sales order to create the invoice from.
  • Max Pages — Maximum number of API pages to fetch when returning all data; defaults to 1000 pages if returnAll is true (used to limit API calls).

Output shape

a single newly created invoice record object representing the invoice created from the specified sales order.

The operation requires the sales order ID as input and returns the newly created invoice data. The Max Pages field is relevant if retrieving multiple records in related operations but does not affect this single create operation. Errors from the API will be surfaced if the sales order ID is invalid or creation fails.

Links

Discussion