legacyCreditNoteCreate
Create a legacy credit note. The legacyCreditNoteCreate 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 LegacyCreditNoteAttributes type
mutation legacyCreditNoteCreate ($attributes: LegacyCreditNoteAttributes!) {
legacyCreditNoteCreate (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
}
}
ArgumentsLink to Arguments section
{
"attributes": {
"accountId": "456123",
"accountCode": "",
"currencyId": "456123",
"number": "",
"amount": "1.00",
"taxAmount": "1.00",
"subtotal": "1.00",
"baseCurrencyTotal": "1.00",
"issuedAt": "2022-06-01",
"poNumber": "",
"pdfBlobUuid": "456123",
"kind": "CreditNoteKind",
"disputeReasonId": "456123",
"creditedInvoiceId": "456123"
}
}
| Name | Type | Description |
|---|---|---|
| attributes | LegacyCreditNoteAttributes |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| creditNote | CreditNote | |
| errors | List (String) |