Introduction
This development was done to allow an external system or person to create an invoice like a person would if they were logged into printIQ
Most of the functionality that is available on the create invoice page is available through the new endpoint. The idea is that you can replicate the same invoice through both methods.
This is only to create an invoice not to update an existing invoice.
The customers’ requirements were for only supplier invoices, but we have expanded it to sales as well
This endpoint is only to create an invoice and not to update an existing invoice
All normal invoicing restriction you would find on the create invoice page should be the same here
You can only override an actual amount when invoice a specific IPO line, job operation or Sales order item. The reason for this is that when you invoice a job for example it could create more than one invoice line, e.g., Invoice by operation, and we would not know how to interpret how that actual override should be used.
A login token is required to call the endpoint which has an associated user. A supplier user is only able to invoice item relating to that supplier
You can invoice more than one item at a time
Cannot mix sales and supplier items
You cannot choose the line number for each item, relating to when an item produces more than one item.
You can create manual lines, just pass in no specific item. You are required to pass in one of Description/Title/Reference, a quantity more than zero and an actual. If you are only adding manual lines then you also need to pass a customer code.