{"doc_type": "invoice", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 0.0, "y": 0.0}, {"x": 640.0, "y": 0.0}, {"x": 640.0, "y": 640.0}, {"x": 0.0, "y": 640.0}]}], "spans": [{"offset": 0, "length": 713}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 74870.0, "symbol": "Rs"}, "content": "Rs. 74,870", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 567.0}, {"x": 544.0, "y": 567.0}, {"x": 544.0, "y": 578.0}, {"x": 498.0, "y": 578.0}]}], "spans": [{"offset": 676, "length": 10}], "confidence": 0.908}, "CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "Brenthouse Road", "city": "London", "state": null, "postal_code": "E9 6QQ", "country_region": "UK", "street_address": "Brenthouse Road"}, "content": "Brenthouse Road\nLondon\nUK - E9 6QQ", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 121.0, "y": 215.0}, {"x": 197.0, "y": 215.0}, {"x": 197.0, "y": 259.0}, {"x": 121.0, "y": 259.0}]}], "spans": [{"offset": 122, "length": 34}], "confidence": 0.64}, "CustomerAddressRecipient": {"value_type": "string", "value": "Louise Miller", "content": "Louise Miller", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 122.0, "y": 200.0}, {"x": 178.0, "y": 200.0}, {"x": 178.0, "y": 211.0}, {"x": 122.0, "y": 211.0}]}], "spans": [{"offset": 108, "length": 13}], "confidence": 0.766}, "CustomerName": {"value_type": "string", "value": "Louise Miller", "content": "Louise Miller", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 122.0, "y": 200.0}, {"x": 178.0, "y": 200.0}, {"x": 178.0, "y": 211.0}, {"x": 122.0, "y": 211.0}]}], "spans": [{"offset": 108, "length": 13}], "confidence": 0.766}, "InvoiceDate": {"value_type": "date", "value": "2021-09-26", "content": "9/26/2021", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 511.0, "y": 215.0}, {"x": 554.0, "y": 216.0}, {"x": 554.0, "y": 227.0}, {"x": 511.0, "y": 227.0}]}], "spans": [{"offset": 234, "length": 9}], "confidence": 0.971}, "InvoiceId": {"value_type": "string", "value": "2001321", "content": "2001321", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 511.0, "y": 200.0}, {"x": 549.0, "y": 200.0}, {"x": 549.0, "y": 212.0}, {"x": 511.0, "y": 211.0}]}], "spans": [{"offset": 221, "length": 7}], "confidence": 0.974}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 74870.0, "symbol": "Rs"}, "content": "Rs. 74,870", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 518.0}, {"x": 544.0, "y": 520.0}, {"x": 544.0, "y": 534.0}, {"x": 498.0, "y": 532.0}]}], "spans": [{"offset": 636, "length": 10}], "confidence": 0.922}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 62500.0, "symbol": "Rs"}, "content": "Rs. 62,500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 405.0}, {"x": 545.0, "y": 405.0}, {"x": 545.0, "y": 416.0}, {"x": 498.0, "y": 416.0}]}], "spans": [{"offset": 530, "length": 10}], "confidence": 0.935}, "Description": {"value_type": "string", "value": "Grandfather Clock - Brown", "content": "Grandfather Clock - Brown", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 59.0, "y": 404.0}, {"x": 172.0, "y": 404.0}, {"x": 172.0, "y": 417.0}, {"x": 59.0, "y": 417.0}]}], "spans": [{"offset": 491, "length": 25}], "confidence": 0.931}, "Quantity": {"value_type": "float", "value": 5.0, "content": "5", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 287.0, "y": 405.0}, {"x": 292.0, "y": 405.0}, {"x": 293.0, "y": 415.0}, {"x": 287.0, "y": 415.0}]}], "spans": [{"offset": 517, "length": 1}], "confidence": 0.932}, "UnitPrice": {"value_type": "currency", "value": {"amount": 12500.0, "symbol": "Rs"}, "content": "Rs. 12,500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 374.0, "y": 405.0}, {"x": 422.0, "y": 405.0}, {"x": 422.0, "y": 417.0}, {"x": 374.0, "y": 417.0}]}], "spans": [{"offset": 519, "length": 10}], "confidence": 0.935}}, "content": "Grandfather Clock - Brown\n5\nRs. 12,500\nRs. 62,500", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 59.0, "y": 404.0}, {"x": 545.0, "y": 404.0}, {"x": 545.0, "y": 417.0}, {"x": 59.0, "y": 417.0}]}], "spans": [{"offset": 491, "length": 49}], "confidence": 0.896}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.7, "symbol": "Rs"}, "content": "Rs. 700", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 428.0}, {"x": 532.0, "y": 428.0}, {"x": 532.0, "y": 439.0}, {"x": 498.0, "y": 439.0}]}], "spans": [{"offset": 559, "length": 7}], "confidence": 0.934}, "Description": {"value_type": "string", "value": "Freight", "content": "Freight", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 59.0, "y": 428.0}, {"x": 91.0, "y": 428.0}, {"x": 91.0, "y": 440.0}, {"x": 59.0, "y": 439.0}]}], "spans": [{"offset": 541, "length": 7}], "confidence": 0.934}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 288.0, "y": 428.0}, {"x": 292.0, "y": 428.0}, {"x": 292.0, "y": 438.0}, {"x": 288.0, "y": 438.0}]}], "spans": [{"offset": 549, "length": 1}], "confidence": 0.932}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.7, "symbol": "Rs"}, "content": "Rs. 700", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 374.0, "y": 428.0}, {"x": 408.0, "y": 428.0}, {"x": 408.0, "y": 439.0}, {"x": 374.0, "y": 439.0}]}], "spans": [{"offset": 551, "length": 7}], "confidence": 0.934}}, "content": "Freight\n1\nRs. 700\nRs. 700", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 59.0, "y": 428.0}, {"x": 532.0, "y": 428.0}, {"x": 532.0, "y": 440.0}, {"x": 59.0, "y": 440.0}]}], "spans": [{"offset": 541, "length": 25}], "confidence": 0.891}, {"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 0.42, "symbol": "Rs"}, "content": "Rs. 420", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 450.0}, {"x": 532.0, "y": 451.0}, {"x": 532.0, "y": 464.0}, {"x": 498.0, "y": 462.0}]}], "spans": [{"offset": 587, "length": 7}], "confidence": 0.934}, "Description": {"value_type": "string", "value": "Insurance", "content": "Insurance", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 60.0, "y": 453.0}, {"x": 101.0, "y": 453.0}, {"x": 101.0, "y": 463.0}, {"x": 60.0, "y": 463.0}]}], "spans": [{"offset": 567, "length": 9}], "confidence": 0.935}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 289.0, "y": 451.0}, {"x": 291.0, "y": 451.0}, {"x": 293.0, "y": 460.0}, {"x": 289.0, "y": 461.0}]}], "spans": [{"offset": 577, "length": 1}], "confidence": 0.931}, "UnitPrice": {"value_type": "currency", "value": {"amount": 0.42, "symbol": "Rs"}, "content": "Rs. 420", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 375.0, "y": 451.0}, {"x": 408.0, "y": 451.0}, {"x": 408.0, "y": 463.0}, {"x": 375.0, "y": 463.0}]}], "spans": [{"offset": 579, "length": 7}], "confidence": 0.933}}, "content": "Insurance\n1\nRs. 420\nRs. 420", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 60.0, "y": 451.0}, {"x": 532.0, "y": 451.0}, {"x": 532.0, "y": 463.0}, {"x": 60.0, "y": 463.0}]}], "spans": [{"offset": 567, "length": 27}], "confidence": 0.89}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Bank Transfer", "content": "Bank Transfer", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 511.0, "y": 341.0}, {"x": 572.0, "y": 342.0}, {"x": 572.0, "y": 354.0}, {"x": 511.0, "y": 353.0}]}], "spans": [{"offset": 438, "length": 13}], "confidence": 0.936}, "PurchaseOrder": {"value_type": "string", "value": "45172", "content": "45172", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 511.0, "y": 231.0}, {"x": 538.0, "y": 231.0}, {"x": 538.0, "y": 242.0}, {"x": 511.0, "y": 241.0}]}], "spans": [{"offset": 260, "length": 5}], "confidence": 0.955}, "SubTotal": {"value_type": "currency", "value": {"amount": 83620.0, "symbol": "Rs"}, "content": "Rs. 83,620", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 474.0}, {"x": 545.0, "y": 474.0}, {"x": 545.0, "y": 485.0}, {"x": 498.0, "y": 485.0}]}], "spans": [{"offset": 604, "length": 10}], "confidence": 0.933}, "TotalTax": {"value_type": "currency", "value": {"amount": 11250.0, "symbol": "Rs"}, "content": "Rs. 11,250", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 498.0, "y": 497.0}, {"x": 543.0, "y": 497.0}, {"x": 543.0, "y": 508.0}, {"x": 498.0, "y": 508.0}]}], "spans": [{"offset": 619, "length": 10}], "confidence": 0.936}, "VendorAddressRecipient": {"value_type": "string", "value": "AFC Enterprises", "content": "AFC Enterprises", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 210.0, "y": 28.0}, {"x": 319.0, "y": 30.0}, {"x": 319.0, "y": 48.0}, {"x": 210.0, "y": 46.0}]}], "spans": [{"offset": 17, "length": 15}], "confidence": 0.298}, "VendorName": {"value_type": "string", "value": "AFC Enterprises", "content": "AFC Enterprises", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 210.0, "y": 28.0}, {"x": 319.0, "y": 30.0}, {"x": 319.0, "y": 48.0}, {"x": 210.0, "y": 46.0}]}], "spans": [{"offset": 17, "length": 15}], "confidence": 0.298}}, "confidence": 1.0}