Skip to content

Get metered usage per dimension per day

Request

Returns Microsoft's commercial-marketplace Usage report (ISVUsage) for your publisher account, pulled from Partner Center every night together with the Revenue report and returned as ingested.

What a row is. A daily aggregate of metered usage for one subscription and one meter dimension. Microsoft aggregates per distinct combination of the descriptive columns, so one subscription-day-dimension can appear as several rows when plan, price, private offer or anomaly attributes differ. Rows are not individual usage events: there is no UsageEventId or effective hour here. Use it to compare daily totals per dimension (MeteredUsage) against what you reported through the charge endpoint, and as the per-dimension detail behind the SKU-level totals in /financials.

Which id is which. For SaaS custom meters the SaaS subscription id (the one you see in GET /subscriptions and use when charging) is in ReferenceId; Microsoft's MarketplaceSubscriptionId column is the customer's Azure subscription. The subscriptionId filter matches either. MeterId is the Partner Center dimension id you pass as dimensionId when charging.

Filters. All optional. Without filters the call returns your whole history, which for a consumption offer is large; pass subscriptionId and a from/to window (inclusive usage days, ISO 8601). The source only changes nightly, so poll at most once a day. Note that the nightly refresh replaces the table; a request during that window can return fewer rows than the day before.

Security
api_key
Query
subscriptionIdstring

Only rows for this subscription. Matches the SaaS subscription id (referenceId; the id from GET /subscriptions and the charge endpoint) or the customer's Azure subscription id (marketplaceSubscriptionId).

Example:subscriptionId=aa930163-2330-45c2-a17c-dd325f9f2d44
fromstring

First usage day to include, ISO 8601 date or date-time (UTC).

Example:from=2026-08-01
tostring

Last usage day to include, inclusive. A date-time is truncated to its day.

Example:to=2026-08-31
curl -i -X GET \
  'https://apidocs.wetransact.io/_mock/openapi/api/v1.0/usage?subscriptionId=aa930163-2330-45c2-a17c-dd325f9f2d44&from=2026-08-01&to=2026-08-31' \
  -H 'x-api-key: YOUR_API_KEY_HERE'

Responses

Usage lines ordered by usageDate.

