Cancel an Amadeus flight order via pay-per-request micropayment — $0.005 per call, no API keys.
What it does
This endpoint cancels a previously created Amadeus flight order by its order ID. It is part of the StableTravel API suite, which provides pay-per-request access to flights, hotels, activities, transfers, and real-time flight tracking data sourced from Amadeus GDS, FlightAware AeroAPI, and Google Flights (via SerpAPI). No API keys, OAuth tokens, or subscriptions are required — payment via USDC on Base, Solana, or Tempo (x402/MPP protocol) serves as authentication.
The cancel endpoint accepts a POST request with the flight order ID passed as a query parameter. The fixed price is $0.0054 per call (listed as ~$0.005 in the documentation). It returns a JSON response with a `data` object confirming the cancellation along with optional `dictionaries` and `warnings` fields. This endpoint is typically used as the final step in a flight management workflow: search → price → book → retrieve order → cancel order.
StableTravel is operated by Merit Systems and exposes a full OpenAPI 3.1 specification at `/openapi.json`. The API covers over 60 endpoints spanning Amadeus flight booking, hotel search and booking, activity discovery, airport transfers, reference data lookups, FlightAware real-time tracking, and Google Flights price comparison. All endpoints use the same micropayment protocol with prices ranging from $0.001 to $0.40 per request.
Capabilities
Use cases
- —Cancelling a flight order that was booked programmatically via the Amadeus GDS
- —Autonomous travel agents that need to cancel bookings when itineraries change
- —Automated refund or rebooking workflows that cancel existing orders before creating new ones
Fit
Best for
- —AI travel agents that manage end-to-end flight booking and cancellation
- —Developers building travel automation without wanting to manage Amadeus API keys
- —Pay-as-you-go flight order management with no subscription commitment
Not for
- —Cancelling bookings made outside the StableTravel/Amadeus system
- —High-volume batch cancellation workflows where subscription pricing would be cheaper
- —Direct airline cancellations requiring airline-specific loyalty or PNR systems
Quick start
# Cancel a flight order (requires order ID from a previous booking)
npx agentcash fetch -X POST \
"https://stabletravel.dev/api/flights/orders/cancel?id=ORDER_ID_HERE"Example
Response
{
"data": {},
"warnings": [],
"dictionaries": {}
}Endpoint
Quality
Full OpenAPI 3.1 schema with clear pricing, parameter definitions, and response schema. The endpoint is POST-only so the probe's HEAD/GET attempts returned 405, which is expected behavior — the endpoint is live. No example request/response bodies are provided in the docs for this specific endpoint, slightly limiting completeness.
Warnings
- —Probe returned 405 on HEAD and GET because this endpoint only accepts POST — this is expected, not a sign the endpoint is down.
- —No example request or response bodies are provided specifically for the cancel endpoint in the OpenAPI spec or docs.
- —The response schema for this endpoint uses empty `data` and `dictionaries` types (no detailed properties), so the exact cancellation response structure is unclear.
Citations
- —Cancel endpoint costs $0.005 per callhttps://stabletravel.dev/docs
- —Endpoint accepts POST with query parameter 'id' (flight order ID)https://stabletravel.dev/openapi.json
- —Fixed price is $0.005400 USD per the OpenAPI x-payment-infohttps://stabletravel.dev/openapi.json
- —Payment via USDC on Base, Solana, or Tempo (x402/MPP protocol) serves as authenticationhttps://stabletravel.dev
- —StableTravel is operated by Merit Systemshttps://stabletravel.dev/docs
- —Powered by Amadeus GDS, FlightAware AeroAPI, and Google Flights via SerpAPIhttps://stabletravel.dev/docs