共用方式為


Partner Center samples

Applies to: Partner Center | Partner Center operated by 21Vianet | Partner Center for Microsoft Cloud for US Government

To help you get up and running quickly with the Partner Center APIs, we provide a sample program, C# managed code snippets, and REST sample requests and responses.

The Partner Center Java SDK can be used to manage Partner Center resources. It's an open-source project maintained by the partner community and not officially supported by Microsoft. You can get help from the community or open an issue on GitHub if you experience a problem.

The Partner Center PowerShell module can be used to manage Partner Center resources. It's an open-source project maintained by the partner community and not officially supported by Microsoft. You can get help from the community or open an issue on GitHub if you experience a problem.

Sample Details
Code snippets For pointers and .NET, Java, and PowerShell code snippets that show how to use the Partner Center managed API to manage customer accounts, get analytics, place orders, manage billing and subscriptions, provide support, and manage accounts and profiles, see Scenarios.
REST samples For sample requests and responses that show how to use the Partner Center REST API to manage customer accounts, get analytics, place orders, manage billing and subscriptions, provide support, and manage accounts and profiles, see Scenarios.
Console test app This app is available in C# and Java, it provides code and some error handling for all of the scenarios listed in the scenarios section.
Store web site This application shows how to build a web store based on the catalog of offers available to Cloud Solution Provider partners. Customers can create a store account and order software subscriptions through your site.

Get the code:
Download the sample code

What to configure before release:

- Authentication: App ID & secret
- Branding: logo and company name
- Welcome message
- Offers, including descriptions and prices. The app assumes that the list prices include any applicable taxes. Alternatively, you can add more logic to calculate tax during checkout.
- Payment information: provide your own credit card options, PayPal, or other payment types. Before you configure this part, read the guide Nonpayment, fraud, or misuse.