- authorization ヘッダーを取得します。
- ファイルをサーバーにアップロードします。
- Task.Run メソッドを使用して文書処理タスクを開始し、データ抽出を始めます。verification_type パラメーターには ‘Troubleshooting’ または ‘UserVerification’ を指定します。
リクエスト例
リクエスト例
レスポンス例
レスポンス例
{“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}
- Task.Get メソッドを使用してタスクのステータスを確認します。詳細については、請求書の主要フィールドの抽出セクションを参照してください。
レスポンス例
レスポンス例
{“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}
- 次の形式で検証 URL を作成します。
- ブラウザーで検証 URL を開きます。
- タスクのステータスを確認します。タスクのステータスが Done に変わったら、出力ファイルをダウンロードしてタスクを削除できます。
