> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Verification of extracted data

> Verify extracted invoice data in FlexiCapture for Invoices Cloud by running a task with UserVerification or Troubleshooting, and then opening the verification UI.

Verification entails checking that the data has been recognized correctly and that the rules have returned no errors. Verification is done by human operators.

ABBYY FlexiCapture for Invoices Cloud provides unique URLs that direct verification operators to the verification UI for data validation. The verification UI offers the same functionality as the ABBYY FlexiCapture Web Verification Station.

To open the verification UI for a task:

<Steps>
  <Step title="Get the authorization header">
    Get the [authorization](/flexi-capture/cloud/cloud-f-cfor-invoices-api-auth) header.
  </Step>

  <Step title="Upload a file">
    [Upload a file](/flexi-capture/cloud/cloud-f-cfor-invoices-api-upload-file) to the server. For the full upload flow, see [Extraction of main invoice fields](/flexi-capture/cloud/cloud-f-cfor-invoices-extraction).
  </Step>

  <Step title="Start a processing task">
    Start a document processing task to begin data extraction using the Task.Run method. Specify the `verification_type` parameter as `Troubleshooting` or `UserVerification`.

    ```bash theme={null}
    curl -X POST \
      --header "Content-Type: application/json" \
      --header "Accept: application/json" \
      --header "Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l" \
      -d '{
        "properties": {
          "region": "US",
          "export_format": "Xls",
          "verification_type": "UserVerification"
        },
        "files": [
          {
            "id": "5eeb762149c6470fdc65a84c",
            "token": "4B5A1A00E7A82C2AF31E20CADE7284DDA43DED30"
          }
        ]
      }' \
      "https://api-eu.flexicapture.com/v2/task/capture/invoices"
    ```

    The response describes the newly created task:

    ```json theme={null}
    {
      "id": "5eeb7bf728613d1e04a70782",
      "number": "1126563",
      "batch_id": 0,
      "type": "ic",
      "is_realtime_enabled": false,
      "processing_priority": "Normal",
      "is_demo": false,
      "properties": {
        "region": "US",
        "export_format": "Xls",
        "verification_type": "UserVerification"
      },
      "account": "5dae591d3c66a51ae8be9896",
      "email": "user@abbyy.com",
      "application": "5dae591e91375010bcd78362",
      "created": "2020-02-02T15:36:39.441Z",
      "progress": 0,
      "status": "Submitted",
      "is_deleted": false,
      "is_billed": false,
      "documents": [
        {
          "files": {
            "source": {
              "id": "5eeb762149c6470fdc65a84c",
              "token": "4B5A1A00E7A82C2AF31E20CADE7284DDA43DED30",
              "name": "US_1.png"
            }
          },
          "data": {},
          "is_moved": false
        }
      ],
      "is_extra_error": false
    }
    ```
  </Step>

  <Step title="Track the task status">
    Track the task status using the [Task.Get](/flexi-capture/cloud/cloud-f-cfor-invoices-api-get-task) method. For details, see [Extraction of main invoice fields](/flexi-capture/cloud/cloud-f-cfor-invoices-extraction). Once the task status has changed to `WaitForAction`, you can open the verification UI.

    ```json theme={null}
    {
      "id": "5eeb7bf728613d1e04a70782",
      "number": "1126563",
      "verification_id": "c6115b219dc609091e10e7679f064ef7",
      "batch_id": 2648837,
      "type": "ic",
      "is_realtime_enabled": false,
      "processing_priority": "Normal",
      "is_demo": false,
      "properties": {
        "region": "US",
        "export_format": "Xls",
        "verification_type": "UserVerification"
      },
      "account": "5dae591d3c66a51ae8be9896",
      "email": "user@abbyy.com",
      "application": "5dae591e91375010bcd78362",
      "created": "2020-02-02T15:36:39.441Z",
      "started": "2020-02-02T15:36:39.441Z",
      "action_required": "2020-02-02T15:40:40.441Z",
      "billed": "2020-02-02T15:36:39.441Z",
      "progress": 60,
      "status": "WaitForAction",
      "is_deleted": false,
      "is_billed": true,
      "documents_count": 1,
      "pages_count": 1,
      "documents": [
        {
          "files": {
            "source": {
              "id": "5eeb762149c6470fdc65a84c",
              "token": "4B5A1A00E7A82C2AF31E20CADE7284DDA43DED30",
              "name": "US_1.png"
            },
            "verification_layer_page_0": {
              "id": "5eec6f846acf141414114b78",
              "token": "5BD40F65ABF4CEA71C97E9698AC62283EA747EC8",
              "name": "verification_layer_page_2.xml"
            }
          },
          "data": {
            "region": "us",
            "export_format": "xls",
            "verification_type": "userverification",
            "vendor_id": "1",
            "vendor_name": "AA APPAREL",
            "total": "20208",
            "currency": "USD"
          },
          "is_moved": false
        }
      ],
      "is_extra_error": false
    }
    ```
  </Step>

  <Step title="Create a verification URL">
    Create a verification URL in the following format:

    ```text theme={null}
    https://{cloud-host}/verification/{verification_id}
    ```

    Here, `{cloud-host}` is your region host and `{verification_id}` is the verification identifier from the Task.Get response. For example:

    ```text theme={null}
    https://cloud-eu.flexicapture.com/verification/c6115b219dc609091e10e7679f064ef7
    ```
  </Step>

  <Step title="Open the verification URL">
    Open the verification URL in a browser.
  </Step>

  <Step title="Download the results">
    Track the task status. After the task status has changed to `Done`, you can download the output files and delete the task. For details, see [Extraction of main invoice fields](/flexi-capture/cloud/cloud-f-cfor-invoices-extraction).
  </Step>
</Steps>
