parse_invoice
Extracts customs-ready line items from supplier invoices or packing lists, checks totals and weights, and suggests TN VED search queries for duty calculation.
Instructions
Parse a supplier's commercial invoice or packing list into customs-ready line items.
Extracts invoice number, date, parties, currency, Incoterms and country of origin, and for each line: description, model, material, supplier HS code, quantity, unit, price, amount, net and gross weight. Checks arithmetic (qty x price, sum vs total), explains what to add to the invoice value for customs value under the given Incoterms, and suggests a TN VED search query per line (HS code first 6 digits or Russian keywords). Feed the lines to tnved_search and calc_import_payments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_url | No | Public link to the invoice file: .xlsx/.csv are parsed directly; PDF/scans/DOCX go through DocParse when the server has it configured | |
| invoice_text | No | Invoice or packing list as Markdown or plain text, e.g. the output of DocParse. Tables with English, Chinese (品名, 数量, 单价, 金额, 净重) or Russian headers |