> 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/transit-digitization/ja/apple-transit-no/kdobsunochikettingucbt/raifusaikuru/apurettodtawomiru.md).

# アプレットデータを読み取る

Read Applet Data ユースケースは、バックオフィスがアプレットデータの最終既知状態を読み取る必要がある場合に、Transit イシュアによってトリガーされることがあります。

このセクションでは、ワークフローの概要、詳細な手順、シーケンス図、および想定されるエラーシナリオを提供します。

### ワークフロー <a href="#workflow" id="workflow"></a>

以下は、Read Applet Data ワークフローの上位レベルの手順です:

1. **Read Applet Data セッションのトリガー**: Transit イシュアがアプレットデータの読み取りを開始します。
2. **Read Applet Data の実行**: D1 Transit は APNS を介してデバイスに対し、Transit イシュアのコマンドを実行するために D1 Transit プラットフォームに接続する必要があることを通知します。

### シーケンス図 <a href="#sequence-diagram" id="sequence-diagram"></a>

#### Read Applet Data セッションのトリガー <a href="#read-applet-data-session-triggering" id="read-applet-data-session-triggering"></a>

Transit イシュアは handleEvent を通じて D1 Transit に対し、デジタルカードアプレットデータを読み取るために対象デバイスとのセッションを開始するよう指示します。

#### Read Applet Data の実行 <a href="#read-applet-data-execution" id="read-applet-data-execution"></a>

デバイスがオンラインになると、保留中のコマンドを取得するリクエストで D1 Transit サーバーに接続します。D1 Transit は **getDigitalCardBundleCommands** を Transit イシュアに送信して、デバイス側で返され実行されるべきコマンドを取得します。

読み取りセッションを完了するために、複数の往復が発生する場合があります。

読み取りセッションの終了時に、D1 Transit は Transit イシュアに対して retrieve bundle data の通知を送信します。

**エラーシナリオ**

**デバイスオフライン**

このリクエストはデバイス発信ではないため、デバイスがオンラインである確証はありません。そのような場合、アプレットデータの読み取り要求がデバイスに届かない可能性があります。

<figure><img src="/files/2179343ddbd283a1f92e9feaa93400d853b00da2" alt=""><figcaption></figcaption></figure>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.payments.thalescloud.io/transit-digitization/ja/apple-transit-no/kdobsunochikettingucbt/raifusaikuru/apurettodtawomiru.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
