> 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/implement-apple-transit/account-based-ticketing-abt/transaction-notification.md).

# Transaction Notification

Notifications are triggered by Transit Issuer so the travel events can be displayed within the wallet. In case, the transit card supports retail purchases, the purchases can also be notified.

This section provides an overview of the workflow, including detailed steps, sequence diagrams, and potential error scenarios.

### Workflow <a href="#workflow" id="workflow"></a>

Below are the high level steps of the message notification workflow:

1. **Notification initiation** : The Transit Issuer instructs D1 Transit to send transaction notification to a targeted digital card.
2. **Device notification**: D1 Transit uses APNS in order to send a push notification to the right device.
3. **Transaction Details retrieval**: Device connects to D1 Transit platform in order to retrieve the transaction details.

### Sequence Diagram <a href="#sequence-diagram" id="sequence-diagram"></a>

#### Notification initiation <a href="#notification-initiation" id="notification-initiation"></a>

The Transit issuer instructs D1 Transit to send transaction notification to the specified digital card using handleEvent API.

#### Device notification and Transaction Details retrieval <a href="#device-notification-and-transaction-details-retrieval" id="device-notification-and-transaction-details-retrieval"></a>

D1 Transit platform uses APNS to send a push notification to the device. The device connects to D1 Transit in order to retrieve the transaction details which D1 Transit pulls from Transit Issuer.

**Error Scenarios**

**Device is offline**

If the device is offline, the request to notify the transaction details is queued and will be sent to the device as soon as it reconnects.

<figure><img src="/files/up8meogaojFpP9OlHHn5" 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/implement-apple-transit/account-based-ticketing-abt/transaction-notification.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.
