Skip to main content
In this use case, a user receives an invitation to share access to another user’s account or service (represented in Storefront Gateway by Account, Subscription, and Feature entitlement entities), but they explicitly decline the invitation.

Initial Request

The invitee clicks the invitation link, which then redirects them back to a dedicated landing page in your application. Your client takes the action token value directly from the redirect URL, and calls the Session Token API with the token value as a URL parameter. This initializes the Process:

Response: Accept or Decline

Storefront Gateway responds with a prompt for the user to explicitly accept or decline the invitation:

Final Request: User Declines

The user explicitly declines, and your client passes this choice back to the Process through the Process Step API:

Process Complete

The Process removes the associations to the service(s) previously created when the invitation to share was performed. The Process ends, and returns a 200 HTTP status:
The current user is not authenticated, whether they are an existing Storefront Gateway User or not.