Create or modify an invoice via API
This API allows you to create new invoices and modify existing ones. Whether a new object is create or modified is dependant on the orderNumber value:
- If the orderNumber is left blank, a new invoice will be created and an orderNumber will automatically be generated.
- If the orderNumber is present, the existing invoice with that orderNumber will be retrieved. If there is no match, a new invoice will be created with the orderNumber provided.
Sending multiple invoice items
You can send multiple invoice line items by incrementing the count value at the end of each field. Example, send fields "itemSKU1" and "itemSKU2" would create two line items.
Invoice amount due
The invoice amount due field is computed value. The amount due is the calculated amount minus transactions successfully applied to the invoice.