invoiceUpdateCredits
Edit credits on an invoice. The invoiceUpdateCredits 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 InvoiceUpdateCreditsAttributes type
mutation invoiceUpdateCredits ($id: ID!, $attributes: InvoiceUpdateCreditsAttributes!) {
invoiceUpdateCredits (id: $id, attributes: $attributes) {
errors
invoiceItems
}
}
ArgumentsLink to Arguments section
{
"id": "456123",
"attributes": {
"invoiceItems": [
{
"id": "456123",
"amount": "1.00"
}
]
}
}
| Name | Type | Description |
|---|---|---|
| id | ID | |
| attributes | InvoiceUpdateCreditsAttributes |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| invoiceItems | List (InvoiceItem) |