Getting person_id by visitor_id
Getting person_id by visitor_id
Method |
getobj.person_for_visitor |
Description |
Getting person_id by visitor_id |
Who has access |
Agent, Client |
Components required to work with the method |
Configuration Data API |
Weight in points |
0 |
Parameters of a request
Title |
Type |
Required |
Description |
access_token |
string |
yes |
Authentication session key |
user_id |
number |
no |
Unique ID of an agent's customer user who makes request Is required for agent To access a list of customer users, use the method "get.customer_users" |
visitor_id |
number |
yes |
Visitor unique ID |
Parameters of a reply
Title |
Type |
Valid value |
Default reply |
Description |
person_id |
number |
|
yes |
Person unique ID |
JSON request structure
{
"jsonrpc":"2.0",
"id":"number",
"method":"getobj.person_for_visitor",
"params":{
"access_token":"string",
"user_id":"number",
"visitor_id": "number"
}
}
JSON reply structure
{
"jsonrpc": "2.0",
"id": "number",
"result": {
"metadata": {
},
"data": {
"person_id": "number"
}
}
}
JSON reply sample
{
"jsonrpc": "2.0",
"id": "rMiS6Y5qt1OYo2m9S3S3z",
"result": {
"data": {
"person_id": 6145241079
}
}
}
List of returning errors
Refer to the section "List of errors for methods with the verb get"