Back in stock (CustomerSubscription)
Request Parameters:
Retrieve the information of customer subscriptions.
URL: ../Api/Client/BackInStockSubscriptionsList
Header:
Content-Type:application/json
Required Parameters : CustomerGUID, StoreId
Resource Strings : Plugins.XcellenceIT.WebApiClient.Message.NoBackInStockSubscription
Case-1. Exception Response :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"",
"StoreId": "",
"LanguageId": "1",
"PageNumber": null
}
Response :
{
"Status": 0,
"Message": "Request cannot be empty",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}
Case-2. Success Response :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"LanguageId": "1",
"PageNumber": null
}
Response :
{
"Status": 1,
"Message": "Success",
"Data": {
"Subscriptions": [
{
"ProductId": 1,
"ProductName": "Build your own computer",
"SeName": "build-your-own-computer",
"Id": 3,
"CustomProperties": {}
}
],
"PagerModel": {
"CurrentPage": 1,
"IndividualPagesDisplayedCount": 5,
"PageIndex": 0,
"PageSize": 10,
"ShowFirst": true,
"ShowIndividualPages": true,
"ShowLast": true,
"ShowNext": true,
"ShowPagerItems": true,
"ShowPrevious": true,
"ShowTotalSummary": false,
"TotalPages": 1,
"TotalRecords": 1,
"RouteActionName": "CustomerBackInStockSubscriptionsPaged",
"UseRouteLinks": true,
"RouteValues": {
"pageNumber": 0
}
},
"CustomProperties": {}
},
"ValidationMessage": [],
"ErrorMessage": null
}