invoiceCreate Mutation
Creates a new invoice.
Input Argument
invoiceCreate accepts a single input
argument, an input type,
which contains the values it uses.
The fields inside input
are:
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.
[ID!]
)
The configuration items linked to this invoice.
String
)
A unique identifier for the client performing the mutation.
ID
)
The contract linked to this invoice.
Currency
)
Currency of the amount
value of the invoice.
ProductDepreciationMethod
)
Used to specify whether or not configuration items that are linked to this invoice are depreciated and if so, which depreciation method is to be applied. 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.
ID
)
The first line support agreement linked to this invoice.
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
)
Number of the purchase order that was used to order the (lease of the) configuration item from the supplier.
ID
)
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 configuration item (CI) using the reducing balance (or diminishing value) method. When creating a new CI and a value is not specified for this field, it is set to the rate of the CI's product.
String
)
Any additional information about the invoice that might prove useful.
[AttachmentInput!]
)
The attachments used in the remarks
field.
MonetaryAmount
)
The value of this configuration item 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 attributed to this configuration item.
ID
)
The service that covers this invoice. Can only be set when the invoice is linked to a contract or configuration items.
ID
)
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.
ID!
)
Identifier of the organization from which the invoice was received.
MonetaryAmount!
)
The amount that the supplier has charged per unit that was acquired.
Int
)
The number of years within which the configuration item is to be depreciated. When creating a new CI and a value is not specified for this field, it is set to the useful life of the CI's product.
ID
)
The workflow linked to this invoice.
Return Fields
String
)
A unique identifier for the client performing the mutation.
[ValidationError!]
)
Errors encountered during the mutation.
Invoice
)
Record after mutation.