Create document
icount_create_documentCreate iCount documents such as invoices, orders, and receipts by providing line items, client information, and payment breakdowns for tax-compliant records.
Instructions
Create a document (invoice, receipt, order, offer, etc.) in iCount. Prefer non-tax types (order/offer) for testing since iCount has no hard delete, only cancel. Real tax documents (receipt/invrec) require a payment breakdown or iCount will reject them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Document language (default he) | |
| items | Yes | Line items for the document | |
| doctype | Yes | iCount document type | |
| dueDate | No | Due date | |
| payment | No | Required for real tax documents (receipt/invrec) — iCount rejects those doctypes without an actual payment breakdown. Not needed for order/offer/delivery/deal. | |
| clientId | No | Existing iCount client id — reuses that client instead of creating/matching by name | |
| comments | No | Free-text note printed on the document | |
| currency | No | Currency code, e.g. ILS, USD (default ILS) | |
| issueDate | No | Issue date, defaults to today | |
| sendEmail | No | Email the document to the client after creation | |
| clientCity | No | ||
| clientName | No | Client name (used when clientId is not given) | |
| clientEmail | No | ||
| clientPhone | No | ||
| clientVatId | No | Client VAT/ID number (ח.פ / ע.מ) | |
| clientAddress | No |