invoiceUpdateCredit
Edit a credit on an invoice. The invoiceUpdateCredit mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: billing:write
mutation invoiceUpdateCredit ($id: ID!, $amount: Float!) {
invoiceUpdateCredit (id: $id, amount: $amount) {
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
}
}
}
ArgumentsLink to Arguments section
{
"id": "456123",
"amount": "1.00"
}
| Name | Type | Description |
|---|---|---|
| id | ID | |
| amount | Float |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| invoiceItem | InvoiceItem |