Gordiansoftware Cancel API
Cancel flights and some ancillaries.
Cancel flights and some ancillaries.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/gordiansoftware:gordiansoftware-cancel-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
version: '2.2'
title: Gordian Flights & Ancillaries Cancel API
description: API for selling flights and related ancillaries.
contact:
name: Gordian Software
url: https://www.gordiansoftware.com
email: partner@gordiansoftware.com
servers:
- url: https://api.gordiansoftware.com
description: Production
tags:
- name: Cancel
description: Cancel flights and some ancillaries.
paths:
/v2.2/trip/{trip_id}/to_cancel:
parameters:
- $ref: '#/components/parameters/tripIdParam'
post:
summary: Start cancellation check
description: 'Start a check for whether orders can be canceled and potential refunds.
Note: this can only be used for flights booked through Gordian or ancillaries
attached to flights booked through Gordian. This cannot be used for standalone
seat or bag bookings.
Currently only full-trip cancellation is supported: the provided item_ids
must cover all the trip''s order items (or be empty, which selects all of
them), and every item on the trip must already be fulfilled. Requests
that do not meet these constraints are rejected with an
invalid_trip_cancellation error.'
operationId: start_cancellation_check
tags:
- Cancel
security:
- api_key: []
- trip_access_token: []
requestBody:
content:
application/json:
schema:
oneOf:
- type: object
description: 'Information about the cancellation to check
'
required:
- item_ids
properties:
item_ids:
type: array
description: 'The ids of the items to include in the Cancellation Check. Currently only full-trip cancellation is supported, so this list must contain the ids of all the trip''s order items; a subset is rejected with an invalid_trip_cancellation error. If the list is empty, all order items are included by default.
'
items:
type: string
description: The ID of the item.
example: 795601a0-10fb-45de-87a7-676329152627
- type: array
description: The list of orders to cancel.
items:
type: string
description: The ID of the item in the order.
example: d29ba639-4d69-4608-be8c-a61321f0b452
responses:
'200':
description: Cancel requested
content:
application/json:
schema:
$ref: '#/paths/~1v2.2~1trip~1{trip_id}~1ticket~1{ticket_id}~1request_airline_refund/post/responses/200/content/application~1json/schema'
examples:
response:
value:
status: queued
default:
$ref: '#/components/responses/genericError'
get:
summary: Get cancellation details
description: Get the details of a cancellation, including the potential refund amount.
operationId: get_cancellation_amount
tags:
- Cancel
security:
- api_key: []
- trip_access_token: []
responses:
'200':
description: Get cancellation
content:
application/json:
schema:
type: object
description: Cancellation description, including a totals and an itemized list of items to cancel
properties:
status:
type: string
description: 'Current status of the cancellation. `cancelled` means the cancellation has gone through successfully, and you should see that reflected in the affected items. `checked` means that the cancellation check has completed successfully, and cancellation check results will be present. `checking` means that the cancellation check is in progress. `failed` means that the cancellation check has failed if you haven''t confirmed the cancellation, or that the actual cancellation has failed if you have confirmed the cancellation. `requested` means that the cancellation is in progress.
'
enum:
- cancelled
- checked
- checking
- failed
- requested
totals:
type: object
properties:
refund:
type: object
required:
- amount
- decimal_places
- currency
- refund_type
properties:
amount:
type: integer
description: The total amount in the most granular form of the currency. For example, $1 USD is 100 for 100 cents.
decimal_places:
type: integer
description: The number of decimal places in the total amount. For example, for USD, it is 2.
currency:
$ref: '#/paths/~1v2.2~1trip/post/requestBody/content/application~1json/schema/properties/currency'
refund_type:
$ref: '#/paths/~1v2.2~1sandbox~1trip~1{trip_id}~1item~1{item_id}~1issue_refund/post/requestBody/content/application~1json/schema/properties/refund_type/allOf/0'
original_price:
type: object
required:
- base
- fees
- total
properties:
base:
type: object
required:
- amount
- decimal_places
- currency
- in_original_currency
properties:
amount:
type: integer
description: The amount in the most granular form of the currency. For example, $1 USD is 100 for 100 cents.
decimal_places:
type: integer
description: The number of decimal places in the amount. For example, for USD, it is 2.
currency:
$ref: '#/paths/~1v2.2~1trip/post/requestBody/content/application~1json/schema/properties/currency'
in_original_currency:
type: object
description: The price in the currency the airline quoted
required:
- amount
- decimal_places
- currency
properties:
amount:
type: integer
description: The amount in the most granular form of the currency. For example, $1 USD is 100 for 100 cents.
decimal_places:
type: integer
description: The number of decimal places in the amount. For example, for USD, it is 2.
currency:
$ref: '#/paths/~1v2.2~1trip/post/requestBody/content/application~1json/schema/properties/currency'
in_settlement_currency:
type: object
description: The price in USD, which Gordian uses for settlement
required:
- amount
- decimal_places
- currency
properties:
amount:
type: integer
description: The amount in the most granular form of the currency. For example, $1 USD is 100 for 100 cents.
decimal_places:
type: integer
description: The number of decimal places in the amount. For example, for USD, it is 2.
currency:
$ref: '#/paths/~1v2.2~1trip/post/requestBody/content/application~1json/schema/properties/currency'
fees:
type: array
items:
allOf:
- $ref: '#/paths/~1v2.2~1trip~1{trip_id}~1to_cancel/get/responses/200/content/application~1json/schema/properties/totals/properties/original_price/properties/base'
- type: object
required:
- fee_type
properties:
fee_type:
type: string
enum:
- fee
taxes:
type: array
items:
allOf:
- $ref: '#/paths/~1v2.2~1trip~1{trip_id}~1to_cancel/get/responses/200/content/application~1json/schema/properties/totals/properties/original_price/properties/base'
- type: object
required:
- tax_type
properties:
tax_type:
type: string
example: tax
markups:
type: array
items:
allOf:
- $ref: '#/paths/~1v2.2~1trip~1{trip_id}~1to_cancel/get/responses/200/content/application~1json/schema/properties/totals/properties/original_price/properties/base'
- type: object
required:
- markup_type
properties:
markup_type:
type: string
enum:
- markup
- ota_markup
total:
$ref: '#/paths/~1v2.2~1trip~1{trip_id}~1to_cancel/get/responses/200/content/application~1json/schema/properties/totals/properties/original_price/properties/base'
items_to_cancel:
type: object
description: 'Items staged to be canceled if the Confirm Cancellation endpoint is called, keyed by the cancellation item id.
'
additionalProperties:
x-additionalPropertiesName: cancellation_item_id
type: object
required:
- refunds
- validity
- original_price
properties:
id:
type: string
description: The id of the cancellation item; the same value keys this object in items_to_cancel.
cancellation_id:
type: string
example: 83a2d656-9afa-4d2d-a8cf-fd64cbc05750
description: The unique cancellation ID for the product being cancelled.
trip_id:
$ref: '#/paths/~1v2.2~1trip~1{trip_id}~1search/post/responses/201/content/application~1json/schema/properties/trip_id'
item_id:
$ref: '#/paths/~1v2.2~1trip~1{trip_id}~1to_cancel/post/requestBody/content/application~1json/schema/oneOf/0/properties/item_ids/items'
product_id:
$ref: '#/paths/~1v2.2~1trip~1{trip_id}~1basket/put/requestBody/content/application~1json/schema/items/properties/product_id'
product_type:
$ref: '#/components/parameters/productTypeParam/schema'
refunds:
type: array
items:
$ref: '#/paths/~1v2.2~1trip~1{trip_id}~1to_cancel/get/responses/200/content/application~1json/schema/properties/totals/properties/refund'
validity:
properties:
status:
type: string
enum:
- valid
- checking
- needs_check
valid_from:
type: string
pattern: ^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d(Z|(\+|-)\d\d:\d\d)?$
example: '2020-12-24T08:49:00-07:00'
valid_until:
$ref: '#/paths/~1v2.2~1trip~1{trip_id}~1to_cancel/get/responses/200/content/application~1json/schema/properties/items_to_cancel/additionalProperties/properties/validity/properties/valid_from'
example:
status: valid
valid_from: '2000-01-01T00:00:00Z'
valid_until: '2000-01-01T00:15:00Z'
original_price:
$ref: '#/paths/~1v2.2~1trip~1{trip_id}~1to_cancel/get/responses/200/content/application~1json/schema/properties/totals/properties/original_price'
errors:
type: array
items:
type: object
required:
- title
- description
properties:
title:
description: Name of the error.
description:
description: Explanation of the error.
examples:
cancelled_ticket:
value:
totals:
original_price:
base:
amount: 20026
currency: USD
decimal_places: 2
in_original_currency:
amount: 20026
currency: USD
decimal_places: 2
fees: []
markups:
- amount: 2470
currency: USD
decimal_places: 2
in_original_currency:
amount: 2470
currency: USD
decimal_places: 2
markup_type: markup
airline_markups:
- amount: 2470
currency: USD
decimal_places: 2
in_original_currency:
amount: 2470
currency: USD
decimal_places: 2
markup_type: markup
taxes: []
total:
amount: 22496
currency: USD
decimal_places: 2
in_original_currency:
amount: 22496
currency: USD
decimal_places: 2
airline_total:
amount: 22496
currency: USD
decimal_places: 2
in_original_currency:
amount: 22496
currency: USD
decimal_places: 2
refund:
amount: 22496
currency: USD
decimal_places: 2
in_original_currency:
amount: 22496
currency: USD
decimal_places: 2
refund_type: cash
items_to_cancel:
d4cb3e69-3b13-41e8-8561-56909c9e179b:
id: d4cb3e69-3b13-41e8-8561-56909c9e179b
cancellation_id: 6c67f714-6d0f-451f-a485-0906a2f3ad37
trip_id: eeb3a1b7-f715-460e-9ba8-2c6e3c21f986
item_id: 834b52b0-39c7-4d40-a431-352b8ee7a5af
original_price:
base:
amount: 20026
currency: USD
decimal_places: 2
in_original_currency:
amount: 20026
currency: USD
decimal_places: 2
fees: []
markups:
- amount: 2470
currency: USD
decimal_places: 2
in_original_currency:
amount: 2470
currency: USD
decimal_places: 2
markup_type: markup
airline_markups:
- amount: 2470
currency: USD
decimal_places: 2
in_original_currency:
amount: 2470
currency: USD
decimal_places: 2
markup_type: markup
taxes: []
total:
amount: 22496
currency: USD
decimal_places: 2
in_original_currency:
amount: 22496
currency: USD
decimal_places: 2
airline_total:
amount: 22496
currency: USD
decimal_places: 2
in_original_currency:
amount: 22496
currency: USD
decimal_places: 2
product_id: 14256666-0196-4f9b-9ac6-a26871a2f2f3
product_type: ticket
refunds:
- amount: 22496
currency: USD
decimal_places: 2
in_original_currency:
amount: 22496
currency: USD
decimal_places: 2
refund_type: cash
validity:
valid_from: '2020-10-23T15:43:45+00:00'
valid_until: '2020-10-24T15:43:25+00:00'
status: valid
status: cancelled
checking:
value:
items_to_cancel: {}
status: checking
totals: {}
default:
$ref: '#/components/responses/genericError'
components:
parameters:
tripIdParam:
name: trip_id
in: path
required: true
description: The ID of the trip, which you get from the response of creating a trip.
schema:
type: string
productTypeParam:
name: product_type
in: path
required: true
description: The type of the product.
schema:
type: string
enum:
- ticket
- seat
- bag
- seating_preference
- automatic_check_in
- automatic_check_in_seating_preference
- lounge_access
- seating_choice
responses:
genericError:
description: Generic error.
content:
application/json:
schema:
description: Generic error.
type: object
properties:
errors:
type: array
items:
type: object
required:
- title
- description
properties:
title:
description: Name of the error.
description:
description: Explanation of the error.
securitySchemes:
api_key:
type: http
scheme: basic
description: 'For server-to-server calls, send your API key as the username and a *blank* password. For example, `curl -u $API_KEY: https://api.gordiansoftware.com/...`'
trip_access_token:
type: http
scheme: bearer
bearerFormat: JWT
description: 'Obtained from the [`POST /v2.2/trip`](#operation/create_trip) call. Send the `trip_access_token` in the header of client-to-server calls, that is, `Authorization: Bearer {trip_access_token}`'
trip_creation_token:
type: http
scheme: bearer
bearerFormat: JWT
description: 'Obtained from the [`POST /v2.2/authorize`](#operation/authorizeClient) call. In client-to-server calls, send the `trip_creation_token` in the header of the [POST /trip](#operation/create_trip) call to create a trip, that is, `Authorization: Bearer {trip_creation_token}`'
x-provenance:
method: searched
source: https://docs.gordiansoftware.com/reference
harvested: '2026-12-02'
tool: harvest-readme-openapi.py
note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
assembled_from:
- https://docs.gordiansoftware.com/reference/authorizeclient-1.md
- https://docs.gordiansoftware.com/reference/create_callback_subscription-1.md
- https://docs.gordiansoftware.com/reference/create_search-1.md
- https://docs.gordiansoftware.com/reference/createairlinerefundrequest-1.md
- https://docs.gordiansoftware.com/reference/deactivate_callback_subscription-1.md
- https://docs.gordiansoftware.com/reference/get_callback_subscription-1.md
- https://docs.gordiansoftware.com/reference/get_cancellation_amount-1.md
- https://docs.gordiansoftware.com/reference/list_callback_subscriptions-1.md
- https://docs.gordiansoftware.com/reference/productdetails-1.md
- https://docs.gordiansoftware.com/reference/refresh_trip_access_token-1.md
- https://docs.gordiansoftware.com/reference/sandboxissuerefund.md
- https://docs.gordiansoftware.com/reference/start_basket_check-1.md
- https://docs.gordiansoftware.com/reference/start_cancellation_check-1.md
merge:
pages: 13
deduped: 63
conflicts_kept_first: 0