invoiceAddCredit
Add a credit to an invoice. The invoiceAddCredit mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: billing:write
mutation invoiceAddCredit ($id: ID!, $amount: Float) {
invoiceAddCredit (id: $id, amount: $amount) {
invoiceItem {
amount
chargeType
comment
couponId
creditGrantId
currencyId
discount
drawnFromItemId
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 |
|---|---|---|
| invoiceItem | InvoiceItem |