Applies to: Partner Center | Partner Center operated by 21Vianet | Partner Center for Microsoft Cloud for US Government
This API reactivates an Azure subscription that has been previously canceled. To reactivate more than one subscription, call the API separately to reactivate each subscription.
Partners must be Global Administrators with Admin Agent roles to reactivate.
Prerequisites
Credentials as described in Partner Center authentication. This scenario supports authentication with both standalone App and App+User credentials.
Customer_id
Subscription_id
Entitlement_id
Version
C#
To reactivate an Azure subscription, you'll need to identify your customer ID, subscription ID, and entitlement ID for the Azure subscription you want to reactivate.
If successful, this method returns HTTP Code 202, which indicates that the reactivation of the Azure entitlement of a subscription request has been accepted.
Response success and error codes
Each response comes with an HTTP status code that indicates success or failure and other debugging information. Use a network trace tool to read this code, error type, and other parameters. For the full list, see Partner Center REST error codes.
HTTP Status
HTTP Code
Error code
Description
BadRequest
400
900118
Invalid customer ID.
BadRequest
400
800002
Customer ID {0} should have GUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
BadRequest
400
800002
Subscription ID is required.
BadRequest
400
800002
Entitlement ID is required.
Forbidden
403
900159
The partner with account ID {0} and organization ID {1} has no commerce relationship with the customer with account ID {2} and organization ID {3}.
BadRequest
400
900337
Partner cannot reactivate Azure entitlement with ID {0}.
Forbidden
403
900335
Partner doesn't have required permissions to reactivate Azure entitlement with ID {0}.
This learning path allows you to manage subscription revenue, recurring billing, and multi-element revenue allocation by working with billing schedules.