invoiceRefund
Refund an invoice. The invoiceRefund mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: billing:write
mutation invoiceRefund ($invoiceId: ID!, $disputeReasonId: ID) {
invoiceRefund (invoiceId: $invoiceId, disputeReasonId: $disputeReasonId) {
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
{
"invoiceId": "456123",
"disputeReasonId": "456123"
}
| Name | Type | Description |
|---|---|---|
| invoiceId | ID | |
| disputeReasonId | ID |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| creditNote | CreditNote | |
| errors | List (String) |