Applies To: Partner Center | Partner Center operated by 21Vianet | Partner Center for Microsoft Cloud for US Government
Appropriate roles
Admin agent
These methods support both traditional and new commerce source subscriptions.
Note
The new commerce experiences for license-based services includes many new capabilities and are available to all Cloud Solution Provider (CSPs). For more information, see new commerce experiences overview.
Used to upgrade a customer's new commerce subscription to a target subscription or convert an NCE trial to a paid subscription. In order to transition a subscription, two API requests need to be made. First GET eligible transitions to get the SKUs available for upgrade. Then POST transition to execute the transition.
Get transition eligibilities
Returns a list of eligible transitions for a given customer, subscription and requested type. Also returns destination subscription upgrade eligibility. Transition eligibilities may include offers that are in the EndofSaleWithConversions state.
Prerequisites
Credentials as described in Partner Center authentication. This scenario supports authentication with both standalone App and App+User credentials.
A customer ID (customer-tenant-id). If you don't know the customer's ID, you can look it up in Partner Center by selecting the Customers workspace, then the customer from the customer list, then Account. On the customer's Account page, look for the Microsoft ID in the Customer Account Info section. The Microsoft ID is the same as the customer ID (customer-tenant-id).
A subscription ID for the initial subscription.
GDAP roles
You'll need at least one of the following GDAP roles:
Directory Reader
Global Reader
Note
While this API is available for legacy and NCE, GDAP is only required for legacy.
If successful, this method returns a list of the eligible transitions for the given subscription in the response body.
Response success and error codes
Each response comes with an HTTP status code that indicates success or failure and more debugging information. Use a network trace tool to read this code, error type, and other parameters. For the full list, see Error Codes.
Eligibility errors
Error descriptions and meaning.
Error description
Meaning
Subscription can't be Transitioned - source subscription isn't active.
Original sub status not Active
Subscription can't be Transitioned - source subscription isn't provisioned yet.
Original sub FulfillmentState isn't successful
Transition type isn't compatible - AzureAD subscription mapping is required.
LegacyCannotConvertSubscriptionId error when calling GetSubscriptionUpgradeConflicts
Transition type isn't compatible - conflicting subscriptions for license transfer exist.
If any Microsoft Entra service has subscription IDs from a different subscription, add it to the conflict list (includes purchases made with either legacy or modern purchase flow)
Subscription eligibility errors
If a destination subscription isn't eligible to be upgraded to, one of the following reasons will be returned.
Empty lists will be returned if the source subscription is a trial or if the eligibilityType is specified as Scheduled. You can only transition into an existing subscription with an immediate (also known as "midterm") transition, not a scheduled change.
Error description
Error code
Subscription is not active.
SubscriptionNotActive = 1
Subscription is within cancellation window.
SubscriptionInCancellationWindow = 2
Subscription term duration is shorter than the source subscription's term duration.
Posts a transition request for a given customer and subscription. Returns the transition with its initial status.
Prerequisites
Credentials as described in Partner Center authentication. This scenario supports authentication with both standalone App and App+User credentials.
A customer ID (customer-tenant-id). If you don't know the customer's ID, you can look it up in Partner Center by selecting the Customers workspace, then the customer from the customer list, then Account. On the customer's Account page, look for the Microsoft ID in the Customer Account Info section. The Microsoft ID is the same as the customer ID (customer-tenant-id).
A subscription ID for the initial subscription.
GDAP roles
You'll need at least one of the following GDAP roles:
Directory Reader or Global reader (transition only)
Directory Writer (transition with license transfer)
Note
While this API is available for legacy and NCE, GDAP is only required for legacy.
If successful, this method returns a Transition resource with its initial status.
Response success and error codes
Each response comes with an HTTP status code that indicates success or failure and more debugging information. Use a network trace tool to read this code, error type, and other parameters. For the full list, see Error Codes.
Improve business processes for customer service functions, such as automatic case creation and queue management with Microsoft Dynamics 365 Customer Service.