Stash API

Explore Stash API Endpoints

Generate loyalty URL

Generates a loyalty URL for the authenticated user. This URL provides access to the user's loyalty program and rewards.

Approve custom login

Used to approve custom login requests using JWT authentication (For exampe Apple ID, Google or other JWT based login providers). This is a server-side endpoint and should not be called from the client.

Approve Apple Game Center login

Approves authentication using Apple Game Center. Validates the player's Game Center credentials and logs in the user into the webshop.

Approve Facebook login

Approves authentication using Facebook. Validates the player's Facebook credentials and logs in the user into the webshop.

Approve Google Play login

Approves authentication using Google Play Games. Validates the player's Google Play credentials and logs in the user into the webshop.

Generate loyalty URL

Generates a loyalty URL for the authenticated user. This URL provides access to the user's loyalty program and rewards.

Save authentication tokens temporarily

Allows game backends to save access and refresh tokens temporarily, returning a short code challenge that can be passed via launcher deeplinks.

Link

Link Apple Game Center

Link Google Play

Generate quick pay URL (server)

Generates a quick payment URL for server-side operations. This endpoint is used internally for creating payment links with user information.

Force Logout user

Logs out a user by invalidating their session. This endpoint is typically called when a user signs out of the game or switches to another account.

Generate authenticated URL

Generates an authenticated URL for a specific target (home or loyalty) for a user. This endpoint is used for server-side URL generation.

Get payment event by ID

Retrieves payment details by ID. Returns information about items, pricing, and payment status. This is a server-side endpoint and should not be called from the client.

Get user preferences

Retrieves the payment channel preference for a specific user. Returns 404 NotFound if no preference is set.

Set user preferences

Creates or updates the payment channel preference for a user. This is a server-side endpoint and should not be called from the client.

How is this guide?