NOTE: some information like GLN, organisation number, VAT number or contact (phone & email) need another API call (customer) in some systems. Use include parameter to display customer entity (/salesinvoices/:id?include=customer).
Knowing if an invoice paid or not can be tricky since not all systems provide a clear cut status which denotes payment. The easiest will be to locate these 2 fields:
1. totalBalanceAmount (if totalBalanceAmount is 0 then it is FULLY PAID)
2. taxInclusiveAmount (if totalBalanceAmount < taxInclusiveAmount and taxInclusiveAmount not 0, then it is HALF PAID)
3. IF taxInclusiveAmount = totalBalanceAmount then there is no one single payment yet (NOT PAID)
an identifier (invoice number) for the document, assigned by the sender.
INV001
buyerReference
reference for the buyer (usually buyer's purchase invoice number)
PO001
creditInvoice.creditInvoiceIndicator
marker if the invoice is credit invoice / credit note
true/false
creditInvoice.reference
identifier (invoice number) of the credited invoice, if it is a credit invoice
INV001
financialDimensions
financial dimension to assign financial granularity to the financial reports (usually cost center, projects, etc.)
financialDimensions.type
type of financial dimensions:
- costCode -> cost center
- costBearer -> cost bearer
- project -> project
CC001
orderReference
reference of the order number that is invoiced from:
- buyerOrderId -> order number of the buyer (generated by customer's system)
- sellerOrderId -> order number of the seller (generated by own system)