Retrieve Package Plan entitlements by reservation Id
get
/spms/v2/ships/{shipId}/reservations/{reservationId}/PackagePlanEntitlements
This is to retrieve all Package Plan entitlements by the reservation Id
Request
Supported Media Types
- application/json
Path Parameters
-
reservationId: number
-
shipId: number
Ship Id
Query Parameters
-
isEnabled: boolean
Activation status of the Package Plan record: * `true` - Package Plan record is enabled * `false` - Package Plan record is disabled
-
limit: integer(int32)
Minimum Value:
1Paging limit -
offset: integer(int32)
Minimum Value:
0Paging offset -
orderBy: string
order by packagePlanName and packagePlanStatus with format column1:asc/desc,column2:asc/desc
-
packagePlanId(optional): number
Package Plan Id
-
packagePlanName(optional): string
Package Plan Name
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : Oracle Response
Type:
objectTitle:
Oracle ResponseThe wrapper object when returning successful values in Oracle standard
Show Source
-
count(optional):
number
The total number of items in the list.Example:
20 -
items(optional):
array items
-
limit(optional):
number
Paging limitExample:
1 -
offset(optional):
number
Paging offsetExample:
10
Nested Schema : items
Type:
Show Source
array-
Array of:
array packagePlanDetails
Package Plan Details
Example:
[
{
"reservationId":1254985696,
"packagePlanId":2223333,
"packagePlanName":"Food Only",
"totalValue":0,
"redeemedValue":0,
"availableValue":0,
"isEnabled":true,
"totalQuantity":10,
"redeemedQuantity":3,
"assignedDate":"2009-10-31"
}
]Nested Schema : packagePlanDetails
Type:
arrayPackage Plan Details
Show Source
-
Array of:
object packagePlans
Package Plan Details
Example:
[
{
"packagePlanId":2223333,
"packagePlanName":"Food Only",
"totalValue":0,
"redeemedValue":0,
"availableValue":0,
"isEnabled":true,
"totalQuantity":10,
"redeemedQuantity":3,
"assignedDate":"2009-10-31"
}
]Nested Schema : packagePlans
Type:
objectPackage Plan Details
Show Source
-
assignedDate(optional):
string(ISO 8601)
Assigned DateExample:
2009-10-31 -
availableValue(optional):
number
Available ValueExample:
0 -
isEnabled(optional):
boolean
This is to indicate switch to enable / disable account category (default value: true) * `true` - Enable account category * `false` - Disable account categoryExample:
true -
packagePlanId(optional):
number
Minimum Value:
1Pattern:^[0-9]*$Package Plan IdExample:2223333 -
packagePlanName(optional):
string
Package Plan NameExample:
Food Only -
redeemedQuantity(optional):
number
Total Redeem QuantityExample:
3 -
redeemedValue(optional):
number
Redeemed ValueExample:
0 -
totalQuantity(optional):
number
Total QuantityExample:
10 -
totalValue(optional):
number
Total ValueExample:
0
204 Response
No Content
401 Response
You are not authorized to use this API
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"title":"Unauthorized",
"detail":"Valid token is required to access this resource",
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError 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 ResponseError Response returned when encountered error
Example:
{
"title":"Forbidden",
"detail":"Access to this resource is forbidden",
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4"
}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:
{
"title":"Not Found",
"detail":"Reservation not found",
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError 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 ResponseError Response returned when encountered error
Example:
{
"title":"Method Not Supported",
"detail":"HTTP method not supported for this resource",
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.6"
}Nested Schema : Error Response
Type:
objectTitle:
Error ResponseError Response returned when encountered error
Show Source
500 Response
Error occured while processing this request
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error ResponseError Response returned when encountered error
Example:
{
"title":"Internal Server Error",
"details":"Issue fulfilling request. Please retry or contact support",
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1"
}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