ERPNext: Create sales invoice
erpnext_create_sales_invoiceERPNext: Saves a draft sales invoice with item lines, dates and a tax template. Saves a Sales Invoice as a draft and returns its ID and totals. A draft has no ledger effect and nothing is sent to the customer, and you can delete it in ERPNext, so this call does not ask for confirmation. The customer supplies the address, currency and price list defaults. Net total is the sum of the line amounts. To make the invoice final, call submit_sales_invoice. Needs the user's Cotlet API key with access to this app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Lines as objects: item_code (from list_items), qty and rate. | |
| company | No | Company name. Default: the default company of the signed-in user. | |
| customer | Yes | Customer ID from list_customers. | |
| due_date | No | Payment Due Date, YYYY-MM-DD. Decides when the invoice becomes Overdue. | |
| posting_date | No | YYYY-MM-DD. Default: today. | |
| taxes_template | No | Name of a Sales Taxes and Charges template from your site. |