Skip to main content
This article describes how to renew a User Store ID key. When you generate a User Store ID key, it has a lifetime of 30 days. Within that period, the key can authenticate calls to Microsoft Store services. You can renew it before expiration to generate a new key for the same Microsoft Entra app client ID and user identity.

Prerequisites

To renew a User Store ID key, you need the following keys/tokens: For more information, see Requesting a User Store ID for service-to-service authentication.

Request

Request syntax

Request header

Request body

Request example

Response

Response body

Response example

Error codes

Reference API documentation

See also

Commerce (overview) Manage products from your services Requesting a User Store ID for service-to-service authentication Requesting a User Store ID from your service with X-tokens or OAuth 2.0 Authenticating your service with the Microsoft Store APIs Microsoft.StoreServices library (GitHub) Microsoft.StoreServices sample (GitHub) XStore (API reference)
Last modified on August 6, 2026