Applies to: Partner Center | Partner Center operated by 21Vianet | Partner Center for Microsoft Cloud for US Government
Gets a commercial marketplace subscription activation link by the order line item number.
In Partner Center, you can do this operation by selecting either a Specific Subscription under Subscription on the main page, or selecting the Go to Publisher's site link next to the subscription to activate on the Subscriptions page.
Prerequisites
Credentials as described in Partner Center authentication. This scenario supports authentication with both standalone App and App+User credentials.
Completed order with product that needs activation.
C#
To get a line item's activation link, use your IAggregatePartner.Customers collection and call the ById() method with the selected customer ID. Then call the Orders property and the ById() method with your specified OrderId. Then, call the LineItems with ById() method with the line item number identifier. Finally, call the ActivationLinks() method.
C#
// IAggregatePartner partnerOperations;// string customerId;// string orderId;// string lineItemNumber// get the activation link for the specific line itemvar partnerOperations.Customers.ById(customerId).Orders.ById(orderId).OrderLineItems.ById(lineItemNumber).ActivationLinks();
If successful, this method returns a collection of Customer resources in the response body.
Response success and error codes
Each response comes with an HTTP status code that indicates success or failure and additional debugging information. Use a network trace tool to read this code, error type, and additional parameters. For the full list, see Error Codes.
El marketplace comercial de Microsoft es un catálogo de servicios y aplicaciones en la nube que contiene ofertas de Microsoft y miles de asociados. En esta ruta de aprendizaje, se le presentarán conceptos que permitirán a su organización prepararse para vender sus productos y servicios en la nube mediante el marketplace comercial.