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

# ベンダーを作成

> 銀行情報や税務情報を含むベンダーのリストを、ABBYY FlexiCapture for Invoices Cloud API の Create vendor POST メソッドを使用してデータセットに追加します。

ベンダーのリストを作成します。ベンダーとは、請求書を発行する会社です。ベンダーは、請求書の言語に加えて、数値、日付、金額の書式も選択します。

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

```http theme={null}
POST https://api-{location-id}.flexicapture.com/v2/dataset/vendors
```

`{location-id}` を[サポート対象のロケーション](/ja/flexi-capture/cloud/cloud-f-cfor-invoices-api#icaas-supported-countries)に置き換えます。

<div id="request-body">
  ## リクエスト本文
</div>

リクエスト本文は、以下の構造になっています。

```json theme={null}
{
  "region": "US",
  "vendors": [
    {
      "external_id": "string",
      "business_unit_id": "string",
      "name": [
        "string"
      ],
      "street": [
        "string"
      ],
      "city": [
        "string"
      ],
      "state": [
        "string"
      ],
      "zip": [
        "string"
      ],
      "country_code": "string",
      "vat": [
        "string"
      ],
      "national_vat": [
        "string"
      ],
      "iban": [
        "string"
      ],
      "bank_account": [
        "string"
      ],
      "bank_code": [
        "string"
      ],
      "gl_code": [
        "string"
      ]
    }
  ]
}
```

| Field   | 型                                | 説明          |
| ------- | -------------------------------- | ----------- |
| `model` | body, object(CreateVendorsModel) | 必須。ベンダーの一覧。 |

<div id="createvendorsmodel">
  ### CreateVendorsModel
</div>

| Field       | 型                   | 説明                                                                |
| ----------- | ------------------- | ----------------------------------------------------------------- |
| `region`    | string              | 必須。ベンダーの地域。対応地域: `US`: USA、`AU`: オーストラリア、`EU`: 欧州連合加盟国、`CA`: カナダ。 |
| `vendors[]` | object(VendorModel) | 必須。ベンダーのリスト。                                                      |

<div id="vendormodel">
  ### VendorModel
</div>

| Field              | 型      | 説明                             |
| ------------------ | ------ | ------------------------------ |
| `external_id`      | string | 必須。外部ベンダー ID。                  |
| `business_unit_id` | string | 必須。ビジネス ユニット ID。               |
| `name[]`           | string | 必須。ベンダー名。                      |
| `street[]`         | string | 任意。ベンダーの住所。                    |
| `city[]`           | string | 任意。ベンダーの市区町村。                  |
| `state[]`          | string | 任意。ベンダーの州。                     |
| `zip[]`            | string | 任意。ベンダーの郵便番号。                  |
| `country_code`     | string | 必須。ISO 3166-1 alpha-2 形式の国コード。 |
| `vat[]`            | string | 任意。納税者 ID。                     |
| `national_vat[]`   | string | 任意。国内納税者 ID。                   |
| `iban[]`           | string | 任意。国際銀行口座番号。                   |
| `bank_account[]`   | string | 任意。銀行口座 ID。                    |
| `bank_code[]`      | string | 任意。銀行コード。                      |
| `gl_code[]`        | string | 任意。総勘定元帳コード。                   |

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

成功すると、サーバーは HTTP ステータス `204 No Content` を返します。
