Skip to main content
Use the Microsoft Store purchase API to grant a free app or add-on to a user’s account. Only free products can be granted directly to a user’s account. Grant attempts for paid products return an error.

Prerequisites

Review Prerequisites for service-to-service APIs. This API only supports the Microsoft Entra ID auth type. If product configuration isn’t published in Partner Center, can succeed but return no results.

Request

Request syntax

Request header

Request body

Request example

Response

Response body

The ClientContext object contains the following parameters. The OrderLineItemV8 object contains the following parameters. The IdentityV8 object contains the following parameters.

Response example

Error codes

Manage products from your services Requesting a User Store ID for service-to-service authentication Renew a Microsoft Store ID key
Last modified on October 20, 2026