Hero Banner

Microsoft AppSource and Azure Marketplace

Learn how to grow your business by publishing your cloud solution on Microsoft AppSource and Azure Marketplace

Reply
Visitor 1

Subscriptions resolution call on Mock API failing - Trying to get started with a 1st SaaS offering

When calling the Mock API with:

https://marketplaceapi.microsoft.com/api/saas/subscriptions?api-version=2018-09-15

I get:

Error:400
The HTTP resource that matches the request URI 'https://marketplaceapi.microsoft.com/api/saas/subscriptions?api-version=2018-09-15' does not support the API version '2018-09-15'

I got the same error using 

api-version=2018-08-31

I believe I have a valid JWT for the call, but not a valid "x-ms-marketplace-token", since the offering is not yet published.

 

Questions:

1. Why is this call failing (even with the Mock API)?

2. How can I test the API calls with a "x-ms-marketplace-token" prior to publishing?

3. I published in "Preview" mode today, but don't see it in the market place.  Why not?

4. How to test the Marketplace/Service interactions without actually making SaaS purchases

1 REPLY 1
Highlighted
Microsoft

Re: Subscriptions resolution call on Mock API failing - Trying to get started with a 1st SaaS offering

Hi jmclaughlin, 

 

Great questions!  Let me respond:

 

1. Why is this call failing (even with the Mock API)?

[Patrick]  The Mock API does not need authentication. If you want to test this, I would recomend you create a SaaS offer, and setup a  $0 Dollars Private Plan. Add your tenanant ID for testing this plan. 

 

These are the code samples that you can use to create the  Customer provisioning and the client libraries: 

 

Marketplace SaaS offer sample

 Sample solution demonstrating Azure Marketplace SaaS offer integration and implementation of a common off-line provisioning scenario

https://aka.ms/marketplacesample

Marketplace SaaS offer sample video

 Description of the sample, and scenario

https://aka.ms/marketplacesamplevideo

Marketplace fulfillment API sample SDK

 A sample SDK for the marketplace fulfillment API

https://aka.ms/marketplacesamplesdk

 

You can also check the last part of this Ignite presentation, the Demo exmplains the registration workflow and the code samples: https://myignite.techcommunity.microsoft.com/sessions/87366?source=sessions 

 

2. How can I test the API calls with a "x-ms-marketplace-token" prior to publishing?

[Patrick]  You will need to create a SaaS Offer with a Private Plan that will make the offer only availabe to the tentants ID assigned to that Private Plan 

 

3. I published in "Preview" mode today, but don't see it in the market place.  Why not?

[Patrick]  Yes, becuase preview of an offer is only visible for previewing the offer before making it public, as a way for Publishers to review their offers before they go live. YOu can define the Tenant ID that you want to make this offer visible here:

 

Preview OfferPreview Offer

 

4. How to test the Marketplace/Service interactions without actually making SaaS purchases

[Patrick]   I would recomend you create a SaaS offer, and setup a  $0 Dollars Private Plan. Add your tenanant ID for testing this plan. 

 

I hope this helps!

 

Thanks, 

 

Patrick