post_vendor_invoice
Validates and posts vendor invoices, with preview-only checks by default and idempotent confirmed creation to prevent duplicate ERP documents.
Instructions
Post a vendor invoice. Without confirm it only runs the checks and returns a preview.
Posting is idempotent: repeating a confirmed call with the same vendor and reference returns the document that was already created.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vendor_tax_id": "<vendor_tax_id>",
"reference": "<reference>",
"document_date": "<document_date>",
"gross_amount": "<gross_amount>",
"tax_amount": "<tax_amount>",
"currency": "<currency>"
},
"name": "post_vendor_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| currency | Yes | ||
| reference | Yes | Invoice number as printed | |
| tax_amount | Yes | ||
| gross_amount | Yes | ||
| document_date | Yes | ||
| vendor_tax_id | Yes | Tax number printed on the invoice | |
| purchase_order | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checks | Yes | ||
| posted | Yes | ||
| next_step | Yes | ||
| document_number | No |