Goki API
Search…
TravelerDocument
Response Model for Traveler Document
This is the representation of the TravelerDocument data structure which you receive in the Traveler API response.
1
{
2
"id": "9ffea851-3d79-4ae9-bb3a-3ffd782e66f8",
3
"firstName": "Jon",
4
"lastName": "Snow",
5
"gender": "male",
6
"email": "[email protected]",
7
"hometown": {
8
"city": "Sydney",
9
"country": "Australia"
10
},
11
"savatar": {
12
"url": "https://image.com/savatar.jpg",
13
"publicId": "traveler/9387347653783/savatar"
14
},
15
"mavatar": {
16
"url": "https://image.com/mavatar.jpg",
17
"publicId": "traveler/9387347653783/mavatar"
18
}
19
}
Copied!
Property
Type
Required
Description
id
string
Y
The ID of the traveler in Goki.
firstName
string
Y
First name of the traveler.
lastName
string
Y
Last name of the traveler.
gender
string
Y
Gender of the traveler. Can be male or female.
email
string
Y
The email address of the traveler.
homeTown
object
N
An object containing the home country and city of the traveler.
savatar
object
N
Traveler avatar in small size.
mavatar
object
N
Traveler avatar in medium size.
Export as PDF
Copy link