{"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": 656}], "fields": {"AmountDue": {"value_type": "currency", "value": {"amount": 400.0, "symbol": "$"}, "content": "$ 400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 341.0}, {"x": 536.0, "y": 346.0}, {"x": 534.0, "y": 359.0}, {"x": 492.0, "y": 354.0}]}], "spans": [{"offset": 509, "length": 8}], "confidence": 0.121}, "CustomerAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. Box 21688", "road": null, "city": "Greensboro", "state": "NC", "postal_code": "27420", "country_region": null, "street_address": "P.O. Box 21688"}, "content": "P.O. Box 21688\nGreensboro, NC 27420", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 178.0, "y": 144.0}, {"x": 281.0, "y": 142.0}, {"x": 281.0, "y": 162.0}, {"x": 178.0, "y": 165.0}]}], "spans": [{"offset": 177, "length": 35}], "confidence": 0.006}, "CustomerAddressRecipient": {"value_type": "string", "value": "Lorillard Research Center\nAttention: Dr. Comnie Stone", "content": "Lorillard Research Center\nAttention: Dr. Comnie Stone", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 178.0, "y": 132.0}, {"x": 315.0, "y": 132.0}, {"x": 315.0, "y": 183.0}, {"x": 178.0, "y": 183.0}]}], "spans": [{"offset": 151, "length": 25}, {"offset": 213, "length": 27}], "confidence": 0.017}, "CustomerId": {"value_type": "string", "value": "4111", "content": "4111", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 291.0, "y": 431.0}, {"x": 329.0, "y": 428.0}, {"x": 330.0, "y": 445.0}, {"x": 292.0, "y": 447.0}]}], "spans": [{"offset": 559, "length": 4}], "confidence": null}, "CustomerName": {"value_type": "string", "value": "Lorillard Research Center\nAttention: Dr. Comnie Stone", "content": "Lorillard Research Center\nAttention: Dr. Comnie Stone", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 178.0, "y": 132.0}, {"x": 315.0, "y": 132.0}, {"x": 315.0, "y": 183.0}, {"x": 178.0, "y": 183.0}]}], "spans": [{"offset": 151, "length": 25}, {"offset": 213, "length": 27}], "confidence": 0.017}, "InvoiceDate": {"value_type": "date", "value": "1985-05-17", "content": "May 17, 1985", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 168.0, "y": 217.0}, {"x": 229.0, "y": 215.0}, {"x": 229.0, "y": 226.0}, {"x": 168.0, "y": 228.0}]}], "spans": [{"offset": 256, "length": 12}], "confidence": 0.001}, "InvoiceId": {"value_type": "string", "value": "511114", "content": "511114", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 463.0, "y": 53.0}, {"x": 493.0, "y": 52.0}, {"x": 494.0, "y": 62.0}, {"x": 463.0, "y": 62.0}]}], "spans": [{"offset": 10, "length": 6}], "confidence": null}, "InvoiceTotal": {"value_type": "currency", "value": {"amount": 400.0, "symbol": "$"}, "content": "$ 400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 356.0, "y": 346.0}, {"x": 400.0, "y": 347.0}, {"x": 400.0, "y": 357.0}, {"x": 356.0, "y": 356.0}]}], "spans": [{"offset": 500, "length": 8}], "confidence": null}, "Items": {"value_type": "list", "value": [{"value_type": "dictionary", "value": {"Amount": {"value_type": "currency", "value": {"amount": 400.0, "symbol": "$"}, "content": "$ 400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 493.0, "y": 341.0}, {"x": 536.0, "y": 346.0}, {"x": 534.0, "y": 359.0}, {"x": 492.0, "y": 354.0}]}], "spans": [{"offset": 509, "length": 8}], "confidence": 0.128}, "Description": {"value_type": "string", "value": "AMOUNT DUE", "content": "AMOUNT DUE", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 348.0}, {"x": 199.0, "y": 348.0}, {"x": 199.0, "y": 359.0}, {"x": 152.0, "y": 359.0}]}], "spans": [{"offset": 487, "length": 10}], "confidence": 0.041}, "UnitPrice": {"value_type": "currency", "value": {"amount": 400.0, "symbol": null}, "content": "400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 370.0, "y": 347.0}, {"x": 400.0, "y": 347.0}, {"x": 400.0, "y": 357.0}, {"x": 370.0, "y": 356.0}]}], "spans": [{"offset": 502, "length": 6}], "confidence": 0.07}}, "content": "AMOUNT DUE :\n$ 400.00\n$ 400.00", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 152.0, "y": 346.0}, {"x": 535.0, "y": 346.0}, {"x": 535.0, "y": 359.0}, {"x": 152.0, "y": 359.0}]}], "spans": [{"offset": 487, "length": 30}], "confidence": 0.001}], "content": null, "bounding_regions": [], "spans": [], "confidence": null}, "PaymentTerm": {"value_type": "string", "value": "Net. 30 Days", "content": "Net. 30 Days", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 319.0, "y": 215.0}, {"x": 374.0, "y": 215.0}, {"x": 374.0, "y": 226.0}, {"x": 319.0, "y": 226.0}]}], "spans": [{"offset": 307, "length": 12}], "confidence": 0.096}, "RemittanceAddress": {"value_type": "address", "value": {"house_number": null, "po_box": "P.O. Box 25065", "road": null, "city": "Richmond", "state": "Va.", "postal_code": "23260", "country_region": null, "street_address": "P.O. Box 25065"}, "content": "P.O. Box 25065, Richmond,Va. 23260", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 177.0, "y": 547.0}, {"x": 345.0, "y": 545.0}, {"x": 345.0, "y": 559.0}, {"x": 177.0, "y": 560.0}]}], "spans": [{"offset": 574, "length": 34}], "confidence": 0.002}, "VendorAddress": {"value_type": "address", "value": {"house_number": null, "po_box": null, "road": "LEESBURG TURNPIKE.", "city": "VIENNA", "state": "VA BRICO", "postal_code": null, "country_region": "U.S.A", "street_address": "LEESBURG TURNPIKE."}, "content": "92OO LEESBURG TURNPIKE. VIENNA, VA BRICO, U.S.A", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 164.0, "y": 90.0}, {"x": 353.0, "y": 90.0}, {"x": 353.0, "y": 99.0}, {"x": 164.0, "y": 99.0}]}], "spans": [{"offset": 78, "length": 47}], "confidence": 0.005}, "VendorName": {"value_type": "string", "value": "HAZLETON\nLABORATORIES AMERICA, INC.", "content": "HAZLETON LABORATORIES AMERICA, INC.", "bounding_regions": [{"page_number": 1, "polygon": [{"x": 163.0, "y": 59.0}, {"x": 303.0, "y": 59.0}, {"x": 303.0, "y": 88.0}, {"x": 163.0, "y": 88.0}]}], "spans": [{"offset": 42, "length": 35}], "confidence": 0.277}}, "confidence": 1.0}