{
"fields": [
{ "name": "vendor_name", "type": "string", "description": "Name of the vendor or supplier" },
{ "name": "invoice_number", "type": "string", "description": "Invoice or receipt number" },
{ "name": "invoice_date", "type": "date", "description": "Date the invoice was issued" },
{ "name": "total_amount", "type": "number", "description": "Total amount due" },
{ "name": "currency", "type": "string", "description": "Currency code (e.g., USD, EUR)" },
{
"name": "line_items",
"type": "array",
"description": "Individual line items on the invoice",
"items": [
{ "name": "description", "type": "string" },
{ "name": "quantity", "type": "number" },
{ "name": "unit_price", "type": "number" },
{ "name": "amount", "type": "number" }
]
}
]
}