openapi: 3.2.0 info: version: 4.15.0 title: Trip Ninja API Documentation Ticketing API description: "
\nimport base64\nauth = base64.b64encode(\"USERNAME:PASSWORD\")\nheaders = {\n 'authorization': \"Basic \"+ auth,\n}\nresponse = requests.post(url, headers=headers, data=json.dumps(payload))\n\n\n# Error Codes\n| IE01 | Need minimum 2 destinations |
| IE02 | Duplicate city in list |
| IE09 | Can't run any queries for flight dates in the past |
| IE10 | Incorrect city_type, expected one of ['C', 'A'] |
| IE16 | Please provide a PCC |
| IE17 | Invalid carrier |
| IE19 | Incorrect region, expected one of 'emea', 'apac', 'americas', 'edge' |
| IE20 | Incorrect provider, expected one of '1V','1G','1P','1A' |
| IE21 | Wrong currency |
| IE22 | Not a valid cabin option. expected one of 'E' , 'PE', 'SE', 'BC','FC', 'PFC' |
| IE23 | Not a valid alliance. Expected one of *A, *S, *O |
| IE24 | Travellers Type does not meet expected criteria. Should be a list having between 0 and 10 values |
| IE26 | Exclude_carriers, alliance and permitted_carriers are mutually exclusive - please choose one |
| IE27 | Num_results should be an integer between 50 and 5000 |
| IE28 | Refundable parameter must be boolean value true or false |
| IE29 | Invalid Traveller type |
| IE30 | Incorrect value for single_pnr, must be boolean |
| IE31 | LCC token not associated with user |
| IE32 | Incorrect value for include_itineraries, must be boolean |
| IE33 | Stops must be one of 'any', 'direct', '1', '2' |
| IE34 | Incorrect value for no_overnight_layovers, must be boolean |
| IE36 | Invalid LCC name |