Search Package
METHOD: GET
Endpoint: /booking/{:packageId}
Query parameters:
Name | Required | JSON Type | Remarks |
---|---|---|---|
Adults | No | Number | The sum of adults plus children must be 1 or more |
AgentId | No | String | The agent responsible for the quote/booking |
Children | No | Number | The sum of adults plus children must be 1 or more |
Currency | Yes | String | Uses ISO 4217 currency codes |
StartDate | Yes | String | Uses ISO 8601 date formatting |
Example
Request
curl --location --globoff '{:apiBase}/booking/SCGAL2425EEU?agentId=12345¤cy=nok&adults=1&startDate=2024-03-27' \
--header 'Authorization: Bearer {:bearer_token}'
Response
Type: PackageSearchResult
{
"packageId": "SCGAL2425EEU",
"quoteId": "45647d72-4af1-4b0a-8666-4ac476a5d8af",
"departure": {
"id": "78d863ac-d761-48ef-9af5-c0e6dd9c289c",
"startDate": "2024-03-27T14:30:00",
"endDate": "2024-04-02T09:00:00",
"shipCode": "SC",
"cabins": [
{
"category": "EE",
"superCategory": "Explorer",
"price": 81932,
"availableCabins": 12,
"minimumOccupancy": 1,
"maximumOccupancy": 2
},
{
"category": "EH",
"superCategory": "Explorer",
"price": 77730,
"availableCabins": 18,
"minimumOccupancy": 1,
"maximumOccupancy": 2
},
{
"category": "EP",
"superCategory": "Explorer",
"price": 86134,
"availableCabins": 2,
"minimumOccupancy": 1,
"maximumOccupancy": 2
},
{
"category": "FH",
"superCategory": "Explorer",
"price": 86134,
"availableCabins": 2,
"minimumOccupancy": 1,
"maximumOccupancy": 3
}
]
},
"passengers": [
{
"id": "a7fee923-1daf-43be-a5f4-37c78a1dce59",
"ageCategory": "ADULT"
}
]
}