Retrieve guest message by reservation Id
get
/spms/v2/ships/{shipId}/reservations/{reservationId}/guestMessages
This is to retrieve the guest message that is linked to a specific reservation Id
Request
Supported Media Types
- application/json
Path Parameters
-
reservationId(required): number
Reservation Id
-
shipId(required): number
Ship Id
Query Parameters
-
activeMessageDate: string(date)
This date shows all active messages related to the reservation.
-
isDeliveryStatus: number
Indicates the delivery status. 0 stands for Not Delivered, 1 for DeliveredAllowed Values:
[ 0, 1 ] -
isGatewaySecurity: boolean
Gateway Security flag. If provided, it will filter only expected Gateway Security messages for the day. The only filters that will be applied when isGatewaySecurity flag is true are messageDeliveryType and activeMessageDate. If activeMessageDate is not provided, it will be filter based on the current Date.
-
isLightStatus: string
Light StatusAllowed Values:
[ true, false ] -
messageDeliveryType: number
Indicates the message delivery type. 0 stands for No delivery, 1 stands Delivery during check-In, 2 stands for Delivery at gangway, 3 stands for Delivery at internal gate, 4 stands for Delivery at immigration gateAllowed Values:
[ 0, 1, 2, 3, 4 ] -
orderBy: string
order by isLightStatus and createdDateTime with format column1:asc/desc,column2:asc/desc
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : Oracle Responses list
Type:
objectTitle:
Oracle Responses listThe wrapper object when returning successful values in Oracle standard
Show Source
-
count:
number
The total number of items in the list.Example:
1 -
hasMore:
boolean
Flag which indicates whether or not there are more items.Example:
false -
items:
array items
-
limit:
number
Paging limitExample:
5 -
offset:
number
Paging offsetExample:
10
Nested Schema : items
Type:
Show Source
array-
Array of:
object guestMessageGETObject
Guest Message GET Object
Example:
[
{
"shipId":"186000000117",
"reservationId":2966243,
"messageId":21,
"senderName":"Front Office",
"messageText":"Overdue balance",
"isLightStatus":"ON",
"messageDeliveryType":"No delivery",
"messageAcknowledgementType":"Manager Acknowledge with log",
"messageType":"Standard",
"effectiveDate":"2024-07-07",
"expiryDate":"2024-07-07",
"isShowUntilExpired":true,
"printedDateTime":"2021-03-31T16:00:00.000+0000",
"createdByName":"John Smith",
"createdDateTime":"2021-03-31T16:00:00.000+0000",
"messageDeliveredByName":"John Smith",
"messageDeliveredDateTime":"2021-03-31T16:00:00.000+0000"
}
]Nested Schema : guestMessageGETObject
Type:
objectGuest Message GET Object
Show Source
-
createdByName:
string
Created By NameExample:
John Smith -
createdDateTime:
string(date)
created Date TimeExample:
2024-07-07T00:00:00.0 -
effectiveDate:
string(date)
Effective DateExample:
2024-07-07 -
expiryDate:
string(date)
Expiry DateExample:
2024-07-07 -
isLightStatus:
string
Allowed Values:
[ true, false ]Light StatusExample:true -
isShowUntilExpired:
boolean
Message show daily until expiredExample:
true -
messageAcknowledgementType:
string
Allowed Values:
[ "No Acknowledgement", "User Acknowledgement with log", "Manager Acknowledgement with log", "Do not allow to continue with log" ]Message Acknowledgement TypeExample:Manager Acknowledgement with log -
messageDeliveredByName:
string
Message Delivery By NameExample:
John Smith -
messageDeliveredDateTime:
string(Date)
Message Delivered DateTimeExample:
2024-07-07T00:00:00.0 -
messageDeliveryStatus:
string
Allowed Values:
[ "Not Delivered", "Delivered" ]Indicates the message delivery status.Example:Delivered -
messageDeliveryType:
string
Allowed Values:
[ "No delivery", "Delivery during check-In", "Delivery at gangway", "Delivery at internal gate", "Delivery at immigration gate" ]Message Delivery TypeExample:No delivery -
messageId:
number
Minimum Length:
1Pattern:^[0-9]*$Message IdExample:1234567 -
messageText:
string
Pattern:
^[a-zA-Z0-9 _,\?/\.\-\\+\* ~!@#$%&{}\[\]()=<>\|\^\'\":;@`]*$Message TextExample:Overdue balance -
messageType:
string
Allowed Values:
[ "Standard", "Priority", "Silent" ]Message TypeExample:Standard -
printedDateTime:
string(date)
Printed Date TimeExample:
2024-07-07T00:00:00.0 -
reservationId:
object reservationId
Reservation Id
-
senderName:
string
Pattern:
^[a-zA-Z0-9 _,\?/\.\-\\+\* ~!@#$%&{}\[\]()=<>\|\^\'\":;@`]*$Sender NameExample:Front Office
Nested Schema : reservationId
Type:
objectReservation Id
Show Source
-
onBoardStatus:
integer
Example:
0 -
reservationId:
integer(int64)
Example:
989323
204 Response
No Content
400 Response
Bad Request
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
"title":"Bad Request",
"detail":"Invalid parameter(s) passed in"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
401 Response
Unauthorized
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError 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:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
403 Response
Forbidden
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError 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:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
404 Response
Not Found
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5",
"title":"Not Found",
"detail":"Ship Id could not be found"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
405 Response
Method Not Allowed
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.6",
"title":"Method Not Supported",
"detail":"HTTP method not supported for this resource"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
406 Response
Not Acceptable
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError 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:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
410 Response
Gone
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.11",
"title":"Gone",
"detail":"Requested Resource no longer exists"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
415 Response
Unsupported Media Type
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.16",
"title":"Unsupported Media Type",
"detail":"Content type not supported"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
500 Response
Internal Server Error
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"type":"http://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:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
501 Response
Not Implemented
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.2",
"title":"Not implemented",
"detail":"Resource is not implemented in this version of the API"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
503 Response
Service Unavailable
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.4",
"title":"Service Unavailable",
"detail":"Service not available"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source