Campaigns

GET https://api.eqworks.io/beta/campaigns/?cuid={{customerId}}&stats=false&state=completed

Fetches the available campaigns for a given ATOM customer

Request Params

KeyDatatypeRequiredDescription
cuidstringCustomer ID
statsbooleanBOOL :: Need stats to be inline
statestringSTRING :: State of the campaigns

HEADERS

KeyDatatypeRequiredDescription
eq-api-jwtstringValid ATOM JWT Token
eq-api-userstringEmail address of the authenticated user

RESPONSES

status: OK

{"ancestors":[{"HasContract":1,"ID":172,"RevTypes":[],"level":"wl","name":"Sample Whitelabel"},{"Currency":"CAD","ID":14101,"Wallet":null,"level":"customer","name":"Sample Customer"}],"campaigns":{"72111":{"CampCode":72111,"DaysLeft":-2,"EndDate":"Thu, 31 Oct 2019 23:59:00 GMT","Name":"Volkswagen ","StartDate":"Fri, 18 Oct 2019 00:00:00 GMT","TimeZone":"America/Toronto","TotalActions":null,"TotalClicks":4256,"TotalDays":14,"TotalImpressions":1913021,"TotalSpend":15304.168}}}