This endpoint creates a trip object. A trip is a container object for all related PNRs associated with a trip.
Security
Bearer
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/trips
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/tripapi/v2/trips
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v2/trips \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"tripName": "string",
"tripDescription": "string",
"userId": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
},
"registrarId": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
},
"startDate": {
"iso8601": "2017-07-21"
},
"endDate": {
"iso8601": "2017-07-21"
}
}'