creditNoteApplyToInvoices
Graphql fields and variables for the creditNoteApplyToInvoices mutation
Apply a credit note to invoices
Scope required: billing:write
mutation creditNoteApplyToInvoices ($creditNoteId: ID!, $invoiceIds: !) {
creditNoteApplyToInvoices (creditNoteId: $creditNoteId, invoiceIds: $invoiceIds) {
creditNote {
accountId
amount
amountApplied
amountUnapplied
createdAt
creditedInvoiceId
currencyId
description
disputeReasonId
entityId
id
isCredit
isLegacy
issuedAt
number
subtotal
taxAmount
updatedAt
uuid
warrenId
}
errors
paidInvoices
paymentApplications
removedInvoices
}
}
Arguments
{
"creditNoteId": "456123",
"invoiceIds": [
"456123"
]
}
Name
Type
Description
creditNoteId
ID
invoiceIds
List (ID)
Response
Name
Type
Description
errors
List (String)
Last updated
Was this helpful?