HelperStable

Create invoice draft

Creates a persisted Ormuz invoice in `draft` status from a buyer, amounts, or business lines.

Contexte financier
Create invoice draft
Finance
Typed result

Vue d’ensemble

Creates a persisted Ormuz invoice in draft status from a buyer, amounts, or business lines.

Exemple

Prepare a customer invoice from an order before official issuance.

Parameters 10

buyerRequisCompany
Buyer company to which the billing document is addressed.
amount_excluding_taxOptionnelamount
Amount excluding tax in minor monetary units. When lines are supplied, consistent totals may be derived from those lines.
amount_taxOptionnelamount
Tax amount in minor monetary units.
amount_including_taxOptionnelamount
Total amount including tax in minor monetary units.
currencyRequiscurrency code
ISO 4217 currency used to interpret all amounts in the operation.
line_itemsOptionnelLine item[]
Detailed document lines. They carry product/service detail and can be used to derive totals when the contract allows it.
metadataOptionnelmetadata
Free-form integration metadata associated with the resource according to the flat common.metadata contract.
billing_detailsOptionneltransaction details
Billing information used for the document when the process must freeze it explicitly.
shipping_detailsOptionneltransaction details
Shipping information associated with the document when relevant to the commercial context.
due_dateOptionneldate
Expected business due date for the invoice.

Outputs 1

invoiceInvoice
Canonical invoice created in draft status, ready to continue its document lifecycle.

Behavior

The node creates a real invoice resource in draft status. When lines are supplied, they form the document basis and totals must remain consistent with them.

Key point Always distinguish the canonical object created by Ormuz from any external effect. A payment or refund intent in draft status does not prove that a provider executed the movement of funds.

Limits and responsibilities

  • An invoice in draft status is already a persisted resource with an ID; it is not a non-persisted process draft.
  • Creating the invoice does not issue or send it and creates no payment.