| {"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/1068.pdf"}}]}, {"role": "model", "parts": [{"text": "{\"document_type\": \"INVOICE\", \"customer_name\": \"Wrap Your Car\", \"supplier_name\": \"William Smith Group 1832\", \"supplier_vat_number\": \"GB292 5988 37\", \"customer_vat_number\": null, \"tax_inclusive_total_amount\": 127.76, \"tax_exclusive_total_amount\": 106.47, \"total_tax_amount\": 21.29, \"total_amount\": 127.76, \"paid_or_unknown\": \"PAID\", \"invoice_date\": \"2024-04-05\", \"invoice_due_date\": null, \"currency\": \"GBP\", \"invoice_or_receipt_number_or_transaction_id\": \"765143\", \"expense_category\": \"Marketing and advertising\", \"description_of_goods_or_services\": \"3M Wrap Film Series 2080 - Carbon Fibre Anthracite 2080-CF5201 1524mm x 2metres Carriage - UPS Standard NBD - UK - 125737WV6862607901 Despatched - 05 Apr 2024\", \"is_marketplace_document\": false, \"primary_expense_category\": \"Marketing and advertising\", \"payment_info_card_last4\": null, \"is_cis_applicable\": false, \"tax_information\": {\"tax_lines\": [{\"tax_code\": \"2\", \"tax_rate\": \"0.0\", \"tax_amount\": \"0.00\", \"amount_on_which_tax_amount_is_calculated_using_tax_rate\": \"9.95\", \"total_amount_including_tax\": \"9.95\"}, {\"tax_code\": \"1\", \"tax_rate\": \"20.0\", \"tax_amount\": \"19.30\", \"amount_on_which_tax_amount_is_calculated_using_tax_rate\": \"96.52\", \"total_amount_including_tax\": \"115.82\"}]}, \"is_cis_applicable\": false}"}]}]} |