{
  "status": "COMPLETED",
  "message": [
    {
      "file": "main_invoice_multipage_blackwood.pdf",
      "file_execution_id": "2e43ae3e-9074-460d-8072-a9a153c021b5",
      "status": "Success",
      "result": {
        "output": {
          "line_items": [
            {
              "amount": 1008.0,
              "quantity": 12,
              "unit_price": 84.0,
              "description": "Retail Shelving Unit - Steel, 5-Tier"
            },
            {
              "amount": 930.0,
              "quantity": 3,
              "unit_price": 310.0,
              "description": "Checkout Counter - Laminate Top"
            },
            {
              "amount": 273.0,
              "quantity": 6,
              "unit_price": 45.5,
              "description": "Security Tag Deactivator - Handheld"
            },
            {
              "amount": 648.0,
              "quantity": 4,
              "unit_price": 162.0,
              "description": "Price Label Printer - Thermal"
            },
            {
              "amount": 304.0,
              "quantity": 8,
              "unit_price": 38.0,
              "description": "Shopping Basket - 20L, Set of 10"
            },
            {
              "amount": 1080.0,
              "quantity": 2,
              "unit_price": 540.0,
              "description": "Storeroom Pallet Racking - 4-Bay"
            },
            {
              "amount": 580.0,
              "quantity": 10,
              "unit_price": 58.0,
              "description": "Barcode Scanner - Wireless"
            },
            {
              "amount": 330.0,
              "quantity": 15,
              "unit_price": 22.0,
              "description": "Receipt Paper Roll - Case of 50"
            },
            {
              "amount": 570.0,
              "quantity": 6,
              "unit_price": 95.0,
              "description": "Mannequin - Adjustable, Full Body"
            },
            {
              "amount": 380.0,
              "quantity": 5,
              "unit_price": 76.0,
              "description": "Display Signage Kit - Window Set"
            }
          ]
        },
        "metrics": {
          "_file": {
            "text_extraction": {
              "time_taken(s)": 10.67717078802525
            }
          },
          "line_items": {
            "extraction_llm": {
              "time_taken(s)": 4.281
            },
            "context_retrieval": {
              "time_taken(s)": 0.00518
            }
          }
        },
        "metadata": {
          "run_id": "2e43ae3e-9074-460d-8072-a9a153c021b5",
          "context": {
            "line_items": [
              "\n\n                                                                                                             INVOICE \nMeridian Retail Group \nRETAIL FIXTURES & STORE EQUIPMENT SUPPLY                                                                            Page 1 of 2 \n\nFROM                                                                 BILL TO \n\nMeridian Retail Group                                                Blackwood Distribution LLC \n18 Market Square, Camden                                             402 Harborfront Way, Suite 210 \nLondon NW1 8QP, United Kingdom                                       Bristol BS1 6XN, United Kingdom \nVAT No. GB 402 8817 55                                               Contact: Mr. Desmond Ayotte \n\n                                                                 INVOICE NO.        INVOICE DATE   DUE DATE       PO NUMBER \n                                                                 MRG-INV-20481      06 Jun 2020    06 Jul 2020    BW-PO-9982 \n\n SI.      Item Description                                               Qty              Unit Price (£)          Amount (£) \n\n 1        Retail Shelving Unit - Steel, 5-Tier                            12                     84.00               1,008.00 \n\n 2        Checkout Counter - Laminate Top                                  3                    310.00                930.00 \n\n 3        Security Tag Deactivator - Handheld                              6                     45.50                273.00 \n\n 4        Price Label Printer - Thermal                                    4                    162.00                648.00 \n\n 5        Shopping Basket - 20L, Set of 10                                 8                     38.00                304.00 \n\n 6        Storeroom Pallet Racking - 4-Bay                                 2                    540.00               1,080.00 \n\nContinued on page 2 of 2 - line items 7 through 10 and invoice totals follow. \n\nMeridian Retail Group | Registered in England No. 08847721 | accounts@meridianretailgroup.example \n<<<\f\n\n                                                                                                                               INVOICE \nMeridian Retail Group \nRETAIL FIXTURES & STORE EQUIPMENT SUPPLY                                                                          Page 2 of 2 - MRG-INV-20481 \n\n  SI.        Item Description                                                       Qty                  Unit Price (£)              Amount (£) \n\n  7          Barcode Scanner - Wireless                                               10                        58.00                    580.00 \n\n  8          Receipt Paper Roll - Case of 50                                          15                        22.00                    330.00 \n\n  9          Mannequin - Adjustable, Full Body                                         6                        95.00                    570.00 \n\n  10         Display Signage Kit - Window Set                                          5                        76.00                    380.00 \n\n                                                                                     Subtotal                                           £6,103.00 \n\n                                                                                     VAT (8%)                                             £488.24 \n\n                                                                                     TOTAL                                          £6,591.24 \n\nPayment due within 30 days to Meridian Retail Group, Continental Trust Bank, Acc. 5021 8834 7712, Sort Code CTBK0002211. Meridian Retail Group | Registered in \nEngland No. 08847721 | accounts@meridianretailgroup.example \n<<<\f"
            ]
          },
          "file_name": "main_invoice_multipage_blackwood.pdf",
          "line_numbers": {
            "line_items": []
          },
          "whisper_hash": "",
          "extracted_text": "\n\n                                                                                                             INVOICE \nMeridian Retail Group \nRETAIL FIXTURES & STORE EQUIPMENT SUPPLY                                                                            Page 1 of 2 \n\nFROM                                                                 BILL TO \n\nMeridian Retail Group                                                Blackwood Distribution LLC \n18 Market Square, Camden                                             402 Harborfront Way, Suite 210 \nLondon NW1 8QP, United Kingdom                                       Bristol BS1 6XN, United Kingdom \nVAT No. GB 402 8817 55                                               Contact: Mr. Desmond Ayotte \n\n                                                                 INVOICE NO.        INVOICE DATE   DUE DATE       PO NUMBER \n                                                                 MRG-INV-20481      06 Jun 2020    06 Jul 2020    BW-PO-9982 \n\n SI.      Item Description                                               Qty              Unit Price (£)          Amount (£) \n\n 1        Retail Shelving Unit - Steel, 5-Tier                            12                     84.00               1,008.00 \n\n 2        Checkout Counter - Laminate Top                                  3                    310.00                930.00 \n\n 3        Security Tag Deactivator - Handheld                              6                     45.50                273.00 \n\n 4        Price Label Printer - Thermal                                    4                    162.00                648.00 \n\n 5        Shopping Basket - 20L, Set of 10                                 8                     38.00                304.00 \n\n 6        Storeroom Pallet Racking - 4-Bay                                 2                    540.00               1,080.00 \n\nContinued on page 2 of 2 - line items 7 through 10 and invoice totals follow. \n\nMeridian Retail Group | Registered in England No. 08847721 | accounts@meridianretailgroup.example \n<<<\f\n\n                                                                                                                               INVOICE \nMeridian Retail Group \nRETAIL FIXTURES & STORE EQUIPMENT SUPPLY                                                                          Page 2 of 2 - MRG-INV-20481 \n\n  SI.        Item Description                                                       Qty                  Unit Price (£)              Amount (£) \n\n  7          Barcode Scanner - Wireless                                               10                        58.00                    580.00 \n\n  8          Receipt Paper Roll - Case of 50                                          15                        22.00                    330.00 \n\n  9          Mannequin - Adjustable, Full Body                                         6                        95.00                    570.00 \n\n  10         Display Signage Kit - Window Set                                          5                        76.00                    380.00 \n\n                                                                                     Subtotal                                           £6,103.00 \n\n                                                                                     VAT (8%)                                             £488.24 \n\n                                                                                     TOTAL                                          £6,591.24 \n\nPayment due within 30 days to Meridian Retail Group, Continental Trust Bank, Acc. 5021 8834 7712, Sort Code CTBK0002211. Meridian Retail Group | Registered in \nEngland No. 08847721 | accounts@meridianretailgroup.example \n<<<\f",
          "required_fields": {
            "line_items": null
          },
          "extraction_llm": [
            {
              "model_name": "gpt-4o",
              "cost_in_dollars": "0.0065975",
              "input_tokens": 835,
              "output_tokens": 451,
              "total_tokens": 1286
            }
          ]
        }
      },
      "error": null,
      "metadata": {
        "source_name": "main_invoice_multipage_blackwood.pdf",
        "source_hash": "d1f3282702260730267278b1071ee30cf79918fa8489d9411c98d8f6e5209f18",
        "organization_id": "org_0pMusmf6SGq5PdXO",
        "workflow_id": "69d80cd0-0697-416c-8075-c5d1bcff95aa",
        "execution_id": "22a905ff-9c3e-46c7-84cd-f8dbfd75159a",
        "file_execution_id": "2e43ae3e-9074-460d-8072-a9a153c021b5",
        "tags": [],
        "workflow_start_time": 1795515369.82146,
        "tool_metadata": [
          {
            "tool_name": "structure_tool",
            "output_type": "JSON",
            "elapsed_time": 15.781148685957305
          }
        ],
        "total_elapsed_time": 15.942291259765625,
        "usage": {
          "embedding_tokens": 0,
          "prompt_tokens": 835,
          "completion_tokens": 451,
          "total_tokens": 1286,
          "cost_in_dollars": 0.006597500000000001,
          "file_execution_id": "2e43ae3e-9074-460d-8072-a9a153c021b5"
        },
        "total_pages_processed": 2,
        "hitl": {
          "file_sent_to_hitl": false,
          "reason": "API deployment without file history - HITL not applicable"
        }
      },
      "extracted_text": "\n\n                                                                                                             INVOICE \nMeridian Retail Group \nRETAIL FIXTURES & STORE EQUIPMENT SUPPLY                                                                            Page 1 of 2 \n\nFROM                                                                 BILL TO \n\nMeridian Retail Group                                                Blackwood Distribution LLC \n18 Market Square, Camden                                             402 Harborfront Way, Suite 210 \nLondon NW1 8QP, United Kingdom                                       Bristol BS1 6XN, United Kingdom \nVAT No. GB 402 8817 55                                               Contact: Mr. Desmond Ayotte \n\n                                                                 INVOICE NO.        INVOICE DATE   DUE DATE       PO NUMBER \n                                                                 MRG-INV-20481      06 Jun 2020    06 Jul 2020    BW-PO-9982 \n\n SI.      Item Description                                               Qty              Unit Price (£)          Amount (£) \n\n 1        Retail Shelving Unit - Steel, 5-Tier                            12                     84.00               1,008.00 \n\n 2        Checkout Counter - Laminate Top                                  3                    310.00                930.00 \n\n 3        Security Tag Deactivator - Handheld                              6                     45.50                273.00 \n\n 4        Price Label Printer - Thermal                                    4                    162.00                648.00 \n\n 5        Shopping Basket - 20L, Set of 10                                 8                     38.00                304.00 \n\n 6        Storeroom Pallet Racking - 4-Bay                                 2                    540.00               1,080.00 \n\nContinued on page 2 of 2 - line items 7 through 10 and invoice totals follow. \n\nMeridian Retail Group | Registered in England No. 08847721 | accounts@meridianretailgroup.example \n<<<\f\n\n                                                                                                                               INVOICE \nMeridian Retail Group \nRETAIL FIXTURES & STORE EQUIPMENT SUPPLY                                                                          Page 2 of 2 - MRG-INV-20481 \n\n  SI.        Item Description                                                       Qty                  Unit Price (£)              Amount (£) \n\n  7          Barcode Scanner - Wireless                                               10                        58.00                    580.00 \n\n  8          Receipt Paper Roll - Case of 50                                          15                        22.00                    330.00 \n\n  9          Mannequin - Adjustable, Full Body                                         6                        95.00                    570.00 \n\n  10         Display Signage Kit - Window Set                                          5                        76.00                    380.00 \n\n                                                                                     Subtotal                                           £6,103.00 \n\n                                                                                     VAT (8%)                                             £488.24 \n\n                                                                                     TOTAL                                          £6,591.24 \n\nPayment due within 30 days to Meridian Retail Group, Continental Trust Bank, Acc. 5021 8834 7712, Sort Code CTBK0002211. Meridian Retail Group | Registered in \nEngland No. 08847721 | accounts@meridianretailgroup.example \n<<<\f"
    }
  ]
}