> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/transaction-control/ja/implement-transaction-control/implement-domain-controls.md). Agents can also search and read this documentation through its [MCP server](https://docs.payments.thalescloud.io/~gitbook/mcp).

# ドメイン制御を実装する

## 概要

Transaction Control サービスでは、カードのドメイン制御を適用および更新できます。

次を使用します **D1 API** または **D1 SDK** して、次を行います:

* 認可時にカードのドメイン制御を確認します。
* カードのドメイン制御をリアルタイムで更新します。

### オーソリゼーション中に発生すること

オーソリゼーション中、D1 はカードに設定されたドメイン制御を評価します。いずれかのチェックに失敗すると、D1 は次でオーソリゼーションを拒否します `DOMAIN_CONTROL_FAIL`.

* 参照 [すべてのカード承認オペレーションを取得](https://docs.payments.thalescloud.io/transaction-control/ja/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/card-api.md#get-v2-issuers-issuerid-cards-cardid-authorisations-operations).
* 参照 [カード承認オペレーションの通知](https://docs.payments.thalescloud.io/transaction-control/ja/integrate-the-d1-api/d1-api-reference/outbound-api-from-d1/card-api.md#post-notifications-d1-v2-issuers-issuerid-authorisations).

エンドユーザー体験を向上させるには、次へのリアルタイム通知を設定します: **イシュアアプリケーション** (アプリ内) および/または **イシュアのバックエンド**.

### サポートされているドメイン制御 <a href="#domain-control-list" id="domain-control-list"></a>

D1 はカードに対して次のドメイン制御をサポートしています:

| 制御名           | 説明                 | プロパティタイプ | 任意  |
| ------------- | ------------------ | -------- | --- |
| **オンライン決済**   | Eコマース決済（カード非提示）    | ブール値     | いいえ |
| **マグストライプ**   | マグストライプ取引          | ブール値     | はい  |
| **引き出し**      | 現金引き出し             | ブール値     | はい  |
| **非接触**       | 非接触取引              | ブール値     | はい  |
| **海外決済**      | 越境決済               | ブール値     | いいえ |
| **国別地域**      | 選択した国でのみ決済を許可      | 国一覧      | いいえ |
| **地域別**       | 選択した地域でのみ決済を許可     | 地域一覧     | いいえ |
| **通貨**        | 選択した通貨での決済をブロック    | 通貨一覧     | いいえ |
| **アダルト加盟店**   | アダルト加盟店カテゴリをブロック   | ブール値     | いいえ |
| **ギャンブル加盟店**  | ギャンブル加盟店カテゴリをブロック  | ブール値     | いいえ |
| **リスクの高い加盟店** | リスクの高い加盟店カテゴリをブロック | ブール値     | いいえ |

### 必須制御と任意制御

次のようにマークされた制御 **任意 = いいえ** は Card Product で定義する必要があります。

次のようにマークされた制御 **任意 = はい** はサポートされていますが、任意です。Card Product で定義しない場合、後でカードレベルで更新することはできません。

### 加盟店カテゴリグループ

D1 は次に既定の構成を提供します [加盟店カテゴリグループ - 既定の構成](https://docs.payments.thalescloud.io/transaction-control/ja/implement-transaction-control/implement-domain-controls/default-merchant-types.md).

イシュアは次を再定義できます: **ギャンブル**, **アダルト**、および **リスクの高い** グループを、 **Thales Delivery Team**.

## ユーザー体験

<figure><img src="https://2324381009-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmPuatDdrQt7vDstf0NP%2Fuploads%2F9hPGvGjJUqNlsIZBNmfG%2FUX%20-%20Card%20limits.svg?alt=media&amp;token=be1687b8-302f-491f-b95d-8d388246a1d6" alt=""><figcaption><p>ドメイン制御のエンドユーザー体験の例。</p></figcaption></figure>

## フロー

ドメイン制御は Card Product から継承されます。次を使用して取得および更新します。 **D1 Backend API** または **D1 SDK**.

管理できるのは、Card Product で有効になっているドメイン制御のみです。

### D1 Backend API で制御を管理 <a href="#using-d1-backend-api" id="using-d1-backend-api"></a>

D1 API を使用して、イシュアバックエンドからカードのドメイン制御を管理します。

#### 現在の設定を取得

<figure><img src="https://2324381009-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmPuatDdrQt7vDstf0NP%2Fuploads%2F0ZiDhrYpb33rQVHzrS4A%2FFlow%20-%20Retrieve%20current%20settings.svg?alt=media&amp;token=02ea71df-a74a-4045-9173-6026de335228" alt=""><figcaption><p>現在のドメイン制御設定を取得します（イシュアバックエンド）。</p></figcaption></figure>

使用 [カード設定を取得](https://docs.payments.thalescloud.io/transaction-control/ja/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/card-api.md#get-v2-issuers-issuerid-cards-cardid-settings) で現在のドメイン制御設定を取得します。

#### 設定を更新

<figure><img src="https://2324381009-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmPuatDdrQt7vDstf0NP%2Fuploads%2FqFu1eoxZOygYx2SO8pRW%2FFlow%20-%20Update%20settings.svg?alt=media&amp;token=faa7af3f-c06a-41aa-ad53-f5b4d14df207" alt=""><figcaption><p>ドメイン制御設定を更新します（イシュアバックエンド）。</p></figcaption></figure>

使用 [カード制御設定を更新](https://docs.payments.thalescloud.io/transaction-control/ja/integrate-the-d1-api/d1-api-reference/inbound-api-to-d1/card-api.md#patch-v2-issuers-issuerid-cards-cardid-controls) で制御設定を更新します。

### D1 SDK で制御を管理 <a href="#using-d1-sdk" id="using-d1-sdk"></a>

エンドユーザーは、D1 SDK を使用してイシュアアプリケーションからカード制御を表示および更新できます。参照 [アプリ内カード制御](https://docs.payments.thalescloud.io/transaction-control/ja/implement-transaction-control/implement-domain-controls/manage-in-app-card-controls.md).

#### 現在の設定を取得

<figure><img src="https://2324381009-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmPuatDdrQt7vDstf0NP%2Fuploads%2FMQoMu6Pa3Wzqd7baqE7B%2FFlow%20-%20Retrieve%20current%20settings%20-2.svg?alt=media&amp;token=dbd6b2ef-1d47-416a-aaaf-c591400b624a" alt=""><figcaption><p>現在のドメイン制御設定を取得します（イシュアアプリケーション）。</p></figcaption></figure>

#### 設定を更新

<figure><img src="https://2324381009-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHmPuatDdrQt7vDstf0NP%2Fuploads%2FiMqHapxXfTDuTuMMqwYx%2FFlow%20-%20Update%20spending%20limits.svg?alt=media&amp;token=9c688a29-3690-4318-a48c-5443d7624c8b" alt=""><figcaption><p>ドメイン制御設定を更新します（イシュアアプリケーション）。</p></figcaption></figure>

## セットアップ

Card Product で既定のドメイン制御を定義します。

カードは、D1 で作成または登録されると、これらのドメイン制御を継承します。

Card Product で任意の制御を定義しない場合、後でカードレベルでその制御を更新することはできません。

#### 地域別

参照 [サポートされている地域](#domain-control-list) サポートされている地域と、それに関連付けられた国について。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.payments.thalescloud.io/transaction-control/ja/implement-transaction-control/implement-domain-controls.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
