GraphQL API
We have enhanced the invoices query and the Invoice type in our GraphQL API, you can now:
- query for the new creditNoteAllocations field which will return a list of allocations made to the invoice from a credit note - the objects returned have the following fields:
- id of the allocation
- amount of the allocation
- creditNote - a relationship to the Credit Note associated with this allocation
- remove a credit note allocation with the new removeCreditNoteAllocation mutation inside the invoices mutations by passing the id of the allocation you wish to remove
You can also now return the following fields giving more granularity on the total amounts invoiced:
- subTotalAmount is the total amount of the invoice before any tax or discount
- discountAmount is the total amount discount applied to the invoice
- taxSummary is a list of tax types and their amount applied to the invoice (as an invoice can consist of line items with different tax types)
Comments
0 comments
Article is closed for comments.