Promo Codes

URL:
Method: POST	
https://saasapi.igainapp.in/v1/promocode.php/promocode
					

Request Parameters

Parameter Type Position # Description
Authorization string Header Required Authorization is the Enrypted Company API KEY
membershipid string Body Required Membership ID
phoneno string Body Required Phone number without country code
promocode string Body Required Promo Code

Sample Request Body

{								
    "membershipid":"1234567878",
    "phoneno":"1234567890",
    "promocode":"ABCD507"
}

Sample Request Response

{
    "errorcode": 1001,
    "message": "Ok",
    "promocode": "ABCD507",
    "points": "500"
}

Error Codes

Error Code Description
3121 Required field(s) is missing or empty
3122 Phone number is not valid
2003 Unable to locate membership id
2023 Invalid Promo Code!
1001 OK