Skip to main content

Invoice

invoice

type Invoice implements Node {
id: ID!
total: String!
paid: Boolean!
notes: String
data: GQLTJson!
createdAt: GQLTDate!
updatedAt: GQLTDate!
voucherId: ID
accountId: ID
userId: ID
orderId: ID
transactionId: ID
invoiceItems(
after: String
first: Int = 0
before: String
last: Int = 0
orderBy: [InvoiceItemOrderBy] = []
where: GQLTQueryInvoiceItemWhere
include: [GQLTInvoiceItemIncludeObject] = []
): InvoiceItemHasManyInvoiceItemsList
user: User
transaction: Transaction
voucher: Voucher
account: Account
order: Order
}

Fields#

id (ID!)#

The ID of an object

total (String!)#

define the total amount of the invoice

paid (Boolean!)#

define if the invoice is paid or not

notes (String)#

define an additional notes for invoice

data (GQLTJson!)#

data of invoice used to send to email

createdAt (GQLTDate!)#

updatedAt (GQLTDate!)#

voucherId (ID)#

The ID of an object

accountId (ID)#

The ID of an object

userId (ID)#

The ID of an object

orderId (ID)#

The ID of an object

transactionId (ID)#

The ID of an object

invoiceItems (InvoiceItemHasManyInvoiceItemsList)#

If provided it will return results after the provided cursor

If provided the results will be the first ${amount} of records from provided cursor, if a cursor is not provided the results will be the first ${amount} of records.

If provided it will return results before the provided cursor

If provided the results will be the first ${amount} of records from provided cursor, if a cursor is not provided the results will be the last ${amount} of records.

If provided this will sort the results by the supplied column and direction

user (User)#

Show the user who owns the invoices

transaction (Transaction)#

Show the transaction associated when invoice was created

voucher (Voucher)#

Show the voucher used and associated in the invoice

account (Account)#

order (Order)#

Show the renewal associated in the invoice

Interfaces#

Node#

An object with an ID