Skip to main content

The C3 API lets you read and automate your C3 data from your own systems: billing periods, invoice line items, active customers, plans and offers, license consumption, product history (last 90 days), Azure consumption and, for distributors, reseller data.

​Get access

The API uses the OAuth 2.0 client credentials flow through Microsoft Entra ID. Ask the C3 team for access. They send you, offline:

  • a client_id and client secret,
  • the scope and resource,
  • your partner-specific API URL ({apiUrl} below).

They also provision an API user in your instance. Keep the secret in a secure store; never put it in client-side code.

​Make your first call

Request a token from https://login.microsoftonline.com/{tenantID}/oauth2/token, then send it as a bearer token:

curl -X POST "https://login.microsoftonline.com/{tenantID}/oauth2/token" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials" \
  -d "client_id={clientId}" \
  -d "client_secret={clientSecret}" \
  -d "scope={scope}" \
  -d "resource={resource}"

Replace the values in braces with the ones the C3 team gave you. The token response holds access_token, which you use as {accessToken}.

​Test Partner Center connectivity

GET {apiUrl}/api/PartnerConsent/testPartnerCenterConnectivity checks that C3 can reach Partner Center. The error ERROR_DESC_MS_FAILED_TO_GET_PARTNER_PROFILE points to a consent, configuration or connectivity problem; redo consent under Settings > Providers.

Connectivity-test APIs need the API user to have the Finance Admin role.

​Postman collection

Ask the C3 team for the Postman collection. It has every endpoint ready to try with your credentials.

Was this page helpful?