Request Parameters:


For applying and remove gift card on cart sub-total.


URL: ../Api/Client/ApplyGiftCard


Header:

Content-Type:application/json


Required Parameters :  


Case-1. Incorrect parameters :
Parameter:
{

    "ApiSecretKey":"i99b98d117m116a112o98k115c111",

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

    "StoreId": "1",

    "GiftCardCouponCode":"f8d285e2-b3b5"

}
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",

    "GiftCardCouponCode":"41f2af6f-2ae3"

}
Response :
{

    "Status": 1,

    "Message": "Success.",

    "Data": {

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

        "Message": "Applied giftcard successfully"

    },

    "ValidationMessage": [],

    "ErrorMessage": null

}


====================================================================================

Below url allows user to remove discount :


URL: ../Api/Client/RemoveGiftCard


Case-1. Incorrect parameters :
Parameter:
{

    "ApiSecretKey":"i99b98d117m116a112o98k115c111",

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

    "StoreId": "1",

    "GiftCardCouponCode":"f8d285e2-b3b5"

}
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",

    "GiftCardCouponCode":"41f2af6f-2ae3"

}
Response :
{

    "Status": 1,

    "Message": "Success.",

    "Data": {

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

        "Message": "Remove giftcard successfully"

    },

    "ValidationMessage": [],

    "ErrorMessage": null

}