0% found this document useful (0 votes)
63 views

Go To WOBO Page, Input The Seller ID. Use This Link To: Calling API and CMM API

This document provides instructions for calling the API and CMM API to retrieve order and customer data from the Partner Center dashboard. It is a multi-step process that involves: 1) Accessing the dashboard as a specific seller and navigating to the Commercial Marketplace tab. 2) Extracting URLs from the developer tools that retrieve the relevant data. 3) Editing the URLs and using them to call the public API via Postman. 4) If needed, collecting a correlation ID and using it to find a CMM API URL in App Insights, then calling that API in Postman.

Uploaded by

Ankit Karwa
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views

Go To WOBO Page, Input The Seller ID. Use This Link To: Calling API and CMM API

This document provides instructions for calling the API and CMM API to retrieve order and customer data from the Partner Center dashboard. It is a multi-step process that involves: 1) Accessing the dashboard as a specific seller and navigating to the Commercial Marketplace tab. 2) Extracting URLs from the developer tools that retrieve the relevant data. 3) Editing the URLs and using them to call the public API via Postman. 4) If needed, collecting a correlation ID and using it to find a CMM API URL in App Insights, then calling that API in Postman.

Uploaded by

Ankit Karwa
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Calling API and CMM API

1.Calling API

Step 1 : Go to WOBO Page, input the Seller ID.

Use this link to https://partner.microsoft.com/en-us/dashboard/Account/WorkOnBehalfOf

After you input Seller ID, User ID will be populated, then press Save.

Then you get to select ‘Go to Dashboard’.


Check the flights that are applied, which can be toggled on the top left of the page, Make sure
‘Azure_ISV’ is marked. Apply flights.

Now as you can see, you will have a option ‘Commercial Marketplace’ tab on left Panel. Once you
click on ‘Commercial Marketplace’ -> Go to Analyze Tab -> Select any one of option from the drop
down (Summary, Orders, Customers, Downloads).

Step 2: Extracting URLs

On this Page, Click F12, which will give developers details of the page. As shown on this page, please
press ‘Ctrl+R’ to refresh the data. Which will help trigger the URL that provides the Information.
Once you refresh the logs, it give you multiple resources of the page, select a resource which is most
relevant to the information shown on the page. (Example : Orders, Customer., etc)

Pick one of the URL which is relevant to the data like (Groupby, Startdate, Orderby ,. Etc) ,Copy the
URL from the developer page.

Here for Example :


https://partner.microsoft.com/dashboard/azureisv/analyticsapi/order?groupby=customerId&orde
rby=orderCount&measures=orderCount&startDate=2018-12-03&endDate=2019-05-08
Step 3 : Creating of Link to put in Postman, Now go to the Public API link which is as below. Public
API

https://api.partnercenter.microsoft.com/partner/v1/analytics/isv/<controller>

Now Edit the Public API Link, where <controller> is replaced with the URL extracted.

Here for example: From the extracted URL, only this part is selected where it has ‘?’ and keyword
‘Order’. (Keyword may vary depending on your selection).
order?groupby=customerId&orderby=orderCount&measures=orderCount&startDate=2018-12-
03&endDate=2019-05-08

So the New Edited Link will be :

https://api.partnercenter.microsoft.com/partner/v1/analytics/isv/order?groupby=customerId&orde
rby=orderCount&measures=orderCount&startDate=2018-12-03&endDate=2019-05-08

Step 4 : Now the Link which is the resultant of step 3 is used in Postman Tool.

Paste the link in the Postman Tool, Also we need to extract Bearer Token for the Authorization, You
can login to PartnerCenter and get the token from the logged in (WOBO'ed) user by doing the
following

https://partner.microsoft.com/diagnostics

Keep the token copied on clipboard in order to use it in Postman.


Now Enter the Link and the Bearer Token with the ‘DevCenterAppAudienceToken’

Press on Send, to get the results.

You can now Evaluate the data and make sure the data is present and reflected in the API.

Postman Tool will provide us data that is used for UI also data which is extracted from the Database.

*If the data is not shown here, then we need to call CCM API.
2.Calling CCM API:

Continuing the API calling, In order to start calling CCM API,

Step 1: we need to collect Correlation ID from the Developers Page of Partner Centre.

Copy the MS-Correlation ID, and then go to App-Insights.

App-insights can be accessed on this


https://ms.portal.azure.com/#@microsoft.onmicrosoft.com/resource/subscriptions/f0d3c57f-9229-
4496-8149-
796d4d49fed3/resourceGroups/AnalyticsApiResourceGroup/providers/microsoft.insights/compone
nts/AnalyticsAPIEAP/searchV1

Step 2 : Enter the Correlation Id in the App-insights, you will get the results like below.
The Result will show the Logs in the selected time period.

Select the result.

Now Select the result where you see ‘RequestURI’ :

This will fetch you the Link which we need.


Copy the Link to the Clipboard. (Make sure you don’t copy ‘, cv’ which is also appended to link when
opened)

Here for Example the link is :


https://partners.azure.com/publisher/isvtestuklegacy/Providers/Microsoft.Partners/orders?api_vers
ion=2018-11-05&date_range=2018-12-03..2019-05-08&billingAccountID=0277260b-1b3b-510c-
4e07-9e69eed22203&measures=AssetCount&groupBy=offerName

Step 3: CMM API is called using this link, Now using Postman we can verify data from this link
similar way. By pasting the link into Postman and Authorizing it with Bearer Token.

You might also like