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.

Cancelar cuenta de tarjeta

The cancel card account workflow is triggered by Transit Issuer when the card account is cancelled (for example end user closed it)

Once a card account is cancelled, it's not possible to provision digital cards linked to it onto devices anymore.

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

Workflow

This workflow is very similar to Park From Transit Issuer use case.

Below are the high level steps of the cancel card account workflow:

  1. Card Account Cancellation: Transit issuer initiates the cancellation of the user's card account.

  2. Unlink Card: If a digital card linked to the card account is provisioned into a user's device, D1 Transit notifies Apple that it needs to be removed.

  3. Unlink Outcome: Apple sends a notification to D1 Transit with the outcome of the unlink workflow.

Sequence diagram

Card Account Cancellation

The Transit issuer instructs D1 Transit to cancel the specified card account.

If a digital card exists in user's device, D1 Transit will notify Apple server to delete it. Upon receiving a request from D1 Transit to delete card from a device, Apple server will initiate a removal of the associated pass.

After the unlink process is completed on the Apple side, an eventNotification is sent to D1 Transit, providing the outcome of the workflow.

D1 Transit will notify Transit Issuer about the digital card deletion outcome.

Error Scenarios

Unlink Failed

If unlink is unsuccessful, Apple informs D1 Transit via an eventNotification with the eventType parameter set to lifeCycleOutcomeFailure. The Transit Issuer can attempt to retry the process.

Device Offline

As the request is not device-initiated, there is no certainty that the device will be online. In such cases, the request to delete the card may never reach the device.

No notification from Apple

If D1 Transit platform does not receive an eventNotification within a defined timeout period after the managePass request, a getStatus request will be sent to verify the state of the provisioning bundle.

  • If the response indicates an active state, unlink is incomplete. D1 platform notifies the Transit Issuer.

  • If the response header contains an HTTP 404 status code, it confirms that the card has been successfully deleted and no longer exists on Apple servers, i.e. unlink was successful.

In both cases, it should not be possible to provision the card anymore.

Delayed Event Notification request from Apple

If D1 Transit platform receives an eventNotification from Apple after the predefined timeout period (e.g. the device comes back online after an extended period), D1 Transit deletes the digital card from its system and notifies the Transit Issuer that the unlink was successful.

Última actualización

¿Te fue útil?