Skip to content

Create trip

Request

This endpoint creates a trip object. A trip is a container object for all related PNRs associated with a trip.

Security
Bearer
Bodyapplication/json
tripNamestringrequired

Name of the trip.

tripDescriptionstring

Description of the trip.

userIdobject(UserId)

User identifier

registrarIdobject(UserId)

Creator of the Trip.

startDateobject(Date)

Start date of the trip if known.

endDateobject(Date)

End date of the trip if known.

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"
    }
  }'

Responses

Created

Bodyapplication/json
idstring
Response
{ "id": "string" }