| {"systemInstruction": {"parts": [{"text": "You are an invoice extractor. Output ONLY valid JSON."}]}, "contents": [{"role": "user", "parts": [{"fileData": {"mimeType": "image/jpeg", "fileUri": "gs://tune-test-pur/test-train-3/1008.pdf"}}]}, {"role": "model", "parts": [{"text": "{\"document_type\": \"INVOICE\", \"supplier_name\": \"Shire Garden Machines Ltd\", \"supplier_vat_number\": \"204211082\", \"customer_name\": \"GREEN FARM LIMITED\", \"customer_vat_number\": null, \"tax_inclusive_total_amount\": 140.25, \"tax_exclusive_total_amount\": 116.87, \"total_tax_amount\": 23.38, \"total_amount\": 140.25, \"paid_or_unknown\": \"unknown\", \"invoice_date\": \"2024-05-14\", \"invoice_due_date\": \"2024-06-14\", \"currency\": \"GBP\", \"invoice_or_receipt_number_or_transaction_id\": \"149647\", \"expense_category\": \"Maintenance and Repairs\", \"description_of_goods_or_services\": \"2 STIHL Chain Loop 84 Link 3/8 .063 36110000084 1 STIHL Chain Loop 114 x 3/8 x 1.6 36110000114\", \"is_marketplace_document\": false, \"primary_expense_category\": \"Maintenance and Repairs\", \"payment_info_card_last4\": null, \"is_cis_applicable\": false, \"tax_information\": {\"tax_lines\": [{\"tax_code\": \"T1\", \"tax_rate\": \"20.0\", \"tax_amount\": \"23.38\", \"amount_on_which_tax_amount_is_calculated_using_tax_rate\": \"116.87\", \"total_amount_including_tax\": \"140.25\"}]}, \"is_cis_applicable\": false}"}]}]} |