process_sales_invoice
Create and book sales invoices in Yuki with header, contact, line items, and optional email delivery. Specify reference, dates, and customer details to get a document ID.
Instructions
Create and book a new sales invoice in Yuki. Accepts invoice header, contact, and line items. Optionally sends the invoice to the customer by email. Returns the Yuki response including the assigned document ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Invoice date in YYYY-MM-DD format | |
| lines | Yes | Invoice line items | |
| contact | Yes | Customer contact details | |
| dueDate | Yes | Payment due date in YYYY-MM-DD format | |
| process | No | Immediately process/finalise the invoice in Yuki | |
| remarks | No | Internal remarks (not visible on invoice) | |
| subject | Yes | Invoice title shown to the customer | |
| currency | No | ISO 4217 currency code | EUR |
| reference | Yes | Invoice number / reference (e.g. '2024-0042') | |
| paymentMethod | No | ElectronicTransfer | |
| emailToCustomer | No | Send the invoice to the customer's email address | |
| administrationId | No | Administration ID (GUID). Defaults to YUKI_DOMAIN_ID env var. |