HelperStable

Create invoice draft

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

Financial context
Create invoice draft
Finance
Typed result

Overview

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

Example

Prepare a customer invoice from an order before official issuance.

Parameters 10

buyerRequiredCompany
Buyer company to which the billing document is addressed.
amount_excluding_taxOptionalamount
Amount excluding tax in minor monetary units. When lines are supplied, consistent totals may be derived from those lines.
amount_taxOptionalamount
Tax amount in minor monetary units.
amount_including_taxOptionalamount
Total amount including tax in minor monetary units.
currencyRequiredcurrency code
ISO 4217 currency used to interpret all amounts in the operation.
line_itemsOptionalLine item[]
Detailed document lines. They carry product/service detail and can be used to derive totals when the contract allows it.
metadataOptionalmetadata
Free-form integration metadata associated with the resource according to the flat common.metadata contract.
billing_detailsOptionaltransaction details
Billing information used for the document when the process must freeze it explicitly.
shipping_detailsOptionaltransaction details
Shipping information associated with the document when relevant to the commercial context.
due_dateOptionaldate
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.