Skip to content

๐Ÿ’ฐ Charge

For offers with custom dimensions (i.e., usage-based pricing), POST /api/v1.0/subscriptions/{subscriptionId}/actions/charge?dimensionId=...&quantity=...&effectiveStartTime=... reports usage, which leads to the customer being billed through Microsoft. dimensionId is the Partner Center dimension id; GET /subscriptions?includeMeters=true returns it as MeterId (and PartnerCenterMeterId) on each meter. effectiveStartTime is optional (ISO 8601 UTC, defaults to now) and names the usage hour being reported; it must not be in the future or older than 24 hours.

Behind the scenes: WeTransact relays these charges to the Microsoft Commercial Marketplace Metering API โ€” and those charges end up directly on the customer's invoice.