merit_create_purchase_invoice
Create a booked Merit Aktiva purchase invoice with immediate GL posting, bypassing the approval flow. Requires vendor details, invoice rows, tax amounts, and total (ex-VAT).
Instructions
Create a booked Merit Aktiva purchase invoice (POST /api/v2/sendpurchinvoice). Creates the document and GL entry immediately — bypasses the approval flow (use sendpurchorder for that; not in this package yet). vendor is existing Id or new record. invoiceRows, taxAmount[], and totalAmount (ex-VAT) are required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refNo | No | ||
| billNo | Yes | Vendor bill number, max 35 (required) | |
| vendor | Yes | Vendor object (id of existing, or name+countryCode+vatAccountable) | |
| docDate | Yes | Document date YYYY-MM-DD (required) | |
| dueDate | No | ||
| fComment | No | ||
| hComment | No | ||
| taxAmount | Yes | ||
| invoiceRows | Yes | ||
| totalAmount | Yes | Amount without VAT (required) | |
| currencyCode | No | ||
| roundingAmount | No | ||
| transactionDate | No |