InvoiceSalesOrders
Invoices one or more sales orders, creating sales invoices from them.
Input
| Name | Type | Description |
| CreateMode | Integer | Invoice creation mode. 0 = Per customer, 1 = Per sales order. |
| InvoiceMode | Integer | Invoice quantity processing mode. 0 = By quantity delivered, 1 = By quantity ordered. |
| JournalCode | String | Code of the journal in which the invoices will be booked. |
| SalesOrderIDs | String | Collection of sales order IDs to be invoiced. |
| DeliveryNumber | Integer | Stock entries entry number. |
| EndDate | Datetime | Stock entries entry end date. |
| Mode | Integer | Processing mode. 0 = Sync (default), 1 = Async. Note: as of October 2026 only Async mode will be supported. |
| StartDate | Datetime | Stock entries entry start date. |
| UserInvoiceDate | Datetime | Overrides the invoice date during creation of sales invoice from sales orders. Works only for integration with Intuit QuickBooks. |
Result Set Columns
| Name | Type | Description |
| ID | String | Primary key. |
| CreateMode | Integer | Invoice creation mode. 0 = Per customer, 1 = Per sales order. |
| DeliveryNumber | Integer | Stock entries entry number. |
| EndDate | Datetime | Stock entries entry end date. |
| Errors | String | Errors in the process. Result for Mode = 0 (Sync). |
| InvoiceMode | Integer | Invoice quantity processing mode. 0 = By quantity delivered, 1 = By quantity ordered. |
| JournalCode | String | Code of the journal in which the invoices will be booked. |
| Mode | Integer | Processing mode. 0 = Sync (default), 1 = Async. |
| NumberOfCreatedInvoices | Integer | Number of invoices successfully created. Result for Mode = 0 (Sync). |
| NumberOfFailedInvoices | Integer | Number of invoices failed to create. Result for Mode = 0 (Sync). |
| ProcessID | String | Used in the InvoiceSalesOrdersResult endpoint to retrieve results when Mode = 1 (Async). |
| SalesOrderIDs | String | Collection of sales order IDs that were invoiced. |
| StartDate | Datetime | Stock entries entry start date. |
| UserInvoiceDate | Datetime | Overrides the invoice date during creation of sales invoice from sales orders. |