openapi: 3.2.0
info:
version: 2.0.0
title: Trip Ninja API Documentation Super Trip API
description: "
\n | IE01 | Need minimum 2 destinations |
\n | IE02 | Duplicate city in list |
\n | IE09 | Can't run any queries for flight dates in the past |
\n | IE10 | Incorrect city_type, expected one of ['C', 'A'] |
\n | IE16 | Please provide a PCC |
\n | IE17 | Invalid carrier |
\n | IE19 | Incorrect region, expected one of 'emea', 'apac', 'americas' |
\n | IE20 | Incorrect provider, expected one of '1V','1G','1P','1A' |
\n | IE21 | Wrong currency |
\n | IE22 | Not a valid cabin option. expected one of 'E' , 'PE', 'SE', 'BC','FC', 'PFC' |
\n | IE23 | Not a valid alliance. Expected one of *A, *S, *O |
\n | IE24 | Travellers Type does not meet expected criteria. Should be a list having between 0 and 10 values |
\n | IE26 | Exclude_carriers, alliance and permitted_carriers are mutually exclusive - please choose one |
\n | IE27 | Num_results should be an integer between 50 and 250 |
\n | IE28 | Refundable parameter must be boolean value true or false |
\n | IE29 | Invalid Traveller type |
\n | IE30 | Incorrect value for single_pnr, must be boolean |
\n | IE31 | LCC token not associated with user |
\n | IE32 | Incorrect value for include_itineraries, must be boolean |
\n | IE33 | Stops must be one of 'any', 'direct', '1', '2' |
\n | IE34 | Incorrect value for no_overnight_layovers, must be boolean |
\n | IE36 | Invalid LCC name |
\n\n"
x-logo:
url: https://s3.amazonaws.com/tn-api-docs/trip_ninja_logo.png
altText: Trip Ninja logo
href: https://www.tripninja.io/
servers:
- url: https://preprodapi.tripninja.io
description: Pre-Production server
tags:
- name: Super Trip
paths:
/super_trip/{id}/:
put:
parameters:
- in: path
name: id
required: true
schema:
type: string
description: Super Trip ID provided
example: aksdhiywehe96wewe76
summary: Super Trip Nickname
description: This can be used to add a nickname to a super trip
operationId: SuperTrip
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SuperTripUpdateRequest'
responses:
200:
description: Success
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: success
500:
description: Unable to update the nickname
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: Unable to update the nickname. Internal Error
tags:
- Super Trip
/super_trip/{id}/part/:
delete:
parameters:
- in: path
name: id
required: true
schema:
type: string
description: Super Trip ID provided
example: aksdhiywehe96wewe76
summary: Super Trip Nickname
description: This can be used to remove flights/hotels/cars from a super trip
operationId: SuperTripPartDeletion
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SuperTripPartDeletionRequest'
responses:
200:
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/SuperTripPartDeletionResponse'
500:
description: Unable to update the nickname
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: Unable to update the nickname. Internal Error
tags:
- Super Trip
components:
schemas:
SuperTripPartDeletionRequest:
type: object
properties:
part_type:
type: string
description: Super Trip Part Type
example: itinerary
enum:
- itinerary
- hotel
- car
part_id:
type: string
description: Super Trip Part ID. (itinerary_id, hotel_reservation_id, car_rental_id)
example: hgasd65ashdg7a6w5
SuperTripUpdateRequest:
type: object
properties:
nickname:
type: string
description: Super Trip Nick name
example: My Super Trip
SuperTripPartDeletionResponse:
type: object
properties:
markup:
type: number
description: Only if part type is flight. Trip Ninja provided markup for all flights in this supertrip, updated based on the removed flight
example: 20.0