Skip to content

getEConsents ​

Returns a list of eConsents for a given Company or Event.

Request ​

http
GET /rest/user/econsents

Headers ​

HeaderRequiredDescription
x-nextinteract-authtokenYesAuth token returned from loginUser

Parameters ​

Query Params:

ParameterTypeRequiredDescription
typestringYesEither C for Company or E for Event.
companyIdintegerYes (when type=C)Company id of the company for which econsents are being requested.
eventUUIDstringYes (when type=E)Event UUID of the event for which econsents are being requested.

Response ​

200 OK ​

COMPANY ECONSENTS

json
[
  {
    "consentTypeCode": "C",
    "consentUUID": "7b28ac8b-bad2-4ed8-9b9d-63d5c2314c68",
    "companyId": 3,
    "consentValue": "I agree to the terms and conditions blah..of...blah",
    "consentRequired": true
  },
  {
    "consentTypeCode": "C",
    "consentUUID": "b44eeef6-50c0-4b2d-b223-6d63e451fda6",
    "companyId": 3,
    "consentValue": "I permit Blah to send marketing material to me...blah",
    "consentRequired": true
  }
]
json
[
  {
    "consentTypeCode": "C",
    "consentUUID": "ab321741-aac0-4257-92b1-53bf58aa5f68",
    "eventUUID": "eb2d927b-fc11-4da4-8955-e63946f05a28",
    "consentValue": "I agree to the terms and conditions blah..of...blah",
    "consentRequired": true
  },
  {
    "consentTypeCode": "C",
    "consentUUID": "9a6d2eba-d84b-4083-a41d-7b44f5f0eab1",
    "eventUUID": "a988807a-f277-4b7a-94b8-86f5d580af29",
    "consentValue": "I permit Blah to send marketing material to me...blah",
    "consentRequired": false
  }
]

Errors ​

ExceptionDescription
WSInvalidParameterExceptionSee Error Definitions
WSUserServiceExceptionSee Error Definitions