Context:
Buyer API can use this API endpoints for query activities logs
...
Code Block | ||
---|---|---|
| ||
{ "total": 4, "activities": [ { "survey_id": 764831, "user_id": 3103, "user_email": "filipe@ns2.com", "username": "Filipe Test", "message": "activated Supplier Rates option", "type": "Survey Edit", "timestamp": 1711035869355, "isExpire": false, "eventHandler": "user", "userCmp": 3624, "isVisible": true, "operatorAccess": true, "buyerAdmin": true, "buyerFull": false, "addInfo": "undefined", "platform": "API_PLATFORM" }, { "survey_id": 764831, "user_id": 3103, "user_email": "filipe@ns2.com", "username": "Filipe Test", "message": "added layered quota GENDER:Female", "type": "Survey Edit", "timestamp": 1711035868635, "isExpire": false, "eventHandler": "user", "userCmp": 3624, "isVisible": true, "operatorAccess": true, "buyerAdmin": true, "buyerFull": false, "addInfo": "undefined", "platform": "API_PLATFORM" }, { "survey_id": 764831, "user_id": 3103, "user_email": "filipe@ns2.com", "username": "Filipe Test", "message": "added layered quota GENDER:Male", "type": "Survey Edit", "timestamp": 1711035868633, "isExpire": false, "eventHandler": "user", "userCmp": 3624, "isVisible": true, "operatorAccess": true, "buyerAdmin": true, "buyerFull": false, "addInfo": "undefined", "platform": "API_PLATFORM" }, { "survey_id": 764831, "user_id": 3103, "user_email": "filipe@ns2.com", "username": "Filipe Test", "message": "changed qualification from GENDER:Male,Female,Prefer not to say to GENDER:Male,Female", "type": "Survey Edit", "timestamp": 1711035868630, "isExpire": false, "eventHandler": "user", "userCmp": 3624, "isVisible": true, "operatorAccess": true, "buyerAdmin": true, "buyerFull": false, "addInfo": "undefined", "platform": "API_PLATFORM" } ] } |
Validation
...
Response Code
TO BE ADDED400 - Bad Request
Response Body
Code Block |
---|
{TO BE ADDED?surveys=aaa { "message": "[surveys] - Invalid surveys: aaa," } ?trigger=asd { "message": "[trigger] - Trigger options allowed: `user` or `system`" } ?origin=asd { "message": "[origin] - Origin options allowed: `api`, `ui`, `all`" } ?startDate=xxxx { "message": "[startDate] - Invalid date format. Should be YYYY-MM-DD." } ?endDate=xxxx { "message": "[endDate] - Invalid date format. Should be YYYY-MM-DD." } ?company=asdf { "message": "[company] - Invalid data asdf - company should be a number!" } |