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
buyer
Buyer company to which the billing document is addressed.
amount_excluding_tax
Amount excluding tax in minor monetary units. When lines are supplied, consistent totals may be derived from those lines.
amount_tax
Tax amount in minor monetary units.
amount_including_tax
Total amount including tax in minor monetary units.
currency
ISO 4217 currency used to interpret all amounts in the operation.
line_items
Detailed document lines. They carry product/service detail and can be used to derive totals when the contract allows it.
metadata
Free-form integration metadata associated with the resource according to the flat
common.metadata contract.billing_details
Billing information used for the document when the process must freeze it explicitly.
shipping_details
Shipping information associated with the document when relevant to the commercial context.
due_date
Expected business due date for the invoice.
Outputs 1
invoice
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
draftstatus 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.