creditNoteUpdate
Update a credit note. The creditNoteUpdate 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 CreditNoteAttributes type
mutation creditNoteUpdate ($id: ID!, $attributes: CreditNoteAttributes!) {
creditNoteUpdate (id: $id, attributes: $attributes) {
creditNote {
accountId
amount
amountApplied
amountUnapplied
createdAt
creditedInvoiceId
currencyId
description
disputeId
disputeReasonId
entityId
id
isCredit
isLegacy
issuedAt
number
subtotal
taxAmount
updatedAt
uuid
warrenId
}
errors
}
}
Arguments
{
"id": "456123",
"attributes": {
"disputeReasonId": "456123",
"creditNoteItems": [
{
"id": "456123",
"amount": "1.00"
}
],
"kind": "CreditNoteKind"
}
}
| Name | Type | Description |
|---|---|---|
| id | ID | |
| attributes | CreditNoteAttributes |
Response
| Name | Type | Description |
|---|---|---|
| creditNote | CreditNote | |
| errors | List (String) |