openapi: 3.0.0
info:
version: 4.15.0
title: Trip Ninja API Documentation
description: ''
servers:
- url: https://sandbox.tripninja.io
description: Sandbox server
paths:
/v3/report/cancel/:
post:
summary: Cancel Booking Report
description: ''
operationId: ''
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CancelRequest'
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
status:
type: number
description: Status code indicating request outcome.
example: 200
message:
type: string
description: A human-readable message providing more details. (e.g., "Trip has
been cancelled.")
example: Trip has been cancelled.
'400':
description: Invalid Input
content:
application/json:
schema:
type: object
properties:
status:
type: string
description: A human-readable error code. (e.g., "IE13")
example: IE23
message:
type: string
description: A human-readable message providing more details. (e.g., "Currency
is required")
example: Not a valid search
examples:
IE52ErrorCode:
$ref: '#/components/examples/IE52ErrorCode'
IE41ErrorCode:
$ref: '#/components/examples/IE41ErrorCode'
'401':
description: Unauthorized
content:
application/json:
schema:
type: object
properties:
status:
type: string
description: A human-readable error code. (e.g., "IE13")
example: IE44
message:
type: string
description: A human-readable message providing more details. (e.g., "User is
not authorized")
example: User is not authorized
components:
schemas:
CancelRequest:
title: Request
type: object
required:
- trip_id
properties:
trip_id:
type: string
description: Unique identifier from get-searches for this search. Used in all subsequent
requests related to this trip.
example: gAAAAABoElDHItHlqVNLp7dSOFaKmldHwk_d_5lBZIUhTMFJXmNnh-zpPbrPBCm-nZhqTQNeRgTt8e7X0KTOyg0cuLiB3s61xAYDoOWNMjWjM5Ln2wgSItqalRiymlk5PCcokfM3LAqp09u1i3bpWHxNTrT6yOEYk_hEwFxXwdQpkQroawW-hZUQAQM2M9763o2nWLt-LVgX0M-F2unSvWep7l9c5C8pcHxdKQ1GPdm6sxdkEgV30_9U_C-59CvVAcHWpontAcIh6kO6NSC-4_jJ4xQitlbxGyDxAd3PyuEWGBTVfdTGm8qeCEQG_XVvLDy5_uKOq9vY9i6STo-XB-kYSULYCGJ720gOFd3Ohpp1u5n20yg2I8I0hbc-227FWQFp_hBmpdvATvU9SIbl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-I-7OfR3EXiQLlIsR5eCy7_2nrjTwwtaO1l99Ax5I4q-rnb97qSs52o5tdEwchNURafUsENTHzPIRcgbxSPpSW3ke5j0LjqOlWRGTjrl81v4WKTJocMUEV8v61OtLOKuGPF8N_SUx4NbHw1Bar3NYGeLl1BV2B7G8ZBHXfplXV2aqM5PgygFSVXRf7Olr0zWLp9wn5
examples:
IE52ErrorCode:
summary: Trip ID Validation Error
value:
status: IE52
message: Trip ID not found
IE41ErrorCode:
summary: Invalid Itinerary Status Validation Error
value:
status: IE41
message: Invalid itinerary status, you cannot set a cancelled itinerary to a cancelled itinerary.
Make sure you are following the workflow stated in documentation. If error continues to occur,
please contact support@tripninja.io