メインコンテンツへスキップ
検証では、データが正しく認識され、ルールでエラーが返されていないことを確認します。検証は人間のオペレーターが行います。 ABBYY FlexiCapture for Invoices Cloud では、検証オペレーターをデータ検証および検証 UI に誘導するための固有の URL が提供されます。検証 UI では、ABBYY FlexiCapture Web Verification Station と同じ機能を利用できます (詳細は About the Web Verification Station を参照してください) 。 タスクの検証 UI を開くには、次の手順に従います。
  1. authorization ヘッダーを取得します。
  2. ファイルをサーバーにアップロードします。
詳細については、請求書の主要フィールドの抽出セクションを参照してください。
  1. Task.Run メソッドを使用して文書処理タスクを開始し、データ抽出を始めます。verification_type パラメーターには ‘Troubleshooting’ または ‘UserVerification’ を指定します。
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
{“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}
  1. Task.Get メソッドを使用してタスクのステータスを確認します。詳細については、請求書の主要フィールドの抽出セクションを参照してください。
タスクのステータスが WaitForAction に変わったら、検証 UI を開くことができます。
{“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}
  1. 次の形式で検証 URL を作成します。
https://{cloud-host}/verification/{verification_id} ここで、{cloud-host} は使用しているリージョンのホスト、{verification_id} は Task.Get メソッドのレスポンスで取得した検証 ID です。
  1. ブラウザーで検証 URL を開きます。
  2. タスクのステータスを確認します。タスクのステータスが Done に変わったら、出力ファイルをダウンロードしてタスクを削除できます。
詳しくは、請求書の主要フィールドの抽出 セクションを参照してください。