---
title: "POST /providers/Microsoft.Marketplace/privateStores/{privateStoreId}/queryApprovedPlans"
method: POST
path: "/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/queryApprovedPlans"
tags: ["PrivateStores"]
---

# POST /providers/Microsoft.Marketplace/privateStores/{privateStoreId}/queryApprovedPlans

`POST /providers/Microsoft.Marketplace/privateStores/{privateStoreId}/queryApprovedPlans`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/providers/Microsoft.Marketplace/privateStores/{privateStoreId}/queryApprovedPlans`
- Auth: none declared

Get map of plans and related approved subscriptions.

## Path parameters

- `privateStoreId` string, required

## Query parameters

- `api-version` string, required

## Request body

- QueryApprovedPlansPayload: Query approved plans payload
  - `properties` QueryApprovedPlans: Query approved plans details
    - `offerId` string: Offer id
    - `planIds` string[]: Offer plan ids
    - `subscriptionIds` string[]: List of subscription IDs

## Response `200`

Map of plan ids and their related approved subscriptions.

- QueryApprovedPlansResponse: Query approved plans response
  - `details` QueryApprovedPlansDetails[]: A list indicating for each plan which subscriptions are approved. Plan Id is unique
    - `planId` string: Plan id
    - `subscriptionIds` string[]: Approved subscription ids list. In case all subscriptions are approved for a plan, allSubscriptions flag is true and list is empty ( else flag is set to false). In case both subscriptions list is empty and allSubscriptions flag is false, the plan is not approved for any subscription.
    - `allSubscriptions` boolean: Indicates whether all subscriptions are approved for this plan

## Other responses

- `default`: Microsoft.Marketplace error response describing why the operation failed.

## Changes

- **2026-07-13** (2020-01-01) `664e71f176b6`: 1 breaking
  - added the new path request parameter `privateStoreId`
- **2026-07-13** (2020-01-01) `a5f22236a1cf`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/azure/apis/marketplace-microsoft-marketplace-marketplace/changes/providers/Microsoft.Marketplace/privateStores/:privateStoreId/queryApprovedPlans/post.md)

---

[API](https://skmtc.dev/azure/apis/marketplace-microsoft-marketplace-marketplace.md) - [All operations](https://skmtc.dev/azure/apis/marketplace-microsoft-marketplace-marketplace/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/marketplace-microsoft-marketplace-marketplace/revisions/37c9205efbf0?raw)
