Skip to content

Commit d2af50f

Browse files
authored
Merge pull request #30873 from basma-msft/patch-1
Fixed webhook response
2 parents 4ad456a + 2e769ad commit d2af50f

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

articles/marketplace/cloud-partner-portal/saas-app/cpp-saas-fulfillment-api-v2.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Resolves the opaque token to a SaaS subscription.<br>
114114
```json
115115
Response body:
116116
{
117-
"subscriptionId": "<guid>",
117+
"id": "<guid>",
118118
"subscriptionName": "Contoso Cloud Solution",
119119
"offerId": "offer1",
120120
"planId": "silver",
@@ -365,8 +365,7 @@ Internal Server Error<br>
365365

366366
```json
367367
{
368-
"planId": "gold",
369-
"quantity": ""
368+
"planId": "gold"
370369
}
371370
```
372371

@@ -450,6 +449,9 @@ Bad request- Validation failures.
450449
Code: 403<br>
451450
Unauthorized. The auth token wasn't provided, is invalid, or the request is attempting to access an acquisition that doesn’t belong to the current publisher.
452451

452+
Code: 409<br>
453+
Another operation is in progress on the resource. Wait for pending operations to complete then try again.
454+
453455
Code: 500<br>
454456
Internal Server Error
455457

@@ -516,6 +518,9 @@ Bad request- Validation failures.
516518
Code: 403<br>
517519
Unauthorized. The auth token wasn't provided, is invalid, or the request is attempting to access an acquisition that doesn’t belong to the current publisher.
518520

521+
Code: 409<br>
522+
Another operation is in progress on the resource. Wait for pending operations to complete then try again.
523+
519524
Code: 500<br>
520525
Internal Server Error
521526

@@ -545,7 +550,6 @@ Unsubscribe and delete the specified subscription.
545550

546551
| | |
547552
| --------------- | --------------- |
548-
| Content-Type | `application/json` |
549553
| x-ms-requestid | A unique string value for tracking the request from the client, preferably a GUID. If this value isn't provided, one will be generated and provided in the response headers. |
550554
| x-ms-correlationid | A unique string value for operation on the client. This parameter correlates all events from client operation with events on the server side. If this value isn't provided, one will be generated and provided in the response headers. |
551555
| authorization | [Get JSON web token (JWT) bearer token.](https://docs.microsoft.com/azure/marketplace/cloud-partner-portal/saas-app/cpp-saas-registration#get-a-token-based-on-the-azure-ad-app) |
@@ -780,15 +784,16 @@ The publisher must implement a webhook in this SaaS service to proactively notif
780784

781785
```json
782786
{
783-
"operationId": "<guid>",
784-
"activityId": "<guid>",
785-
"subscriptionId":"<guid>",
786-
"offerId": "offer1",
787-
"publisherId": "contoso",
788-
"planId": "silver",
789-
"quantity": "20" ,
790-
"action": "Subscribe",
791-
"timeStamp": "2018-12-01T00:00:00"
787+
"id": "<this is a Guid operation id, you can call operations API with this to get status>",
788+
"activityId": "<this is a Guid correlation id>",
789+
"subscriptionId": "<Guid to uniquely identify this resource>",
790+
"publisherId": "<this is the publisher’s name>",
791+
"offerId": "<this is the offer name>",
792+
"planId": "<this is the plan id>",
793+
"quantity": "<the number of seats, will be null if not per-seat saas offer>",
794+
"timeStamp": "2019-04-15T20:17:31.7350641Z",
795+
"action": "Unsubscribe",
796+
"status": "NotStarted"
792797
}
793798

794799
Where action can be one of these:
@@ -798,6 +803,14 @@ Where action can be one of these:
798803
ChangeQuantity, (When the change quantity operation has completed),
799804
Suspend, (When resource has been suspended)
800805
Reinstate, (When resource has been reinstated after suspension)
806+
807+
808+
Where status can be one of these:
809+
NotStarted,
810+
InProgress,
811+
Succeeded,
812+
Failed,
813+
Conflict
801814
```
802815

803816

0 commit comments

Comments
 (0)