> ## 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.

# 抽出データの検証

> UserVerification または Troubleshooting でタスクを実行してから検証 UI を開き、FlexiCapture for Invoices Cloud で抽出された請求書データを検証します。

検証では、データが正しく認識され、ルールでエラーが返されていないことを確認します。検証は人間のオペレーターが行います。

ABBYY FlexiCapture for Invoices Cloud では、検証オペレーターをデータ検証用の検証 UI に誘導するための固有の URL が提供されます。検証 UI では、ABBYY FlexiCapture Web Verification Station と同じ機能を利用できます。

タスクの検証 UI を開くには:

<Steps>
  <Step title="Authorizationヘッダーを取得する">
    [authorization](/ja/flexi-capture/cloud/cloud-f-cfor-invoices-api-auth) ヘッダーを取得します。
  </Step>

  <Step title="ファイルをアップロードする">
    [ファイルをアップロード](/ja/flexi-capture/cloud/cloud-f-cfor-invoices-api-upload-file)してサーバーに送信します。アップロードの一連のフローについては、[主要な請求書fieldの抽出](/ja/flexi-capture/cloud/cloud-f-cfor-invoices-extraction)を参照してください。
  </Step>

  <Step title="処理タスクを開始する">
    データ抽出を開始するには、Task.Runメソッドを使用して文書処理タスクを開始します。`verification_type` パラメーターには、`Troubleshooting` または `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"
    ```

    レスポンスには、新しく作成されたタスクの情報が含まれます：

    ```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="タスクのステータスを確認する">
    [Task.Get](/ja/flexi-capture/cloud/cloud-f-cfor-invoices-api-get-task) メソッドを使用して、タスクのステータスを確認できます。詳細については、[主要な請求書 field の抽出](/ja/flexi-capture/cloud/cloud-f-cfor-invoices-extraction)を参照してください。タスクのステータスが `WaitForAction` に変わったら、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="検証 URL を作成する">
    以下の形式で検証 URL を作成します。

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

    ここで、`{cloud-host}` はご利用のリージョンホスト、`{verification_id}` は Task.Get のレスポンスで返される verification 識別子です。例:

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

  <Step title="検証URLを開く">
    ブラウザーで検証 URL を開いてください。
  </Step>

  <Step title="結果をダウンロード">
    タスクのステータスを確認します。タスクのステータスが`Done`になったら、出力ファイルをダウンロードしてタスクを削除できます。詳しくは、[主要な請求書 field の抽出](/ja/flexi-capture/cloud/cloud-f-cfor-invoices-extraction)を参照してください。
  </Step>
</Steps>