Bodyapplication/json
Array [
Idstring, (uuid)

WeTransact's id for this row.

Publisherstring or null

The Partner Center publisher (seller) the row belongs to. Default for single-publisher accounts.

MarketplaceSubscriptionIdstring or null

Microsoft's column of that name: the CUSTOMER'S AZURE subscription id, not the SaaS subscription. For SaaS use referenceId.

MonthStartDatestring or null

First day of the month the usage belongs to. ISO 8601 date-time without offset (Microsoft report dates carry no time zone; treat as UTC dates).

UsageDatestring or null

The day the usage occurred. ISO 8601 date-time without offset (Microsoft report dates carry no time zone; treat as UTC dates).

OfferTypestring or null

SaaS, Azure Application (Managed App), Virtual Machine, ...

Example:"SaaS"
OfferNamestring or null

Marketplace offer display name.

OfferIdstring or null

Marketplace offer id.

SKUstring or null

Plan display name.

PlanIdstring or null

Partner Center plan id.

AzureLicenseTypestring or null

Customer's Azure agreement type: Enterprise, Pay as You Go, Microsoft Customer Agreement, ...

MarketplaceLicenseTypestring or null

Billed through Azure, or Bring Your Own License.

SKUBillingTypestring or null

Usage Based for metered dimensions; Subscription for flat recurring plans.

Example:"Usage Based"
CustomerNamestring or null
CustomerCompanyNamestring or null
CustomerCountrystring or null

ISO 3166-1 alpha-2 country code.

Example:"GB"
CustomerCurrencyCCstring or null

ISO 4217 code of the customer's billing currency (the CC columns).

Example:"GBP"
CustomerIdstring or null
BillingAccountIdstring or null

Microsoft billing account of the customer.

BillingIdstring or null
IsPrivateOfferboolean or null

True when the usage was billed under a private offer.

IsPrivatePlanboolean or null
PrivateOfferIdstring or null
PrivateOfferNamestring or null
IsPreviewSKUboolean or null
IsNewCustomerboolean or null
IsMultisolutionboolean or null
DeploymentMethodstring or null
VMSizestring or null
CoreSizeinteger or null
CloudInstanceNamestring or null
NormalizedUsagenumber or null

VM offers only: usage hours normalised to cores. Mirrors rawUsage for SaaS.

RawUsagenumber or null

Raw metered quantity Microsoft recorded for the dimension on this day.

MeteredUsagenumber or null

Quantity billed to the customer for the dimension on this day (aggregate across that day's usage events), in usageUnit. Compare the daily total with what you reported through the charge endpoint.

UsageUnitstring or null

The dimension's unit.

Example:"transaction"
UsageReferencestring or null

Microsoft's reference for the usage line (charge or adjustment).

ReferenceIdstring or null

For SaaS custom meters: the SaaS subscription id. Same value as marketplaceSubscriptionId in GET /subscriptions and assetId in /financials.

Example:"aa930163-2330-45c2-a17c-dd325f9f2d44"
PriceCCnumber or null

Unit price in the customer's currency.

EstimatedPricePCnumber or null

Unit price converted to your payout currency.

PayoutCurrencyPCstring or null

ISO 4217 code of your payout currency (the PC columns).

Example:"GBP"
EstimatedExtendedChargeCCnumber or null

meteredUsage × priceCC, in the customer's currency.

EstimatedExtendedChargePCnumber or null

meteredUsage × estimatedPricePC, in your payout currency.

ListPriceUSDnumber or null

Public list unit price in USD.

DiscountedPriceUSDnumber or null

Unit price after private-offer or plan discount, USD.

CustomerAdjustmentUSDnumber or null

Adjustments Microsoft applied for the customer, USD.

TrialEndDatestring or null

End of the customer's free trial, if any. ISO 8601 date-time without offset (Microsoft report dates carry no time zone; treat as UTC dates).

PlanTypestring or null
CustomerAccessstring or null
PublisherAccessstring or null
MultiPartyboolean or null

True for multiparty private offers.

ResalePartnerboolean or null
PartnerInfostring or null

Reseller details on multiparty private offers.

MeterIdstring or null

The Partner Center dimension id: the value you pass as dimensionId to the charge endpoint.

Example:"transaction_tier_1"
MeterDimensionstring or null

The dimension's display name in Partner Center.

EstimatedFinancialImpactUSDnumber or null

Microsoft's estimate of the financial impact of a flagged anomaly, USD.

PartnerCenterDetectedAnomalyboolean or null

True when Microsoft flagged this usage as anomalous.

PublisherMarkedAnomalyboolean or null

True when the publisher marked this usage as anomalous in Partner Center.

NewReportedUsagenumber or null

Corrected quantity after an anomaly review, if any.

ActionTakenAtstring or null

When the anomaly action was taken. ISO 8601 date-time without offset (Microsoft report dates carry no time zone; treat as UTC dates).

ActionTakenBystring or null
]
Response
[ { "Id": "8e1c4d2b-7a3f-4b9e-a1c5-3d6f8e9a0b2c", "Publisher": "Default", "MarketplaceSubscriptionId": "0b7e2f7c-3d51-4a8e-9f10-6c2d5e4b3a21", "ReferenceId": "aa930163-2330-45c2-a17c-dd325f9f2d44", "MonthStartDate": "2026-08-01T00:00:00", "UsageDate": "2026-08-14T00:00:00", "OfferType": "SaaS", "OfferName": "Northwind On Demand", "OfferId": "northwind-on-demand", "SKU": "On Demand", "PlanId": "on-demand", "SKUBillingType": "Usage Based", "CustomerCompanyName": "Contoso Ltd", "CustomerCountry": "GB", "CustomerCurrencyCC": "GBP", "MeterId": "transaction_tier_1", "MeterDimension": "Transactions tier 1", "RawUsage": 1250, "MeteredUsage": 1250, "NormalizedUsage": 1250, "UsageUnit": "transaction", "PriceCC": 0.87, "EstimatedPricePC": 0.87, "PayoutCurrencyPC": "GBP", "EstimatedExtendedChargeCC": 1087.5, "EstimatedExtendedChargePC": 1087.5, "ListPriceUSD": 1, "DiscountedPriceUSD": 1, "IsPrivateOffer": false, "PartnerCenterDetectedAnomaly": false, "PublisherMarkedAnomaly": false } ]