11. API get rating list

URL: https://apiring.antbuddy.com/rating

Method: GET

Parameters

Type

Required

Explain

dateStart

string

Rating time. For example:2024-03-13T06:24:20.673Z

dateEnd

string

Ratingi time. For example:2024-03-19T06:24:20.673Z

page

Number

Page number.

limit

Number

Number of records per page. (Maximum

100 records)

type

String

Rating source

VD: ticket, deal, call, omni, other

rating_score

Number

Rating score VD:

ZNS/EMAIL/ECOM/CALL/ZALO/F

ACEBOOK

Results returned:

{

"success": true,

"data": [], // list of records

"total": 2,

"limit": 20

}

Sample data:

{

"success": true,

"data": [

{

"_id": "6613a508dc31dd206d0239b5", "org": "62c10674cbe832bc9245a5b8",

"session": {

"_id": "66139e5904bf311bf963a979",

"channel": "ZALO",

"normalize": "nguyen-dinh-minh-thong",

"isDone": true,

"rating_value": 3,

"rating_comment": "",

"conversationId": "36737553777762229502111865670400779963",

"conversationName": "RiskEhn Dinh Minh Thong",

"snippet": "test adidas dawda", "senderName": "RiskEhn Dinh Minh Thong",

"senderAvatar": "https://s120-ava-talk.zadn.vn/1/e/4/8/0/120/16d1cfb17288a106fe9f0fe847173314.jpg", "conversationAvatar": "https://s120-ava-talk.zadn.vn/1/e/4/8/0/120/16d1cfb17288a106fe9f0fe847173314.jpg",

"pageId": "3673755377776222950",

"doneAt": 1712738571708

},

"contact": {

"_id": "66139e5804bf311bf963a975",

"contactType": "lead",

"type": 0,

"lastname": "",

"gender": 2,

"dateOfBirth": null,

"dateOfBirth2": "",

"name": "RiskEhn Dinh Minh Thong",

"addresses": [

{

"type": "Work",

"street": "",

"city": "",

"state": "",

"zip": "",

"_id": "66139e5804bf311bf963a976",

"country": {

"code": "VN",

"name": "Vietnam"

}

}

],

"phones": [],

"emails": [],

"leadId": 2964 },

"rating_score": 3,

"comment": null,

"rating_time": 1712563464292,

"type": "omni",

"source": "ZALO",

"__in": 0

},

{

"_id": "6613a4541da91b1fd51d67de", "org": "62c10674cbe832bc9245a5b8",

"session": {

"_id": "66139e5904bf311bf963a979", // CRM customer id code

"channel": "ZALO",

"normalize": "nguyen-dinh-minh-thong",

"isDone": true,

"rating_value": 3,

"rating_comment": "",

"conversationId": "36737553777762229502111865670400779963",

"conversationName": "RiskEhn Dinh Minh Thong",

"snippet": "test adidas dawda", "senderName": "RiskEhn Dinh Minh Thong",

"senderAvatar": "https://s120-ava-talk.zadn.vn/1/e/4/8/0/120/16d1cfb17288a106fe9f0fe847173314.jpg", "conversationAvatar": "https://s120-ava-talk.zadn.vn/1/e/4/8/0/120/16d1cfb17288a106fe9f0fe847173314.jpg",

"pageId": "3673755377776222950",

"doneAt": 1712738571708

},

"contact": {

"_id": "66139e5804bf311bf963a975",

"contactType": "lead",

"type": 0,

"lastname": "",

"gender": 2,

"dateOfBirth": null,

"dateOfBirth2": "",

"name": "RiskEhn Dinh Minh Thong",

"addresses": [

{

"type": "Work",

"street": "",

"city": "",

"state": "",

"zip": "",

"_id": "66139e5804bf311bf963a976",

"country": {

"code": "VN",

"name": "Vietnam"

}

}

],

"phones": [],

"emails": [],

"leadId": 2964 },

"rating_score": 5,

"comment": null,

"rating_time": 1712563284246,

"type": "omni",

"source": "ZALO",

"__in": 0

},

{

"_id": "6613a30300e6c11e1173dce4",

"org": "62c10674cbe832bc9245a5b8",

"session": {

"_id": "66139e5904bf311bf963a979",

"channel": "ZALO",

"normalize": "nguyen-dinh-minh-thong",

"isDone": true,

"rating_value": 3,

"rating_comment": "",

"conversationId": "36737553777762229502111865670400779963",

"conversationName": "RiskEhn Dinh Minh Thong",

"snippet": "test adidas dawda", "senderName": "RiskEhn Dinh Minh Thong",

"senderAvatar": "https://s120-ava-talk.zadn.vn/1/e/4/8/0/120/16d1cfb17288a106fe9f0fe847173314.jpg", "conversationAvatar": "https://s120-ava-talk.zadn.vn/1/e/4/8/0/120/16d1cfb17288a106fe9f0fe847173314.jpg",

"pageId": "3673755377776222950",

"doneAt": 1712738571708

},

"contact": {

"_id": "66139e5804bf311bf963a975",

"contactType": "lead",

"type": 0,

"lastname": "",

"gender": 2,

"dateOfBirth": null,

"dateOfBirth2": "",

"name": "RiskEhn Dinh Minh Thong",

"addresses": [

{

"type": "Work",

"street": "",

"city": "",

"state": "",

"zip": "",

"_id": "66139e5804bf311bf963a976",

"country": {

"code": "VN",

"name": "Vietnam"

}

}

],

"phones": [],

"emails": [],

"leadId": 2964 },

"rating_score": 4,

"comment": null,

"rating_time": 1712562947587,

"type": "omni",

"source": "ZALO",

"__in": 0

}

],

"limit": 20

}

Last updated