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

# Get

> FlexiCapture for Invoices Cloud API の v2/task GET メソッドを使用して、タスクIDによってタスク情報を取得し、ステータスと進行状況を含む CaptureTask を返します。

タスクIDを指定して、タスク情報を取得します。

このメソッドを使用すると、タスクの開始時に受け取った識別子を使用して、タスクのステータスを確認できます。

<div id="http-request">
  ## HTTP リクエスト
</div>

```http theme={null}
GET https://api-{location-id}.flexicapture.com/v2/task/{id}
```

`{location-id}` は、ご使用の[サポートされているロケーション](/ja/flexi-capture/cloud/cloud-f-cfor-invoices-api#icaas-supported-countries)に置き換えてください。

<div id="path-parameters">
  ## パス パラメーター
</div>

| パラメーター | 型            | 説明        |
| ------ | ------------ | --------- |
| `id`   | path, string | 必須。タスクID。 |

<div id="response">
  ## レスポンス
</div>

成功した場合、レスポンスの本文には `CaptureTask` のインスタンスが含まれます。

```json theme={null}
{
  "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
    }
  ]
}
```

<div id="capturetask">
  ### CaptureTask
</div>

| field             | 型                                 | 説明                                                                                                 |
| ----------------- | --------------------------------- | -------------------------------------------------------------------------------------------------- |
| `id`              | string                            | 必須。一意のタスクID。                                                                                       |
| `number`          | string                            | 必須。タスク番号。                                                                                          |
| `verification_id` | string                            | 必須。このIDは、verification ページ (`https://{cloud-host}/verification/{verification_id}`) を開くために使用されます。    |
| `type`            | string                            | 必須。タスクタイプ。サポートされる型: `ic`: 請求書取り込み、`dc`: ドキュメント取り込み。                                                |
| `properties`      | object                            | 任意。処理設定またはカスタム登録パラメーター。名前と値のペアを任意の数だけ指定できます。                                                       |
| `email`           | string                            | 必須。タスクの作成に使用したメールアドレス。                                                                             |
| `account`         | string                            | 必須。タスクの作成に使用したアカウントID。                                                                             |
| `application`     | string                            | 必須。タスクの作成に使用したアプリケーションID。                                                                          |
| `created`         | string (\$date-time)              | 必須。タスクの作成日。                                                                                        |
| `started`         | string (\$date-time)              | 任意。タスクの開始日。                                                                                        |
| `action_required` | string (\$date-time)              | 任意。タスクが `WaitForAction` ステータスになった日付。                                                               |
| `billed`          | string (\$date-time)              | 任意。タスクの請求日。                                                                                        |
| `delivered`       | string (\$date-time)              | 任意。タスクの完了日。                                                                                        |
| `deleted`         | string (\$date-time)              | 任意。データの削除日。                                                                                        |
| `progress`        | number (\$double)                 | 必須。タスク全体の進捗。                                                                                       |
| `status`          | string                            | 必須。タスクのステータス。使用可能なステータス: `Submitted`, `InProgress`, `WaitForAction`, `Done`, `Failed`, `Canceled`。 |
| `is_deleted`      | boolean                           | 必須。タスクデータが削除されたかどうかを示します。                                                                          |
| `is_demo`         | boolean                           | 必須。タスクがデモアプリケーションで作成されたかどうかを示します。                                                                  |
| `is_billed`       | boolean                           | 必須。タスクが請求済みかどうかを示します。                                                                              |
| `documents_count` | integer (\$int32)                 | 任意。タスク内のドキュメント数。                                                                                   |
| `pages_count`     | integer (\$int32)                 | 任意。タスク内のページ数。                                                                                      |
| `documents[]`     | object (DataCaptureDocumentModel) | 必須。タスク内のドキュメント。                                                                                    |

<div id="datacapturedocumentmodel">
  ### DataCaptureDocumentModel
</div>

| field      | 型                                 | 説明                                 |
| ---------- | --------------------------------- | ---------------------------------- |
| `files`    | object (DataCaptureFileLinkModel) | 必須。ドキュメントにリンクされているファイルのリスト。        |
| `data`     | string                            | 任意。ドキュメントのデータ。                     |
| `is_moved` | boolean                           | 必須。Verification中にドキュメントが削除されたかどうか。 |

<div id="datacapturefilelinkmodel">
  ### DataCaptureFileLinkModel
</div>

| field   | 型      | 説明                |
| ------- | ------ | ----------------- |
| `id`    | string | 必須。ファイル ID。       |
| `token` | string | 必須。ファイルのアクセストークン。 |
| `name`  | string | 必須。ファイル名。         |
