POST visitor/getByDoc?Token={Token}
Retrieve personal data for visitor by using document number, type, name and date of the birth. Agenda "Visits" has to be licensed. Privilege "View" of licensed agenda "Visitor - Persons" required. Data may also be restricted by record permission "View" of agenda "Visitor - Persons".
Request Information
Authorization
- Authorization by token required
Availability
- Method can be used
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Token |
The action is authorized by this token. Token should generated by calling action "POST login". Expiration time of each token is 20 seconds |
globally unique identifier |
Required |
Body Parameters
VisitGetByDocReq| Name | Description | Type | Additional information |
|---|---|---|---|
| DocNumber |
Document number |
string |
Required String length: inclusive between 0 and 50 |
| State |
Issuing state |
string |
Required |
| DocType |
Document type. The values meaning: Passport = 0, Identity card = 1, Another type = 2 |
integer |
Required Matching regular expression pattern: [0,1,2] |
| Name |
Visitor name |
string |
Required |
| Surname |
Visitor Surname |
string |
Required |
| DateOfBirth |
Date of the birth |
date |
None. |
Response Information
Response Codes
| Http Code | Error Number | Description |
|---|---|---|
| 200 request succesfully done | 0 | Successfully done |
| 400 bad request | 1002 | Entry parameter missing or parameter bindigs failed |
| 401 unauthorized | 1000 | Token {0} not found |
| 401 unauthorized | 1001 | Token {0} already expired |
| 401 unauthorized | 1006 | Ip filter violated for ip client address [{0}] |
| 401 unauthorized | 1007 | Ip filter [{0}] parsing failed |
| 401 unauthorized | 1008 | Request rate policy violated for [{0}] |
| 403 server refuses fo fulfill the request | 1526 | Privilege View of agenda Visitors violated for [Visitor {0}] |
| 403 server refuses fo fulfill the request | 1538 | Record permission View of agenda Visitors violated for [{0}] |
| 403 server refuses fo fulfill the request | 1531 | Searching by document failed |
| 403 server refuses fo fulfill the request | 8 | Not licensed |
| 404 required resource does not exist on the server | 1527 | No visitor found |
| 415 unsupported Media Type | The request entity has a media type which the server or resource does not support. Only application/json and application/xml are supported | |
| 500 internal error | Server exception description |
Resource Description
VisitorGetResp| Name | Description | Type | Additional information |
|---|---|---|---|
| Visitor |
Visitor data |
Visitor |
None. |
Response Formats
application/json
Sample:
{"Visitor":{"VisitorId":"cb231017-336b-4a58-b9bb-629d0ed5d429","Name":"Ian","Surname":"Apple","Firm":"The Big Company ltd.","Document":null,"FingerPrintISO":null,"FingerPrintSuprema":null,"Activities":[{"ActivityType":{"Title":"Activity A","Shortcut":"AA","Frequency":0,"Signed":0},"ValidTo":"\/Date(1761778800000)\/","Description":"Some description of this activity","Attachment":null},{"ActivityType":{"Title":"Activity B","Shortcut":"BB","Frequency":0,"Signed":0},"ValidTo":"\/Date(1762124400000)\/","Description":"Some description of this activity","Attachment":null}],"Email":"Ian@test","Mobile":"00420123456","Phone":"123456"}}
application/xml
Sample:
<Response>
<Visitor>
<VisitorId>cb231017-336b-4a58-b9bb-629d0ed5d429</VisitorId>
<Name>Ian</Name>
<Surname>Apple</Surname>
<Firm>The Big Company ltd.</Firm>
<Activities>
<VisitorActivity>
<ActivityType>
<Title>Activity A</Title>
<Shortcut>AA</Shortcut>
<Frequency>0</Frequency>
<Signed>0</Signed>
</ActivityType>
<ValidTo>2025-10-30T00:00:00+01:00</ValidTo>
<Description>Some description of this activity</Description>
</VisitorActivity>
<VisitorActivity>
<ActivityType>
<Title>Activity B</Title>
<Shortcut>BB</Shortcut>
<Frequency>0</Frequency>
<Signed>0</Signed>
</ActivityType>
<ValidTo>2025-11-03T00:00:00+01:00</ValidTo>
<Description>Some description of this activity</Description>
</VisitorActivity>
</Activities>
<Email>Ian@test</Email>
<Mobile>00420123456</Mobile>
<Phone>123456</Phone>
</Visitor>
</Response>