Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Park from Device

The device-initiated parking workflow is triggered when the user removes the card from Apple Wallet. Since this action is performed directly on the device, it's guaranteed that the device is online.

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

Workflow

Below are the high level steps of the device initiated parking workflow:

  1. Card Removal: The user selects the transit card and taps 'Remove Card' to initiate the removal process.

  2. Unlink Card: Apple notifies D1 Transit platform that the user has removed the transit card from his device. Since it's triggered from device, it is guaranteed that the digital card instance is removed from the device.

Sequence diagram

When the user selects the transit card for removal, Apple initiates a managePass API call to D1 Transit platform with the action unlink. Given the device is guaranteed to be online, the card will be removed from Apple Wallet, so D1 Transit sends a manageDigitalCard(delete) to Transit Issuer.

Last updated

Was this helpful?