> 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/akauntobsunochikettinguabt/toranzakushon.md).

# トランザクション通知

通知はTransit イシュアによってトリガーされ、ウォレット内に旅行イベントを表示できるようにします。トランジットカードが小売での購入に対応している場合は、購入も通知されることがあります。

このセクションでは、詳細な手順、シーケンス図、および潜在的なエラーシナリオを含むワークフローの概要を提供します。

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

以下はメッセージ通知ワークフローのハイレベルな手順です：

1. **通知の開始** : Transit イシュアがD1 Transitに対して、対象のデジタルカードへ取引通知を送信するよう指示します。
2. **デバイス通知**: D1 Transitは適切なデバイスにプッシュ通知を送信するためにAPNSを使用します。
3. **取引詳細の取得**: デバイスは取引詳細を取得するためにD1 Transitプラットフォームに接続します。

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

#### 通知の開始 <a href="#notification-initiation" id="notification-initiation"></a>

Transit イシュアはhandleEvent APIを使用して、指定されたデジタルカードに取引通知を送信するようD1 Transitに指示します。

#### デバイス通知と取引詳細の取得 <a href="#device-notification-and-transaction-details-retrieval" id="device-notification-and-transaction-details-retrieval"></a>

D1 TransitプラットフォームはAPNSを使用してデバイスにプッシュ通知を送信します。デバイスは取引詳細を取得するためにD1 Transitに接続し、D1 Transitはそれらの詳細をTransit イシュアから取得します。

**エラーシナリオ**

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

デバイスがオフラインの場合、取引詳細を通知するリクエストはキューに入れられ、再接続され次第デバイスに送信されます。

<figure><img src="/files/c548dc2d6062536085ab6b495a062373a49ad590" 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/akauntobsunochikettinguabt/toranzakushon.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.
