GET Sightseeing by context, contextId

Overview

Retrieve sightseeing components by Booking ID

Request

GET /[context]/[contextId]/Sightseeing

Request Information

Request Parameters

Name
Type
Requirement
Description
context
String
Mandatory
Context in Request URI should be 'bookings'
contextId
Integer
Mandatory
ContextId in Request URI should be Booking ID

Response Information

Response Properties

Name
Type
Description
sightseeingList
List<Sightseeing>
List of sightseeing components

Sightseeinglist

Name
Type
Description
sightseeingName
String
Name of sightseeing product
product
HrefWrapper
URI of sightseeing product
startDate
String
Start date for sightseeing
startTime
String
Start time for sightseeing in 24 hour format (if applicable)
finishDate
String
Finish date for sightseeing
startingPoint
String
Starting point for sightseeing
finishingPoint
String
Finishing point for sightseeing
city
String
City of sightseeing
currency
String
Currency
totalPrice
Decimal
Total gross price for all customers on sightseeing
duration
String
Number of days for sightseeing
customers
HrefWrapper
URI used to retrieve all customers on sightseeing
customerStatuses
Key Value Pair
Key/value pairs indicating the number of customers 
per status on the sightseeing; e.g.: 
{
''confirmed'': 2,
''cancelled'': 1
}
customerStatusIds
List<CustomerStatuses>
List of customer statuses along with url for each customer on that status
isUrbanAdventure
Boolean
Is an urban adventure sightseeing component
id
Integer
ID of the resource
href
String
URI of the resource
sequence
Int64
Sequence of product

Customerstatusids

Name
Type
Description
status
String
Customers status
customers
List<HrefWrapper>
Url of Customers in relevant status

Product

Name
Type
Description
href
String
URI of the resource

Customers

Name
Type
Description
href
String
URI of the resource

Response Codes

HTTP status code
Description
200 OK
The resource was retrieved successfully
400 Bad Request
The resource was malformed
401 Unauthorized
Missing or invalid API key
404 Not Found
The specified resource was not found
500 Internal Server Error
An unexpected error occurred on the API server

Response Example

{
  "sightseeingList": [
    {
      "sightseeingName": "Single Session Kayak - Arctic",
      "product": {
        "href": "/products/91066"
      },
      "startDate": "2016-04-10",
      "startTime": "19:30",
      "finishDate": "2016-04-17",
      "startingPoint": "Hotel Kyron, New Delhi",
      "finishingPoint": "Hotel Kyron, New Delhi",
      "city": "New Delhi",
      "currency": "aud",
      "totalPrice": 185.0,
      "duration": "9",
      "customers": {
        "href": "/sightseeing/887124/customers"
      },
      "customerStatuses": {
        "confirmed": 2,
        "tentative": 1
      },
      "customerStatusIds": [
        {
          "status": "tentative",
          "customers": [
            {
              "href": "/context/5057124/customers/4945398"
            },
            {
              "href": "/context/5057124/customers/4945398"
            }
          ]
        },
        {
          "status": "tentative",
          "customers": [
            {
              "href": "/context/5057124/customers/4945398"
            },
            {
              "href": "/context/5057124/customers/4945398"
            }
          ]
        }
      ],
      "isUrbanAdventure": false,
      "id": 887124,
      "href": "context/contextid/sightseeing/887124",
      "sequence": "202403312359580000"
    },
    {
      "sightseeingName": "Single Session Kayak - Arctic",
      "product": {
        "href": "/products/91066"
      },
      "startDate": "2016-04-10",
      "startTime": "19:30",
      "finishDate": "2016-04-17",
      "startingPoint": "Hotel Kyron, New Delhi",
      "finishingPoint": "Hotel Kyron, New Delhi",
      "city": "New Delhi",
      "currency": "aud",
      "totalPrice": 185.0,
      "duration": "9",
      "customers": {
        "href": "/sightseeing/887124/customers"
      },
      "customerStatuses": {
        "confirmed": 2,
        "tentative": 1
      },
      "customerStatusIds": [
        {
          "status": "tentative",
          "customers": [
            {
              "href": "/context/5057124/customers/4945398"
            },
            {
              "href": "/context/5057124/customers/4945398"
            }
          ]
        },
        {
          "status": "tentative",
          "customers": [
            {
              "href": "/context/5057124/customers/4945398"
            },
            {
              "href": "/context/5057124/customers/4945398"
            }
          ]
        }
      ],
      "isUrbanAdventure": false,
      "id": 887124,
      "href": "context/contextid/sightseeing/887124",
      "sequence": "202403312359580000"
    }
  ]
}