Microsoft Azure Commerce API

The Commerce API from Microsoft Azure, for commerce.

GitHub OpenAPI

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /providers/Microsoft.Commerce.Admin/operations List Commerce Admin REST operations · Microsoft Azure Get Providers Microsoft Commerce Admin Operations #
Ask an LLM
“What operations does the Azure Stack Commerce Admin provider support?”
“Is there a list of available Commerce Admin API actions?”
Tell an agent
List the supported Commerce Admin operations.
Show every REST operation the Commerce Admin provider exposes in API version {apiVersion}.
GET /subscriptions/{subscriptionId}/providers/Microsoft.Commerce.Admin/subscriberUsageAggregates Get subscriber usage aggregates for a period · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Commerce… #
Ask an LLM
“How can I pull usage data reported by my tenants' subscriptions for a time window?”
“Can I get subscriber usage aggregated hourly or daily?”
Tell an agent
Get subscriber usage for subscription {subscriptionId} from {reportedStartTime} to {reportedEndTime}.
Show {aggregationGranularity} usage for subscriber {subscriberId} between {reportedStartTime} and {reportedEndTime}.
POST /subscriptions/{subscriptionId}/providers/Microsoft.Commerce.Admin/updateEncryption Update Commerce Admin encryption · Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft Commerce… #
Ask an LLM
“Can I trigger an encryption update for Commerce Admin data?”
“What does updating encryption on the Commerce Admin provider do?”
Tell an agent
Update the Commerce Admin encryption for subscription {subscriptionId}.
Refresh commerce data encryption in subscription {subscriptionId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-commerce-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-commerce-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2015-06-01-preview
  title: Microsoft Azure CommerceManagementClient Commerce API
  description: The Admin Commerce Management Client.
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Commerce
paths:
  /providers/Microsoft.Commerce.Admin/operations:
    get:
      x-ms-examples:
        Returns the list of supported REST operations.:
          $ref: ./examples/Operations/List.json
      description: Returns the list of supported REST operations.
      tags:
      - Commerce
      operationId: microsoftAzureOperationsList
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationList'
        default:
          description: Default Response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExtendedErrorInfo'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Providers Microsoft Commerce Admin Operations
  /subscriptions/{subscriptionId}/providers/Microsoft.Commerce.Admin/subscriberUsageAggregates:
    get:
      x-ms-examples:
        Gets a collection of SubscriberUsageAggregates, which are UsageAggregates from users.:
          $ref: ./examples/SubscriberUsageAggregates/List.json
      description: Gets a collection of SubscriberUsageAggregates, which are UsageAggregates from users.
      tags:
      - Commerce
      operationId: microsoftAzureSubscriberusageaggregatesList
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/ReportedStartTimeParameter'
      - $ref: '#/components/parameters/ReportedEndTimeParameter'
      - $ref: '#/components/parameters/AggregationGranularityParameter'
      - $ref: '#/components/parameters/TenantSubscriptionIdParameter'
      - $ref: '#/components/parameters/ContinuationTokenParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageAggregatePage'
        default:
          description: Default Response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExtendedErrorInfo'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Commerce…
  /subscriptions/{subscriptionId}/providers/Microsoft.Commerce.Admin/updateEncryption:
    post:
      x-ms-examples:
        Update the encryption.:
          $ref: ./examples/Commerce/UpdateEncryption.json
      description: Update the encryption.
      tags:
      - Commerce
      operationId: microsoftAzureCommerceUpdateencryption
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
        default:
          description: Default Response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExtendedErrorInfo'
      summary: Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft Commerce…
components:
  parameters:
    ContinuationTokenParameter:
      description: The continuation token.
      name: continuationToken
      in: query
      required: false
      x-ms-parameter-location: method
      schema:
        type: string
    AggregationGranularityParameter:
      description: The aggregation granularity.
      name: aggregationGranularity
      in: query
      required: false
      x-ms-parameter-location: method
      schema:
        type: string
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: Subscription credentials which uniquely identify Microsoft Azure subscription.The subscription ID forms part of the URI for every service call.
      required: true
      schema:
        type: string
    ReportedStartTimeParameter:
      description: The reported start time (inclusive).
      name: reportedStartTime
      in: query
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        format: date-time
    ApiVersionParameter:
      name: api-version
      in: query
      description: Client API Version.
      required: true
      schema:
        type: string
        default: 2015-06-01-preview
    ReportedEndTimeParameter:
      description: The reported end time (exclusive).
      name: reportedEndTime
      in: query
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        format: date-time
    TenantSubscriptionIdParameter:
      description: The tenant subscription identifier.
      name: subscriberId
      in: query
      required: false
      x-ms-parameter-location: method
      schema:
        type: string
  schemas:
    UsageAggregatePage:
      description: Pageable list of usage aggregates
      properties:
        value:
          description: List of usage aggregates.
          type: array
          items:
            $ref: '#/components/schemas/UsageAggregate'
        nextLink:
          type: string
          description: URI to the next page.
    UsageAggregateModel:
      description: Properties for aggregate usage.
      type: object
      properties:
        subscriptionId:
          type: string
          description: Subscription ID of tenant using plan.
        usageStartTime:
          type: string
          format: date-time
          description: UTC start time for the usage category to which this usage aggregate belongs.
        usageEndTime:
          type: string
          format: date-time
          description: UTC end time for the usage category to which this usage aggregate belongs.
        instanceData:
          description: Key-value pairs of instance details represented as a string.
          type: string
        quantity:
          description: The amount of the resource consumption that occurred in this time frame.
          type: number
          format: double
        meterId:
          description: Unique ID for the resource that was consumed, for example, the Resource ID.
          type: string
    OperationList:
      description: List of Operations
      properties:
        value:
          description: Array of operations
          type: array
          items:
            $ref: '#/components/schemas/Operation'
          x-ms-identifiers:
          - name
        nextLink:
          description: URI to the next page of operations.
          type: string
    ErrorDefinition:
      type: object
      description: Error definition.
      properties:
        code:
          description: Service specific error code which serves as the substatus for the HTTP error code.
          type: string
          readOnly: true
        message:
          description: Description of the error.
          type: string
          readOnly: true
        details:
          description: Internal error details.
          type: array
          items:
            $ref: '#/components/schemas/ErrorDefinition'
          x-ms-identifiers: []
          readOnly: true
    Display:
      description: Contains the localized display information for this particular operation / action.
      properties:
        provider:
          description: The localized friendly form of the resource provider name – it is expected to also include the publisher/company responsible. It should use Title Casing and begin with "Microsoft" for 1st party services. e.g. "Microsoft Monitoring Insights" or "Microsoft Compute."
          type: string
          readOnly: true
        resource:
          description: The localized, friendly version of the resource type related to this action or operation; the resource type should match the public documentation for the resource provider.
          type: string
          readOnly: true
        operation:
          description: The localized, friendly name for the operation. Use the name as it will displayed to the user.
          type: string
          readOnly: true
        description:
          description: The localized, friendly description for the operation. The description will be displayed to the user. It should be thorough and concise for used in both tooltips and detailed views.
          type: string
          readOnly: true
    UsageAggregate:
      description: Aggregate usage values for resource.
      type: object
      properties:
        properties:
          x-ms-client-flatten: true
          description: Properties for aggregate usage.
          $ref: '#/components/schemas/UsageAggregateModel'
      allOf:
      - $ref: '#/components/schemas/Resource'
    Operation:
      description: Describes the supported REST operation.
      type: object
      properties:
        display:
          description: Contains the localized display information for this particular operation or action.
          $ref: '#/components/schemas/Display'
          readOnly: true
        isDataAction:
          description: Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.
          type: boolean
          readOnly: true
        name:
          description: The name of the operation performed on the object. The name should match the action name that appears in RBAC or the event service.
          type: string
          readOnly: true
        origin:
          description: Origin for the operation.
          type: string
          readOnly: true
    ExtendedErrorInfo:
      type: object
      description: Error response.
      properties:
        error:
          $ref: '#/components/schemas/ErrorDefinition'
          description: The error details.
    Resource:
      description: Base Resource Object
      type: object
      properties:
        id:
          readOnly: true
          description: URI of the resource.
          type: string
        name:
          readOnly: true
          description: Name of the resource.
          type: string
        type:
          readOnly: true
          description: Type of resource.
          type: string
        location:
          readOnly: true
          description: Location where resource is location.
          type: string
        tags:
          readOnly: true
          description: List of key-value pairs.
          type: object
          additionalProperties:
            type: string
      x-ms-azure-resource: true
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Authorization uses an Azure Active Directory OAuth2 flow.
x-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/azsadmin/resource-manager/commerce/Microsoft.Commerce.Admin/preview/2015-06-01-preview/Commerce.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)