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.
X-Stash-Api-Key<token>
API key authentication for server-side SDK operations. Used for secure server-to-server communication.
In: header
Path Parameters
userIdstring
User ID (external user ID from the game/application). Extracted from URL path.
paymentChannelpie.sdk.user_preferences.PaymentChannel
Payment channel preference (STASH_PAY or NATIVE_IAP)
Default
"PAYMENT_CHANNEL_UNSPECIFIED"Value in
"PAYMENT_CHANNEL_UNSPECIFIED" | "STASH_PAY" | "NATIVE_IAP"Response Body
curl -X POST "https://test-api.stash.gg/sdk/server/user_preferences/string" \ -H "Content-Type: application/json" \ -d '{ "paymentChannel": "PAYMENT_CHANNEL_UNSPECIFIED" }'{}{
"code": 0,
"message": "string",
"details": [
{
"@type": "string",
"property1": null,
"property2": null
}
]
}How is this guide?