process_purchase_invoice
Book an incoming purchase invoice in Yuki with totals, supplier details, line items, and optional PDF attachment. Returns assigned document ID.
Instructions
Book an incoming purchase invoice in Yuki. Accepts invoice totals, supplier contact, and line items. Optionally attach the original PDF as a base64 string. 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 | Supplier contact details | |
| dueDate | No | Payment due date in YYYY-MM-DD format | |
| process | No | Immediately process/finalise in Yuki | |
| remarks | No | ||
| currency | No | EUR | |
| reference | No | Supplier's invoice number | |
| invoiceAmount | Yes | Total invoice amount including VAT | |
| paymentMethod | No | Transfer | |
| documentBase64 | No | PDF content encoded as base64 string | |
| administrationId | No | Administration ID (GUID). Defaults to YUKI_DOMAIN_ID env var. | |
| documentFileName | No | PDF filename (e.g. 'invoice-2024-0042.pdf') | |
| invoiceVatAmount | Yes | Total VAT amount on the invoice |