Skip to content

Commit 75d226a

Browse files
author
Qian Wen
committed
webhook changes re-entered
1 parent 5baa695 commit 75d226a

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

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

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ The resolve endpoint enables the publisher to resolve a marketplace token to a p
105105

106106
| | |
107107
| --------------- | --------------- |
108-
| Content-Type | `application/json` |
109108
| x-ms-requestid | Unique string value for tracking the request from the client, preferably a GUID. If this value is not provided, one will be generated and provided in the response headers. |
110109
| x-ms-correlationid | 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 is not provided, one will be generated and provided in the response headers. |
111110
| 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) |
@@ -784,15 +783,16 @@ The publisher must implement a webhook in this SaaS service to proactively notif
784783

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

@@ -802,7 +802,15 @@ Where action can be one of these:
802802
- `ChangePlan` (When the change plan operation has completed)
803803
- `ChangeQuantity` (When the change quantity operation has completed)
804804
- `Suspend` (When the resource has been suspended)
805-
- `Reinstate` (When resource has been reinstated after suspension)
805+
- `Reinstate` (When resource has been reinstated after suspension)
806+
- `Renew` (When a resource subscription is renewed)
807+
808+
Where status can be one of these:
809+
NotStarted,
810+
InProgress,
811+
Succeeded,
812+
Failed,
813+
Conflict
806814

807815

808816
## Mock API

0 commit comments

Comments
 (0)