Skip to content

WeTransact Platform API (1.0)

Manage your Microsoft commercial-marketplace business programmatically: read the subscriptions customers have bought, report metered usage, and reconcile what Microsoft recorded and paid.

Authentication

Every request needs your API key in an x-api-key header. Generate one under Settings in your WeTransact portal and store it securely; it is shown once.

GET /api/v1.0/subscriptions HTTP/1.1
Host: <yoursubdomain>.wetransact.io
x-api-key: YOUR_API_KEY

A missing or unknown key returns 401. See Getting started for the full setup, and the Metering integration guide if you bill on usage.

What you can do

AreaEndpointsUse it for
SubscriptionsGET /subscriptions, GET /subscriptions/{subscriptionId}, activate, rejectread what customers bought, with their plans and metered dimensions; drive the fulfilment lifecycle
Usage reportingPOST /subscriptions/{subscriptionId}/actions/chargereport metered usage to Microsoft. This is a billing action: an accepted charge lands on the customer's Azure bill
ReconciliationGET /usage, GET /financialswhat Microsoft actually metered, per dimension per day, and the revenue and payout lines behind it
ProductsGET /products, GET /products/{productId}, GET /products/bypartnercenterofferid/{partnerCenterOfferId}your listings, plans and pricing
Leads and dealsGET /marketplaceleads, GET /dealregistration/findcompanymarketplace leads and deal-registration lookups

Conventions

  • Versioning. Every path is prefixed /api/v1.0.
  • Response casing. Response bodies use PascalCase property names (MarketplaceSubscriptionId, Success). Error bodies returned before any record exists use lower-case message and retryable.
  • Times. ISO 8601, UTC. Dates that come from Microsoft's reports carry no time zone and should be read as UTC dates.
  • Identifiers. dimensionId on the charge endpoint is the Partner Center dimension id, the same value GET /subscriptions?includeMeters=true returns as MeterId.

Rate limits

  • Reads: 10 requests per 60 seconds per client. Cache where you can.
  • Charges: 10 in flight at once, 5 more may queue; beyond that you get 429. Retry later with the same effectiveStartTime.

Reporting usage safely

Microsoft accepts one usage event per subscription, dimension and hour, and so does this API. Send effectiveStartTime explicitly and reuse the same value when retrying: you get 200 if it landed now, or 409 if it had already landed, never a double charge. Every error body tells you whether a retry is safe. The Metering integration guide walks through the whole flow, including a sandbox you can exercise without touching a real customer's bill.

Download OpenAPI description
Overview
Languages
Servers
Mock server
https://apidocs.wetransact.io/_mock/openapi
WeTransact Publisher API Base URL
https://<yoursubdomain>.wetransact.io