Retrieve Stateroom Upgrade Charges and Parameters
post
/spms/v2/ships/{shipId}/configurations/stateroomUpgradeCharges
This is to retrieve the configured stateroom upgrade charge item and parameters
Request
Supported Media Types
- application/json
Path Parameters
-
shipId(required): number
ship Id
Required to retrieve charges
Root Schema : Stateroom Upgrade Charges Request
Type:
objectTitle:
Stateroom Upgrade Charges RequestStateroom Upgrade Charges Request
Show Source
-
currentStateroomCategoryCode(required):
string
Maximum Length:
6Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=|^'":;@`]*$current stateroom category codeExample:CAB1 -
upgradeStateroomCategoryCode(required):
string
Maximum Length:
6Pattern:^[a-zA-ZÀ-ÖØ-öø--9 _,?/.\-+*n~!@#$%&{}[]()=|^'":;@`]*$upgrade stateroom category codeExample:CAB2
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : Stateroom Upgrade Charges
Type:
objectTitle:
Stateroom Upgrade ChargesStateroom Upgrade Charges
Show Source
-
chargeDepartment:
object chargeDepartment
Charge Department
-
isStateroomUpgradeChargeRequired:
boolean
Title:
is Stateroom Upgrade Charge Requiredis Stateroom Upgrade Charge RequiredExample:true -
isStateroomUpgradeReasonRequired:
boolean
Title:
is Stateroom Upgrade Reason Requiredis Stateroom Upgrade Reason RequiredExample:true -
stateroomUpgradeItem:
array stateroomUpgradeItem
-
upgradeAmount:
number
Title:
Upgrade AmountUpgrade AmountExample:450
Nested Schema : chargeDepartment
Type:
objectCharge Department
Match All
Charge Department
Show Source
-
object
Department
Title:
DepartmentDepartment
Nested Schema : stateroomUpgradeItem
Type:
Show Source
array-
Array of:
array statetoomUpgradeItem
Stateroom Upgrade item
Nested Schema : Department
Type:
objectTitle:
DepartmentDepartment
Show Source
-
code:
string
Title:
Department CodeDepartment CodeExample:post -
description:
string
Title:
Department DescriptionDepartment DescriptionExample:Posting Department
Nested Schema : items
Type:
Show Source
object-
id:
integer
Title:
idIDExample:1 -
maximumPerson:
integer
Title:
Maximum PersonMaximum PersonExample:4 -
price:
number
Title:
PricePriceExample:450 -
sortNumber:
integer
Title:
Sort NumberSort NumberExample:1 -
stateroomCategoryCode:
string
Title:
Stateroom Category CodeStateroom Category CodeExample:01 -
stateroomCategoryDescription:
string
Title:
Stateroom Category DescriptionStateroom Category DescriptionExample:Suite
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":"ShipId not found"
}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":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4",
"title":"Forbidden",
"detail":"Access to this resource is 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":"This resource path does not exist"
}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
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
503 Response
Service Unavailable
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError 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:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source