{"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": 465}], "fields": {"DueDate": {"value_type": "date", "value": "2016-07-28", "content": "28/07/2016", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 478.0, "y": 193.0}, {"x": 549.0, "y": 192.0}, {"x": 549.0, "y": 208.0}, {"x": 478.0, "y": 208.0}]}], "spans": [{"offset": 153, "length": 10}], "confidence": 0.943}, "InvoiceDate": {"value_type": "date", "value": "2016-07-28", "content": "28/07/2016", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 478.0, "y": 142.0}, {"x": 549.0, "y": 143.0}, {"x": 549.0, "y": 157.0}, {"x": 479.0, "y": 158.0}]}], "spans": [{"offset": 104, "length": 10}], "confidence": 0.949}, "InvoiceId": {"value_type": "string", "value": "0001", "content": "0001", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 479.0, "y": 118.0}, {"x": 511.0, "y": 118.0}, {"x": 511.0, "y": 131.0}, {"x": 479.0, "y": 131.0}]}], "spans": [{"offset": 86, "length": 4}], "confidence": 0.943}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 233.49, "symbol": "GBP"}, "content": "\u00a3233.49 GBP", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 506.0, "y": 469.0}, {"x": 594.0, "y": 469.0}, {"x": 594.0, "y": 484.0}, {"x": 506.0, "y": 484.0}]}], "spans": [{"offset": 403, "length": 11}], "confidence": 0.877}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 215.0, "symbol": "\u00a3"}, "content": "\u00a3215.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 542.0, "y": 371.0}, {"x": 593.0, "y": 371.0}, {"x": 593.0, "y": 385.0}, {"x": 542.0, "y": 385.0}]}], "spans": [{"offset": 290, "length": 7}], "confidence": 0.238}, "Description": {"value_type": "string", "value": "Test Product", "content": "Test Product", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 48.0, "y": 367.0}, {"x": 135.0, "y": 369.0}, {"x": 135.0, "y": 387.0}, {"x": 48.0, "y": 385.0}]}], "spans": [{"offset": 267, "length": 12}], "confidence": 0.159}, "Quantity": {"value_type": "float", "value": 1.0, "content": "1", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 367.0, "y": 370.0}, {"x": 372.0, "y": 370.0}, {"x": 373.0, "y": 383.0}, {"x": 368.0, "y": 383.0}]}], "spans": [{"offset": 280, "length": 1}], "confidence": 0.185}, "UnitPrice": {"value_type": "currency", "value": {"amount": 215.0, "symbol": "\u00a3"}, "content": "\u00a3215.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 439.0, "y": 371.0}, {"x": 490.0, "y": 370.0}, {"x": 491.0, "y": 385.0}, {"x": 439.0, "y": 385.0}]}], "spans": [{"offset": 282, "length": 7}], "confidence": 0.238}}, "content": "Test Product\n1\n\u00a3215.00\n\u00a3215.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 48.0, "y": 369.0}, {"x": 593.0, "y": 369.0}, {"x": 593.0, "y": 386.0}, {"x": 48.0, "y": 386.0}]}], "spans": [{"offset": 267, "length": 30}], "confidence": 0.388}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Due on receipt", "content": "Due on receipt", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 478.0, "y": 168.0}, {"x": 570.0, "y": 168.0}, {"x": 570.0, "y": 184.0}, {"x": 478.0, "y": 184.0}]}], "spans": [{"offset": 129, "length": 14}], "confidence": 0.91}, "SubTotal": {"value_type": "currency", "value": {"amount": 215.0, "symbol": "\u00a3"}, "content": "\u00a3215.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 540.0, "y": 423.0}, {"x": 593.0, "y": 423.0}, {"x": 594.0, "y": 438.0}, {"x": 540.0, "y": 438.0}]}], "spans": [{"offset": 371, "length": 7}], "confidence": 0.953}, "TotalTax": {"value_type": "currency", "value": {"amount": 18.49, "symbol": "\u00a3"}, "content": "\u00a318.49", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 548.0, "y": 442.0}, {"x": 594.0, "y": 442.0}, {"x": 595.0, "y": 457.0}, {"x": 548.0, "y": 457.0}]}], "spans": [{"offset": 390, "length": 6}], "confidence": 0.954}, "VendorAddress": {"value_type": "address", "value": {"house_number": "8", "po_box": null, "road": "Elm Street", "city": "Cambridge", "state": null, "postal_code": "CB1 4DH", "country_region": "United Kingdom", "street_address": "8 Elm Street"}, "content": "8 Elm Street\nCambridge, CB1 4DH\nUnited Kingdom", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 39.0, "y": 142.0}, {"x": 165.0, "y": 142.0}, {"x": 165.0, "y": 194.0}, {"x": 39.0, "y": 194.0}]}], "spans": [{"offset": 24, "length": 46}], "confidence": 0.598}, "VendorAddressRecipient": {"value_type": "string", "value": "John Doe", "content": "John Doe", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 39.0, "y": 118.0}, {"x": 98.0, "y": 118.0}, {"x": 98.0, "y": 133.0}, {"x": 39.0, "y": 133.0}]}], "spans": [{"offset": 15, "length": 8}], "confidence": 0.562}, "VendorName": {"value_type": "string", "value": "PayPal", "content": "PayPal", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 76.0, "y": 70.0}, {"x": 161.0, "y": 70.0}, {"x": 161.0, "y": 96.0}, {"x": 76.0, "y": 96.0}]}], "spans": [{"offset": 0, "length": 6}], "confidence": 0.935}}, "confidence": 1.0}