ordersFinancialsCreate
Creates an invoice or sales receipt for an order, fulfillment, or shipment.
Business Rules
- Manual invoices may be created before shipment and may cover part of an order.
- All documents share the same billed quantities, including decomposed items.
- Reuse orderFinancialId when retrying the same creation request.
- Source items and the sales channel must belong to the order and company.
Error Scenarios
- Rejects missing source records, empty lines, and invalid source references.
- Rejects quantities that increase over-invoicing.
- Rejects manual receipts when the channel uses consolidated sales receipts.
Permissions Required
accounting:create_order_financialpermission.
ordersFinancialsCreate(
input: OrdersFinancialsCreateInput!
): OrderFinancialDocument!
Arguments
ordersFinancialsCreate.input ● OrdersFinancialsCreateInput! non-null input common
Parameters for OrdersFinancialsCreate
Type
OrderFinancialDocument object orders
An order's accounting document (invoice / sales receipt). If no document has
been persisted yet, a draft is derived from the order and id is null.