Get Campaign Offer

URL:
Method: GET	
https://saasapi.igainapp.in/v1/campains.php/campains
					

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

Sample Request Body

{								
    "membershipid":"1234578787",
    "phoneno":"1234567890"
}

Sample Request Response

{
    "offers": [
        {
            "outlet": "Food Delight Food Delight",
            "name": "BA-Bronze New Bonanza II",
            "fromdate": "2020-07-04",
            "todate": "2022-06-30",
            "onpurchase": "0.00",
            "offer": "5.00"
        }
    ],
    "errorcode": 1001,
    "message": "OK"
}

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
1001 OK