createInvoice

Creates an 'Invoice'

Input fields

input (CreateInvoiceInput)

Return fields

id (ID!)

ID of the object

createdOn (DateTime)

Date and time of creation.

updatedOn (DateTime)

Date and time of last update.

ref (String!)

External reference to the Invoice. Must be unique.

attributes ([Attribute])

A list of attributes associated with the Invoice. This can be used to extend the existing data structure with additional data.

workflow (WorkflowLink)

The reference to the workflow associated.

type (String)

Type of the Invoice, typically used by the Orchestration Engine to determine the workflow that should be applied.

status (String)

Status of the Invoice.

billingAccount (BillingAccount)

The BillingAccount associated with the Invoice.

order (OrderLink)

Reference to the Order associated with this Invoice.

fulfilment (FulfilmentLink)

Reference to the Fulfilment associated with this Invoice.

creditMemos ([CreditMemo])

A list of associated credit memos that have been used to adjust this invoice in favour of the billing account

issueDate (DateTime)

The date on which this invoice was formally issued.

dueDate (DateTime)

The date on which this invoice is due for completion.

currency (CurrencyLink)

Reference to the currency type. Generally, the standard ISO-4217 is used.

defaultTaxType (TaxType)

The default Tax Type for this invoice. Individual invoice items can override.

subTotalAmount (AmountType)

The total amount of this invoice excluding tax.

totalTax (AmountType)

The total amount of tax for this invoice

totalAmount (AmountType)

The total amount of this invoice including tax

totalBalance (AmountType)

The total amount of this invoice yet to be paid. (This caters for multi-part payments and payment milestones)

workflowRef (String)
Deprecation notice

No longer supported

DEPRECATED, please use the field workflow instead - The reference of the workflow.

workflowVersion (Int)
Deprecation notice

No longer supported

DEPRECATED, please use the field workflow instead - The version of the workflow.