Apply And Remove Discount Code
Request Parameters:
This method allows to apply discount and remove discount
Below url allows user to apply discount
URL: ../Api/Client/ApplyDiscount
Header:
Content-Type:application/json
Required Parameters :
Case-1. Incorrect parameters :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"LanguageId":"1",
"DiscountCouponCode":"abd"
}
Response :
{
"Status": 0,
"Message": "The coupon code you entered couldn't be applied to your order",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}
Case-2. Success Response :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"LanguageId":"1",
"DiscountCouponCode":"test1"
}
Response :
{
"Status": 1,
"Message": "Success.",
"Data": {
"CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce",
"Message": "The coupon code was applied"
},
"ValidationMessage": [],
"ErrorMessage": null
}
====================================================================================
Below url allows user to remove discount :
URL: ../Api/Client/RemoveDiscount
Case-1. Incorrect parameters :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"DiscountCouponCode":"abd"
}
Response :
{
"Status": 0,
"Message": "The coupon code you entered couldn't be applied to your order",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}
Case-2. Success Response :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"DiscountCouponCode":"test1"
}
Response :
{
"Status": 1,
"Message": "Success.",
"Data": {
"CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce",
"Message": "Removed coupon successfully."
},
"ValidationMessage": [],
"ErrorMessage": null
}