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.
API key authentication for server-side SDK operations. Used for secure server-to-server communication.
In: header
User information for URL generation
Target destination for the generated URL
"DEFAULT""DEFAULT" | "HOME" | "LOYALTY" | "ROOT" | "STORE" | "DAILY_STREAK"Response Body
curl -X POST "https://test-api.stash.gg/sdk/server/generate_url" \ -H "Content-Type: application/json" \ -d '{}'{
"url": "string"
}{
"code": 0,
"message": "string",
"details": [
{
"@type": "string",
"property1": null,
"property2": null
}
]
}How is this guide?
Generate quick pay URL (server) POST
Generates a quick payment URL for server-side operations. This endpoint is used internally for creating payment links with user information.
Create a subscription change checkout link POST
Creates a checkout link for upgrading an existing subscription to a new plan. Only subscriptions in a `active`, `trialing`, or `cancelled` (still within paid period before expiration) state are eligible for upgrades.