There are 2 types of invoices:

- Purchase Invoices
- Sales Invoices

These different invoice types are exposed as a separate collection in API v2.

Each type of invoice consists of 2 subtypes: INVOICE or CREDIT_NOTE.

For sales invoices, it's often preferred to include the 'adjustedLineItems' instead of the 'lineItems'. The adjusted lineItems are already adjusted for financial discount, credit limit and line discount.

In this example, paging query parameters are not included.

Fetching sales invoices for first quarter of 2021

https://app.robaws.be/api/v2/sales-invoices?type=INVOICE&fromDate=2021-01-01&toDate=2021-01-03&include=adjustedLineItems,adjustedLineItems.generalLedgerAccount,adjustedLineItems.vatTariff

Fetching sales credit notes for first quarter of 2021

https://app.robaws.be/api/v2/sales-invoices?type=CREDIT_NOTE&fromDate=2021-01-01&toDate=2021-01-03&include=adjustedLineItems,adjustedLineItems.generalLedgerAccount,adjustedLineItems.vatTariff

Fetching purchase invoices for first quarter of 2021

https://app.robaws.be/api/v2/purchase-invoices?type=INVOICE&fromDate=2021-01-01&toDate=2021-01-03&include=lineItems,lineItems.generalLedgerAccount,lineItems.vatTariff

Fetching purchase credit notes for first quarter of 2021

https://app.robaws.be/api/v2/purchase-invoices?type=CREDIT_NOTE&fromDate=2021-01-01&toDate=2021-01-03&include=lineItems,lineItems.generalLedgerAccount,lineItems.vatTariff
Was dit artikel behulpzaam ?
annuleren
Dank je wel !