Create guest message
post
/spms/v2/ships/{shipId}/reservations/{reservationId}/guestMessages
This is to create a guest message and link to a specified reservation.
Request
Supported Media Types
- application/json
Path Parameters
-
reservationId(required): number
Reservation Id
-
shipId(required): number
Ship Id
Guest Message Post Object
Root Schema : guestMessagePOSTObject
Type:
object
Guest Message POST Object
Show Source
-
effectiveDate:
string(date)
Effective DateExample:
2024-07-07T00:00:00.0
-
expiryDate:
string(date)
Expiry DateExample:
2024-07-07T00:00:00.0
-
messageAcknowledgementType:
number
Allowed Values:
[ "0", "1", "2", "3" ]
Indicates message acknowledgement Type. 0 stands for No Acknowledgement, 1 stands for User Acknowledgement with log, 2 stands for Manager Acknowledgement with log, 3 stands for Do not allow to continue with logExample:3
-
messageDeliveryType:
number
Allowed Values:
[ "0", "1", "2", "3", "4" ]
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 gateExample:4
-
messageText:
string
Pattern:
^[a-zA-Z0-9 _,\?/\.\-\\+\* ~!@#$%&{}\[\]()=<>\|\^\'\":;@`]*$
Message TextExample:Overdue balance
-
messageType:
string
Minimum Length:
0
Maximum Length:12
This is to indicate the message field is confirmation type , information type or error typeExample:confirmation,information,error
-
senderName:
string
Pattern:
^[a-zA-Z0-9 _,\?/\.\-\\+\* ~!@#$%&{}\[\]()=<>\|\^\'\":;@`]*$
Sender NameExample:Front Office
Response
Supported Media Types
- application/json
201 Response
Created
Root Schema : guestMessageGETObject
Type:
object
Guest Message GET Object
Show Source
-
createdBy:
string
Created ByExample:
FOPolly Pipe
-
createdDateTime:
string(date-time)
Example:
2015-09-09T16:00:00
-
effectiveDate:
string(date)
Effective DateExample:
2024-07-07T00:00:00.0
-
expiryDate:
string(date)
Expiry DateExample:
2024-07-07T00:00:00.0
-
isLightStatus:
string
Allowed Values:
[ true, false ]
Light StatusExample: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
-
messageDeliveredBy:
number
Message Delivery ByExample:
999
-
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:
1
Pattern:^[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:
number
Minimum Length:
1
Pattern:^[0-9]*$
Reservation IdExample:1001
-
senderName:
string
Pattern:
^[a-zA-Z0-9 _,\?/\.\-\\+\* ~!@#$%&{}\[\]()=<>\|\^\'\":;@`]*$
Sender NameExample:Front Office
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.1",
"title":"Bad Request",
"detail":"Invalid parameter(s) passed in"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
401 Response
Unauthorized
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
Forbidden
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:
{
"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:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
405 Response
Method Not Allowed
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":"The method is not available"
}
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
Unsupported Media Type
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.16",
"title":"Unsupported Media Type",
"detail":"Content type not supported"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
500 Response
Internal Server Error
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.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 Unavailable
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.5.4",
"title":"Service Unavailable",
"detail":"Service not available"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source