Cancel an Amadeus airport transfer booking via pay-per-request API at $0.002/call.
What it does
This endpoint cancels a previously booked airport transfer order through StableTravel's Amadeus-backed transfer API. It accepts a POST request with the transfer orderId and confirmNbr in the JSON body and returns cancellation confirmation data. The endpoint costs $0.002 per call, settled via USDC on Base, Solana, or Tempo using the x402/MPP micropayment protocol — no API keys or subscriptions required.
StableTravel is a broader pay-per-request travel API suite covering flights (search, price, book, seatmaps, upsells), hotels (list, search, book), activities, transfers, reference data (airports, airlines, routes, cities), real-time flight tracking via FlightAware AeroAPI, and Google Flights price comparison. The transfers workflow is: search available transfers → book → cancel if needed. This cancel endpoint is the final step in that chain. All endpoints share the same payment-as-authentication model.
The endpoint is documented in a full OpenAPI 3.1 spec at stabletravel.dev/openapi.json with request/response schemas. The request body requires two string fields: orderId (the transfer order ID) and confirmNbr (the confirmation number received at booking time). The response returns a data object with cancellation details. Payment is handled automatically by x402/MPP-compatible clients such as `npx agentcash fetch`.
Capabilities
Use cases
- —Cancelling a previously booked airport transfer when travel plans change
- —Automated trip management agents that need to unwind transfer bookings
- —Refund or rebooking workflows that cancel existing ground transport before creating new ones
- —Travel assistant bots handling itinerary modifications on behalf of users
Fit
Best for
- —AI travel agents that programmatically manage end-to-end trip bookings including ground transport
- —Developers building travel automation without wanting to manage Amadeus API keys
- —Pay-as-you-go cancellation of airport transfers with no subscription overhead
Not for
- —Cancelling flights or hotel bookings (use the dedicated /flights/orders/cancel or hotel endpoints instead)
- —High-volume batch cancellation workflows where a direct Amadeus contract would be cheaper
- —Cancelling transfers booked outside of StableTravel's system
Quick start
npx agentcash fetch -X POST -H "Content-Type: application/json" \
-d '{"orderId": "YOUR_ORDER_ID", "confirmNbr": "YOUR_CONFIRM_NBR"}' \
"https://stabletravel.dev/api/transfers/cancel"Example
Request
{
"orderId": "12345678",
"confirmNbr": "ABC123DEF"
}Response
{
"data": {
"id": "12345678",
"type": "transfer-cancellation",
"status": "CANCELLED"
}
}Endpoint
Quality
Full OpenAPI 3.1 schema with request body definition, clear pricing ($0.002/call), and comprehensive guidance docs. The endpoint returned 405 on HEAD/GET probes which is expected since it only accepts POST. The response schema for the data field is loosely typed (no detailed properties), and no example response is provided in the spec, so the example_response_json is inferred.
Warnings
- —Endpoint returned 405 on HEAD and GET probes; this is expected as it only accepts POST — the endpoint is likely live but was not confirmed with a 402 challenge via POST probe.
- —Response schema for the data field is untyped (just {}) — actual response structure is not documented in detail.
- —Example response is inferred, not sourced from documentation.
Citations
- —Cancel transfer endpoint costs $0.002160 per call (fixed price in USD)https://stabletravel.dev/openapi.json
- —Request body requires orderId and confirmNbr as required string fieldshttps://stabletravel.dev/openapi.json
- —Payment via USDC on Base, Solana, or Tempo using x402/MPP protocol with no API keys neededhttps://stabletravel.dev
- —Transfer workflow is search → book → cancelhttps://stabletravel.dev/openapi.json
- —StableTravel is powered by Amadeus for hotels, activities, and transfershttps://stabletravel.dev