Request Parameters:


Delete single/multiple back in stock subscription.


URL: ../Api/Client/DeleteCustomerSubscriptions 


Header:

Content-Type:application/json


Required Parameters :  CustomerGUID, SubscriptionIds


Resource Strings :

Plugins.XcellenceIT.WebApiClient.Message.NoSubsciptionIds

Plugins.XcellenceIT.WebApiClient.Message.DeleteSubsciptionIdsSuccess

Plugins.XcellenceIT.WebApiClient.Message.NoValidSubsciptionIds


Case-1. Exception Response :
Parameter:

{

    "ApiSecretKey":"i99b98d117m116a112o98k115c111",

    "CustomerGUID":"",

    "Message":"",

    "SubscriptionIds":[2,3]

}
Response :
{

    "Status": 0,

    "Message": "Request cannot be empty",

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}


Case-2. Incorrect parameters : :
Parameter:

{    

      "ApiSecretKey":"i99b98d117m116a112o98k115c111",

      "CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",

      "Message":"",

       "SubscriptionIds":""

}
Response :

{

    "Status": 2,

    "Message": "Invalid parameters.",

    "Data": null,

    "ValidationMessage": [

        "The SubscriptionIds field is required."

    ],

    "ErrorMessage": null

}


Case-3. Success Response :
Parameter:

{    

      "ApiSecretKey":"i99b98d117m116a112o98k115c111",

      "CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",

         "Message":"",

         "SubscriptionIds":[4,5]

}
Response :

{

    "Status": 1,

    "Message": "Success",

    "Data": {

        "CustomerGUID": "496dbb2a-f9eb-4522-a804-b108693b69ce",

        "Message": "Back in stock subscription(s) deleted successfully.",

        "SubscriptionIds": [

            4,

            5

        ]

    },

    "ValidationMessage": [],

    "ErrorMessage": null

}