Get user preferences
Retrieves the payment channel preference for a specific user. Returns 404 NotFound if no preference is set.
X-Stash-Api-Key<token>
DEPRECATED: API key authentication is no longer supported for new shops. Use HMAC authentication via the x-stash-hmac-signature header instead for the best security. Existing shops may continue using their X-Stash-Api-Key for server-to-server operations, but are encouraged to migrate to HMAC as soon as possible.
In: header
Path Parameters
userIdstring
User ID (external user ID from the game/application)
Response Body
curl -X GET "https://test-api.stash.gg/sdk/server/user_preferences/string"{
"paymentChannel": "UNSPECIFIED"
}{
"code": 0,
"message": "string",
"details": [
{
"@type": "string",
"property1": null,
"property2": null
}
]
}How is this guide?