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.
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 |
Fields
The fields in this section list which values can be retrieved when querying Invoice records.
Account
)
The account this record belongs to.
ISO8601Date
)
The end date of the period over which the invoice is to be amortized.
ISO8601Date
)
The start date of the period over which the invoice is to be amortized.
Boolean
)
Whether the invoice amount is to be amortized over time.
MonetaryAmount
)
The product of the unitPrice
field value and the quantity
field value.
Contract
)
The contract linked to this invoice.
ISO8601Timestamp
)
The date and time at which the record was created.
Currency
)
Currency of the amount
value of the invoice.
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
ISO8601Date
)
The date on which to start depreciating the asset.
String
)
Short description of what was acquired.
String
)
The unique identifier by which the invoice is known in the financial system.
FirstLineSupportAgreement
)
The first line support agreement linked to this invoice.
ID!
)
Unique identifier of the record.
ISO8601Date
)
The date on which the invoice was sent out by the supplier.
String
)
The invoice number that the supplier specified on the invoice.
String
)
The number of the purchase order that was sent to supplier.
Project
)
The project linked to this invoice.
Decimal
)
The number of units that were acquired.
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.
String
)
Any additional information about the contract that might prove useful.
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.
Currency
)
The currency of the salvage value of this invoice.
Service
)
The service that covers this invoice.
ServiceLevelAgreement
)
The service level agreement linked to this invoice.
String
)
An identifier for the client application submitting the resource or the name of an external system.
String
)
The unique identifier of the resource in an external system.
Organization
)
The organization from which the invoice was received.
MonetaryAmount
)
The amount that the supplier has charged per unit that was acquired.
ISO8601Timestamp
)
The date and time of the last update of the record. If the record has no updates it contains the createdAt
value.
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
)
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.
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. |
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.