Skip to content

Commit 2552c1d

Browse files
authored
fixed webhook response
1 parent 0614c1a commit 2552c1d

File tree

1 file changed

+28
-13
lines changed

1 file changed

+28
-13
lines changed

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

Lines changed: 28 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

@@ -780,15 +785,16 @@ The publisher must implement a webhook in this SaaS service to proactively notif
780785

781786
```json
782787
{
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"
788+
"id": "<this is a Guid operation id, you can call operations API with this to get status>",
789+
"activityId": "<this is a Guid correlation id>",
790+
"subscriptionId": "<Guid to uniquely identify this resource>",
791+
"publisherId": "<this is the publisher’s name>",
792+
"offerId": "<this is the offer name>",
793+
"planId": "<this is the plan id>",
794+
"quantity": "<the number of seats, will be null if not per-seat saas offer>",
795+
"timeStamp": "2019-04-15T20:17:31.7350641Z",
796+
"action": "Unsubscribe",
797+
"status": "NotStarted"
792798
}
793799

794800
Where action can be one of these:
@@ -797,7 +803,16 @@ Where action can be one of these:
797803
ChangePlan, (When the change plan operation has completed)
798804
ChangeQuantity, (When the change quantity operation has completed),
799805
Suspend, (When resource has been suspended)
800-
Reinstate, (When resource has been reinstated after suspension)
806+
Reinstate, (When resource has been reinstated after suspension),
807+
Renew (When a resource subscription is renewed)
808+
809+
810+
Where status can be one of these:
811+
NotStarted,
812+
InProgress,
813+
Succeeded,
814+
Failed,
815+
Conflict
801816
```
802817

803818

0 commit comments

Comments
 (0)