Request Parameters:


This method allos to apply discount and remove discount

Below url allows user to apply discount


URL: ../Plugins/XcellenceIt.Plugin.Misc.NopRestApi/RemoteService/WebService.svc/ApplyDiscount



Parameter:

{

"apiSecretKey": "k117x118z122r116t100e100r118j122",

"storeId": "1",

"customerId": "1",

"discountCouponCode":"123"

}


Response:


   {

       "ApplyDiscountResult":

       {

           "CurrentCode": null,

           "IsApplied": true,

           "IsValid": false,

           "Message": "The coupon code was applied"

       }

   }



Below url allows user to remove discount :


URL: ../Plugins/XcellenceIt.Plugin.Misc.NopRestApi/RemoteService/WebService.svc/RemoveDiscount


Parameter:

{

"apiSecretKey": "k117x118z122r116t100e100r118j122",

"storeId": "1",

"customerId": "1",

"discountCouponCode":"123"

}


Response:


   {

       "RemoveDiscountResult":

       {

           "CurrentCode": "123",

           "IsApplied": false,

           "IsValid": true,

           "Message": "Remove coupon successfully."

       }

   }