invoiceItemUpdate
Update an invoice item. The invoiceItemUpdate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: billing:write
For a complete list of input attributes see the InvoiceItemAttributes type
mutation invoiceItemUpdate ($id: ID!, $attributes: InvoiceItemAttributes!) {
invoiceItemUpdate (id: $id, attributes: $attributes) {
errors
invoiceItem {
amount
chargeType
comment
couponId
currencyId
discount
endDate
id
invoiceId
isCoupon
isCredit
lineText
position
price
priceDecimals
prorationRate
quantity
startDate
subtotal
taxAmount
taxCode
taxRate
vatCode
}
}
}
Arguments
{
"id": "456123",
"attributes": {
"lineText": "",
"comment": ""
}
}
| Name | Type | Description |
|---|---|---|
| id | ID | |
| attributes | InvoiceItemAttributes |
Response
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| invoiceItem | InvoiceItem |