Invoice Object

Root Connection

All Invoice objects of an account are accessible by a query on the root connection invoices. Such a query will return a InvoiceConnection!, which contains the Invoice objects in its nodes field.

invoices (InvoiceConnection!)

Root connection for retrieving Invoice records.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

filter InvoiceFilter

Filter to determine which Invoice records are returned.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

order [InvoiceOrder!]

Order of the Invoice records returned.

view InvoiceView

View name.

The default value is current_account.

Fields

The fields in this section list which values can be retrieved when querying Invoice records.

account (Account)

The account this record belongs to.

amortizationEnd (ISO8601Date)

The end date of the period over which the invoice is to be amortized.

amortizationStart (ISO8601Date)

The start date of the period over which the invoice is to be amortized.

amortize (Boolean)

Whether the invoice amount is to be amortized over time.

amount (MonetaryAmount)

The product of the unitPrice field value and the quantity field value.

contract (Contract)

The contract linked to this invoice.

createdAt (ISO8601Timestamp)

The date and time at which the record was created.

currency (Currency)

Currency of the amount value of the invoice.

depreciationMethod (ProductDepreciationMethod)

Whether or not the invoice should be depreciated and if so, which depreciation method is to be applied. When creating a new invoice and a value is not specified for this field, and the invoice is related to a configuration item, the value is set to the depreciation method of the product of the configuration item. Valid values are:

  • not_depreciated: Not Depreciated
  • double_declining_balance: Double Declining Balance
  • reducing_balance: Reducing Balance (or Diminishing Value)
  • straight_line: Straight Line (or Prime Cost)
  • sum_of_the_years_digits: Sum of the Year's Digits
depreciationStart (ISO8601Date)

The date on which to start depreciating the asset.

description (String)

Short description of what was acquired.

financialID (String)

The unique identifier by which the invoice is known in the financial system.

flsa (FirstLineSupportAgreement)

The first line support agreement linked to this invoice.

id (ID!)

Unique identifier of the record.

invoiceDate (ISO8601Date)

The date on which the invoice was sent out by the supplier.

invoiceNr (String)

The invoice number that the supplier specified on the invoice.

poNr (String)

The number of the purchase order that was sent to supplier.

project (Project)

The project linked to this invoice.

quantity (Decimal)

The number of units that were acquired.

rate (Int)

Used to specify the yearly rate that should be applied to calculate the depreciation of the invoice using the reducing balance (or diminishing value) method. When creating a new invoice and a value is not specified for this field, and the invoice is related to a CI, the value is set to the rate of the CI's product.

remarks (String)

Any additional information about the contract that might prove useful.

salvageValue (MonetaryAmount)

The value of this invoice at the end of its useful life (i.e. at the end of its depreciation period). When a value is not specified for this field, it is set to zero.

salvageValueCurrency (Currency)

The currency of the salvage value of this invoice.

service (Service)

The service that covers this invoice.

sla (ServiceLevelAgreement)

The service level agreement linked to this invoice.

source (String)

An identifier for the client application submitting the resource or the name of an external system.

sourceID (String)

The unique identifier of the resource in an external system.

supplier (Organization)

The organization from which the invoice was received.

unitPrice (MonetaryAmount)

The amount that the supplier has charged per unit that was acquired.

updatedAt (ISO8601Timestamp)

The date and time of the last update of the record. If the record has no updates it contains the createdAt value.

usefulLife (Int)

The number of years within which the invoice is to be depreciated. When creating a new invoice and a value is not specified for this field, and the invoice is related to a CI, the value is set to the useful life of the CI's product.

workflow (Workflow)

The workflow linked to this invoice.

Connections

The connection fields in this section allow (paged) access to objects related to a specific Invoice record. The actual objects will be in the nodes field of the connection.

configurationItems (ConfigurationItemConnection)

The configuration items linked to this invoice.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

remarksAttachments (AttachmentConnection)

Files and inline images linked to the Remarks field.

Argument Type Description
after String

Returns the elements in the list that come after the specified cursor.

before String

Returns the elements in the list that come before the specified cursor.

first Int

Returns the first n elements from the list.

last Int

Returns the last n elements from the list.

Implements

Invoice implements the following interfaces. This means that fragments defined on these interfaces may be used in queries returning a Invoice.