GET EmailData by context, contextId

Overview

Retrieve list of email ETI urls and trip start points for the trips in the booking Id

Request

GET /[context]/[contextId]/EmailData

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
bookingId
Integer
Booking id from the request
emailDataList
List<EmailData>
List of email datas for each trip in the request

Emaildatalist

Name
Type
Description
productId
Integer
Product Id of the trip
eTILink
String
URI for trip notes
tripStartingPoint
String
Trip starting point

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

{
  "bookingId": "123456",
  "emailDataList": [
    {
      "productId": "1234",
      "eTILink": "https://www.intrepidtravel.com/trips/151198/tripnotes",
      "tripStartingPoint": "Nouvo City Hotel (Canal Wing), Bangkok"
    },
    {
      "productId": "1234",
      "eTILink": "https://www.intrepidtravel.com/trips/151198/tripnotes",
      "tripStartingPoint": "Nouvo City Hotel (Canal Wing), Bangkok"
    }
  ]
}