メインコンテンツへスキップ
請求書取り込みタスクを実行します。リクエストでは複数のファイルを指定できます。 お使いの任意のアプリケーションを使用して文書を処理できます。文書処理アプリケーションを変更するには、タスクの実行時に、適切なアプリケーション識別子とトークンに基づく Authentication ヘッダー を使用します。 ABBYY FlexiCapture for Invoices Cloud は、さまざまな国で発行された請求書を処理でき、幅広い言語にも対応しています。詳細については、Specification セクションを参照してください。各アプリケーションには、請求先の事業部門の国が識別されると適用される、事前定義の処理ルール、キーワード、その他の国固有の設定が用意されています。
受け取る予定の請求書に応じて、正しい地域を指定してください。適切な言語を使用すると、認識精度が大幅に向上します。

HTTP リクエスト

POST https://api-{location-id}.flexicapture.com/v2/task/capture/invoices
{location-id}サポート対象のロケーションに置き換えてください。

リクエスト本文

リクエスト本文のデータ構造は次のとおりです。
{
  "files": [
    {
      "id": "string",
      "token": "string"
    }
  ],
  "properties": {
    "region": "US",
    "export_format": "Xls",
    "verification_type": "NoVerification"
  }
}
field説明
files[]object必須。処理するファイルのリスト。
files[].idstring必須。file.Upload メソッドのレスポンスで返されたファイル ID。
files[].tokenstring必須。file.Upload メソッドのレスポンスで返されたファイルアクセス トークン。
regionstring必須。請求書のリージョン。サポートされているリージョン: US: USA、AU: オーストラリア、EU: 欧州連合諸国、CA: カナダ。
export_formatstring必須。出力ファイル形式。使用可能な形式は、Specification セクションに一覧表示されています。
verification_typestring必須。検証タイプ。使用可能なタイプ: NoVerification — ドキュメントは常に検証なしで処理されます。Troubleshooting — 不確かな文字やエラーがある場合に、ドキュメントは検証に送られます。UserVerification — ドキュメントは常に検証に送られます。

レスポンス

成功した場合、レスポンス本文には CaptureTask のインスタンスが含まれます。
{
  "id": "string",
  "number": "string",
  "verification_id": "string",
  "type": "ic",
  "properties": {
    "property_name": "string"
  },
  "email": "string",
  "account": "string",
  "application": "string",
  "created": "YYYY-MM-DDT00:00:00.000",
  "started": "YYYY-MM-DDT00:00:00.000",
  "action_required": "YYYY-MM-DDT00:00:00.000",
  "billed": "YYYY-MM-DDT00:00:00.000",
  "delivered": "YYYY-MM-DDT00:00:00.000",
  "deleted": "YYYY-MM-DDT00:00:00.000",
  "progress": 0,
  "status": "Submitted",
  "is_deleted": true,
  "is_demo": true,
  "is_billed": true,
  "documents_count": 0,
  "pages_count": 0,
  "documents": [
    {
      "files": {},
      "data": {},
      "is_moved": true
    }
  ]
}

CaptureTask

field説明
idstring必須。一意のタスクID。
numberstring必須。タスク番号。
verification_idstring必須。このIDは、https://{cloud-host}/verification/{verification_id} の検証ページを開くために使用されます。
typestring必須。タスクタイプ。サポートされるタイプ: ic: 請求書取り込み、dc: 文書取り込み。
propertiesobject任意。処理設定またはカスタム登録パラメーター。名前と値のペアをいくつでも指定できます。
emailstring必須。タスクの作成に使用されたメールアドレス。
accountstring必須。タスクの作成に使用されたアカウントID。
applicationstring必須。タスクの作成に使用されたアプリケーションID。
createdstring ($date-time)必須。タスクの作成日。
startedstring ($date-time)任意。タスクの開始日。
action_requiredstring ($date-time)任意。タスクが WaitForAction ステータスになった日付。
billedstring ($date-time)任意。タスクの請求日。
deliveredstring ($date-time)任意。タスクの完了日。
deletedstring ($date-time)任意。データの削除日。
progressnumber ($double)必須。タスク全体の進捗。
statusstring必須。タスクのステータス。サポートされるステータス: SubmittedInProgressWaitForActionDoneFailedCanceled
is_deletedboolean必須。タスクデータが削除されたかどうかを示します。
is_demoboolean必須。タスクがデモアプリケーションで作成されたかどうかを示します。
is_billedboolean必須。タスクが請求対象となったかどうかを示します。
documents_countinteger ($int32)任意。タスク内のドキュメント数。
pages_countinteger ($int32)任意。タスク内のページ数。
documents[]object (DataCaptureDocumentModel)必須。タスク内のドキュメント。

DataCaptureDocumentModel

field説明
filesobject (DataCaptureFileLinkModel)必須。ドキュメントにリンクされたファイルの一覧。
datastring省略可能。文書データ。
is_movedboolean必須。検証中にドキュメントが削除されたかどうかを指定します。

DataCaptureFileLinkModel

field説明
idstring必須。ファイル ID。
tokenstring必須。ファイルアクセストークン。
namestring必須。ファイル名。