Skip to content

Commit d95e769

Browse files
author
Qian Wen
committed
updating webhook content in two files pc and cpp
1 parent 3e1ee4c commit d95e769

File tree

2 files changed

+39
-30
lines changed

2 files changed

+39
-30
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -798,21 +798,21 @@ The publisher must implement a webhook in this SaaS service to proactively notif
798798
```
799799

800800
Where action can be one of these:
801-
- `Subscribe` (When the resource has been activated)
802-
- `Unsubscribe` (When the resource has been deleted)
803-
- `ChangePlan` (When the change plan operation has completed)
804-
- `ChangeQuantity` (When the change quantity operation has completed)
805-
- `Suspend` (When the resource has been suspended)
806-
- `Reinstate` (When resource has been reinstated after suspension)
807-
- `Renew` (When a resource subscription is renewed)
801+
- `Subscribe`, (When the resource has been activated)
802+
- `Unsubscribe`, (When the resource has been deleted)
803+
- `ChangePlan`, (When the change plan operation has completed)
804+
- `ChangeQuantity`, (When the change quantity operation has completed),
805+
- `Suspend`, (When resource has been suspended)
806+
- `Reinstate`, (When resource has been reinstated after suspension)
808807

809808
Where status can be one of these: <br>
810-
NotStarted, <br>
811-
InProgress, <br>
812-
Succeeded, <br>
813-
Failed, <br>
814-
Conflict <br>
809+
- NotStarted, <br>
810+
- InProgress, <br>
811+
- Succeeded, <br>
812+
- Failed, <br>
813+
- Conflict <br>
815814

815+
Actionable statuses are Succeeded and Failed in a webhook notification. An operation's lifecycle is from NotStarted to a terminal state like Succeeded/Failed/Conflict. If you receive Not started or in progress, please continue to request the status via GET operation API until the operation reaches a terminal state before taking any action.
816816

817817
## Mock API
818818

articles/marketplace/partner-center-portal/pc-saas-fulfillment-api-v2.md

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -778,26 +778,35 @@ The publisher must implement a webhook in this SaaS service to proactively notif
778778

779779
```json
780780
{
781-
"operationId": "<guid>",
782-
"activityId": "<guid>",
783-
"subscriptionId":"<guid>",
784-
"offerId": "offer1",
785-
"publisherId": "contoso",
786-
"planId": "silver",
787-
"quantity": "20" ,
788-
"action": "Subscribe",
789-
"timeStamp": "2018-12-01T00:00:00"
781+
"id": "<this is a Guid operation id, you can call operations API with this to get status>",
782+
"activityId": "<this is a Guid correlation id>",
783+
"subscriptionId": "<Guid to uniquely identify this resource>",
784+
"publisherId": "<this is the publisher’s name>",
785+
"offerId": "<this is the offer name>",
786+
"planId": "<this is the plan id>",
787+
"quantity": "<the number of seats, will be null if not per-seat saas offer>",
788+
"timeStamp": "2019-04-15T20:17:31.7350641Z",
789+
"action": "Unsubscribe",
790+
"status": "NotStarted"
791+
790792
}
791793
```
792-
793-
Where action can be one of the following:
794-
- `Subscribe` (When the resource has been activated)
795-
- `Unsubscribe` (When the resource has been deleted)
796-
- `ChangePlan` (When the change plan operation has completed)
797-
- `ChangeQuantity` (When the change quantity operation has completed)
798-
- `Suspend` (When the resource has been suspended)
799-
- `Reinstate` (When resource has been reinstated after suspension)
800-
794+
Where action can be one of these:
795+
- `Subscribe`, (When the resource has been activated)
796+
- `Unsubscribe`, (When the resource has been deleted)
797+
- `ChangePlan`, (When the change plan operation has completed)
798+
- `ChangeQuantity`, (When the change quantity operation has completed),
799+
- `Suspend`, (When resource has been suspended)
800+
- `Reinstate`, (When resource has been reinstated after suspension)
801+
802+
Where status can be one of these: <br>
803+
- NotStarted, <br>
804+
- InProgress, <br>
805+
- Succeeded, <br>
806+
- Failed, <br>
807+
- Conflict <br>
808+
809+
Actionable statuses are Succeeded and Failed in a webhook notification. An operation's lifecycle is from NotStarted to a terminal state like Succeeded/Failed/Conflict. If you receive Not started or in progress, please continue to request the status via GET operation API until the operation reaches a terminal state before taking any action.
801810

802811
## Mock API
803812

0 commit comments

Comments
 (0)