# Get trip (deprecated) Retrieves 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 %} Endpoint: GET /v2/trips/{tripId} Version: v2 Security: Bearer ## Path parameters: - `tripId` (string, required) Identifier for trip. Example: "2398199412" ## Response 200 fields (application/json): - `tripId` (string, required) Spotnana trip Id Example: "6926658168" - `tripName` (string, required) Name of the trip Example: "JFK SFO Trip" - `tripDescription` (string) Trip description Example: "JFK SFO Business Trip" - `applicationId` (string) Application id used for the trip. - `startDate` (object) Date in ISO 8601 standard. - `startDate.iso8601` (string, required) Example: "2017-07-21" - `endDate` (object) Date in ISO 8601 standard. - `userId` (object) The user Id of the traveler to whom the trip belongs to. - `userId.id` (string, required) - `registrarUserId` (object) The user Id of the registrar of the adhoc traveler. - `tripMetadata` (object) Metadata for the trip - `tripMetadata.hasTripOverride` (boolean) Indicates if the trip has any profile overrides. Example: true - `tripMetadata.preferredCurrency` (string) The currency to be used for the trip. Example: "USD" - `tripMetadata.tripContacts` (array) - `tripMetadata.tripContacts.label` (string, required) Label for the contact Example: "Coordinator" - `tripMetadata.tripContacts.name` (string, required) Name of the contact Example: "Himani Jain" - `tripMetadata.tripContacts.email` (string) Email of the contact Example: "himani@spotnana.com" - `tripMetadata.tripContacts.phoneNumber` (object) Phone no. of the trip contact - `tripMetadata.tripContacts.phoneNumber.countryCode` (integer) two digit country code Example: 91 - `tripMetadata.tripContacts.phoneNumber.countryCodeSource` (string) Enum: "UNSPECIFIED", "FROM_NUMBER_WITH_PLUS_SIGN", "FROM_NUMBER_WITH_IDD", "FROM_NUMBER_WITHOUT_PLUS_SIGN", "FROM_DEFAULT_COUNTRY" - `tripMetadata.tripContacts.phoneNumber.extension` (string) phone number extension Example: "222" - `tripMetadata.tripContacts.phoneNumber.isoCountryCode` (string) ISO alpha-2 code Example: "IN" - `tripMetadata.tripContacts.phoneNumber.italianLeadingZero` (boolean) Example: true - `tripMetadata.tripContacts.phoneNumber.nationalNumber` (integer) Example: 8150 - `tripMetadata.tripContacts.phoneNumber.numberOfLeadingZeros` (integer) Example: 1 - `tripMetadata.tripContacts.phoneNumber.preferredDomesticCarrierCode` (string) Example: "7" - `tripMetadata.tripContacts.phoneNumber.rawInput` (string) Example: "77777" - `tripMetadata.tripContacts.phoneNumber.type` (string) Enum: "UNKNOWN_TYPE", "MOBILE", "LANDLINE" - `tripMetadata.tripContacts.isPrimary` (boolean) Whether the contact is primary or not Example: true - `tripMetadata.tripContacts.restrictVisibility` (boolean) Whether to restrict visibility of the contact to only agents and admins Example: true - `tripDisabledInfo` (object) Information regarding whether the trip is disabled and if so, the reason why. - `tripDisabledInfo.disabledReason` (string) Reason why the trip is disabled if applicable. Enum: "MAX_BOOKINGS_EXCEEDED", "TRIP_EXPIRED" - `tripDisabledInfo.isDisabled` (boolean) Indicates whether the trip is disabled or not. ## Response 401 fields (application/json): - `debugIdentifier` (string) Link to debug the error internally. - `errorMessages` (array) - `errorMessages.errorCode` (string) Error code to identify the specific errors. - `errorMessages.message` (string) Message containing details of error. - `errorMessages.errorParameters` (array) Error message parameters. - `errorMessages.errorParameters.name` (string) Parameter name - `errorMessages.errorParameters.value` (string) Parameter value - `errorMessages.errorDetail` (string) More details about the error. ## Response 403 fields (application/json): - `debugIdentifier` (string) Link to debug the error internally. - `errorMessages` (array) - `errorMessages.errorCode` (string) Error code to identify the specific errors. - `errorMessages.message` (string) Message containing details of error. - `errorMessages.errorParameters` (array) Error message parameters. - `errorMessages.errorParameters.name` (string) Parameter name - `errorMessages.errorParameters.value` (string) Parameter value - `errorMessages.errorDetail` (string) More details about the error. ## Response 404 fields (application/json): - `debugIdentifier` (string) Link to debug the error internally. - `errorMessages` (array) - `errorMessages.errorCode` (string) Error code to identify the specific errors. - `errorMessages.message` (string) Message containing details of error. - `errorMessages.errorParameters` (array) Error message parameters. - `errorMessages.errorParameters.name` (string) Parameter name - `errorMessages.errorParameters.value` (string) Parameter value - `errorMessages.errorDetail` (string) More details about the error.