Trips
Get trip
Changed onRetrieves trip info by ID. {% admonition type="warning" name="Deprecation notice" %} The Get Trip /v2/trips/{tripId} endpoint has been deprecated. Use the new Get trip details /v3/trips/{tripId}/detail endpoint instead. {% /admonition %}
get/v2/trips/{tripId}
Request
- Base URLhttps://api-ext-sboxmeta.partners.spotnana.com
- AuthHTTP bearer
Response
OK
Example response
{
"tripId": "6926658168",
"tripName": "JFK SFO Trip",
"tripDescription": "JFK SFO Business Trip",
"startDate": {
"iso8601": "2017-07-21"
},
"endDate": {
"iso8601": "2017-07-21"
},
"tripMetadata": {
"hasTripOverride": true,
"preferredCurrency": "USD",
"tripContacts": [
{
"label": "Coordinator",
"name": "Himani Jain",
"email": "himani@spotnana.com",
"phoneNumber": {
"countryCode": 91,
"countryCodeSource": "FROM_NUMBER_WITH_PLUS_SIGN",
"extension": "222",
"isoCountryCode": "IN",
"italianLeadingZero": true,
"nationalNumber": 8150,
"numberOfLeadingZeros": 1,
"preferredDomesticCarrierCode": "7",
"rawInput": "77777",
"type": "MOBILE"
},
"isPrimary": true,
"restrictVisibility": true
}
],
"tripCommunicationPreferences": {
"tripEmailPreferences": {
"bucketEmailPreferences": {
"bucketTypes": [
"BOOKING_CONFIRMATIONS"
],
"toEmails": [
"example@email.com"
],
"ccEmails": [
"example@email.com"
],
"bccEmails": [
"example@email.com"
]
}
}
}
},
"stealthType": "STEALTH_TYPE_1",
"stealthMode": {
"stealthType": "STEALTH_TYPE_1"
},
"tripLocations": [
{
"metroAreaName": "San Francisco"
}
],
"tripHeaderImages": [
{
"data": "6935813e12584abda0e43d71cd2ea260",
"dimensions": {
"height": 120,
"width": 240
},
"url": "https://static.wixstatic.com/media/73f2e2_6935813e12584abda0e43d71cd2ea260~mv2.png/v1/fill/w_630,h_94,al_c,q_85,usm_0.66_1.00_0.01/Spotnana%403x.webp",
"metadata": {
"variant": "LIGHT"
}
}
]
}Changes
- info
added the optional property
/to the response with the status
- info
- info
added the optional property
to the response with the status
- info