Retrieve guests profile with criteria search
get
/spms/v1/guest
This is to retrieve guests profile with criteria search using keyword. When the keyword is not defined in the search criteria, all profile records will be return. Otherwise only specific profile records will be listed based on the defined search criteria.
Request
Supported Media Types
- application/json
Query Parameters
-
limit: integer(int32)
Paging limit
-
offset: integer(int32)
Paging offset
-
orderBy: string
-
profileSearchTemplate(required): integer(int32)
profile search template id
-
q: string
keyword(first name, last name, cabin number, booking number, passport number)
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : Profile Search List
Type:
object
Title:
Profile Search List
Profile Search List
Show Source
-
count:
integer
Example:
18
-
hasMore:
boolean
Example:
true
-
items:
array items
-
limit:
integer
Example:
2
-
links:
array links
-
offset:
integer
Example:
0
Nested Schema : GuestReturnSearchData
Type:
object
data return
Show Source
-
item:
object ProfileDetails
Profile Details
-
links:
links
Nested Schema : ProfileDetails
Type:
object
Profile Details
Show Source
-
age:
integer(int32)
Minimum Value:
1
Maximum Value:150
Example:57
-
contactNum:
string
Minimum Length:
1
Maximum Length:30
Pattern:^[0-9 \+\-\(\)]*$
Example:+0123456789
-
countryOfBirth:
string
Minimum Length:
1
Maximum Length:3
Pattern:^[ A-Za-z0-9_@./#&+-]*$
Example:US
-
countryOfResidence:
string
Minimum Length:
1
Maximum Length:6
Pattern:^[ A-Za-z0-9_@./#&+-]*$
Example:US
-
dateOfBirth:
string(date-time)
Example:
1961-04-01T16:00:00.000+0000
-
documentExpiryDate:
string(date-time)
Example:
1961-04-01T16:00:00.000+0000
-
documentIssuedCountry:
string
Minimum Length:
1
Maximum Length:6
Pattern:^[ A-Za-z0-9,'_@./#&+-]*$
Example:US
-
emailAddress:
string
Minimum Length:
1
Maximum Length:50
Pattern:^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$
Primary Email Address * `null` if emptyExample:email@example.com
-
emergencyContactName:
string
Minimum Length:
1
Maximum Length:40
Example:NAME or FIRST NAME / SURNAME
-
emergencyContactNum:
string
Minimum Length:
1
Maximum Length:30
Pattern:^[0-9 \+\-\(\)]*$
Example:+(60) 123456789
-
firstName:
string
Minimum Length:
1
Maximum Length:40
Example:FIRST NAME
-
gender:
string
Minimum Length:
1
Maximum Length:6
Pattern:^[ A-Za-z0-9,'_@./#&+-]*$
Example:M or F
-
guestId(required):
integer
Minimum Value:
0
Example:1000001
-
lastName:
string
Minimum Length:
1
Maximum Length:40
Example:LAST NAME
-
middleName:
string
Minimum Length:
1
Maximum Length:20
Example:MIDDLE NAME
-
nationality:
string
Minimum Length:
1
Maximum Length:6
Pattern:^[ A-Za-z0-9,'_@./#&+-]*$
Example:US
-
passportNum:
string
Minimum Length:
1
Maximum Length:20
Pattern:^[ A-Za-z0-9,'_@./#&+-]*$
Example:A012345678
-
photo:
string
Example:
/Images/People/
-
reservationDetails:
object GuestReservationDetails
Reservation Details
-
title:
string
Minimum Length:
1
Maximum Length:20
Example:Mr
Nested Schema : links
Match All
Show Source
-
object
gpLinksProfile
links detail
-
object
links-allOf[1]
Nested Schema : GuestReservationDetails
Type:
object
Reservation Details
Show Source
-
accountId:
integer
Minimum Value:
1
Example:1000001
-
cabinNum:
string
Minimum Length:
1
Maximum Length:20
Example:12345
-
disembarkDate:
string(date-time)
Example:
2015-09-09T16:00:00.000+0000
-
embarkDate:
string(date-time)
Example:
2015-09-02T16:00:00.000+0000
-
reservationStatus:
string
Minimum Length:
2
Maximum Length:2
Allowed Values:[ "RR", "RX", "RE", "RN", "CC", "CL", "DD", "00" ]
Example:CC
Nested Schema : gpLinksProfile
Type:
object
links detail
Show Source
-
method:
string
Example:
get
-
rel:
string
Example:
self
Nested Schema : links-allOf[1]
Type:
Show Source
object
-
href:
string
Example:
http://[HOSTNAME]/spms/v1/guest/1000001
-
operationId:
string
Example:
findByID
Nested Schema : items
Match All
Show Source
-
object
gpLinksProfile
links detail
-
object
items-allOf[1]
Nested Schema : items-allOf[1]
Type:
Show Source
object
-
href:
string
Example:
http://[HOSTNAME]/spms/v1/guest?q=john&offset=0&limit=2&orderBy=passportNumber
-
operationId:
string
Example:
search
400 Response
Bad Request
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2",
"title":"Bad Request",
"detail":"Empty request body."
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
401 Response
You are not authorized to use this API
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2",
"title":"Unauthorized",
"detail":"Valid token is required to access this resource"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
403 Response
You are forbidden to use this API
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4",
"title":"Forbidden",
"detail":"Access to this resource was forbidden"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
404 Response
Not Found
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"title":"Not Found",
"detail":"Profile configuration does not exist",
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
405 Response
This method is not available
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.6",
"title":"Method Not Allowed",
"detail":"HTTP method not supported for this resource"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
406 Response
Not Acceptable
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.7",
"title":"Not Acceptable",
"detail":"Request a Mime type that is supported for this Resource"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
415 Response
The media supplied is not supported
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"title":"Invalid content",
"detail":"Content type not supported",
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.16"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
500 Response
Error occurred while processing this request
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1",
"title":"Internal Server Error",
"detail":"Issue fulfilling request. Please retry or contact support"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
503 Response
Service not available
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.4",
"title":"Service Unavailable",
"detail":"Service Unavailable. Try again later"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source