Get the user's token in the mini app, forward it to your backend
ft.getUserInfo and read res.userInfo.token — the token for the signed-in Shoppingate user (see User info).How your backend proves who it is to Shoppingate, and how it knows which user is using your Mini App. There are two parts: your server is identified by your Mini App's Vendor API Key on every call, and each user is identified once, by verifying the token your Mini App gets from ft.getUserInfo.
Every server-to-server call is authenticated with a per-mini-app Vendor API Key plus the X-Mini-App-Id header. Get the key from the merchant portal → your mini app → API keys. Rotate anytime; the previous key stays valid for 24 hours to give you a clean cutover.
# Every request carries these two headers X-Vendor-Api-Key: sg_live_v2_<your-key> X-Mini-App-Id: 42
The API key above authenticates your server to Shoppingate. To identify the user in front of the mini app, follow this three-step flow — the mini app reads the user's token from ft.getUserInfo, your backend verifies it against the platform, and from there you mint your own session token.
ft.getUserInfo and read res.userInfo.token — the token for the signed-in Shoppingate user (see User info).POST /s2s/v1/identity/verify with the same token (see Endpoints).