{
    "openapi": "3.0.3",
    "info": {
        "title": "Cancun Shuttle Systems Partner API",
        "version": "2.0.0",
        "description": "Website pricing and booking rules. Credentials in X-Api-Key and X-Api-Pass. All dates/times use the website timezone: America/Cancun. 60 requests/minute per partner and 120/minute per IP. Quotes last 30 minutes. Checkout and idempotency records last seven days."
    },
    "servers": [
        {
            "url": "https://api.cancunshuttlesystems.com"
        }
    ],
    "paths": {
        "/v2/ping": {
            "get": {
                "operationId": "ping",
                "tags": [
                    "Connection"
                ],
                "summary": "Check connection",
                "description": "Verify your partner credentials and API connectivity.",
                "security": [
                    {
                        "ApiKey": [],
                        "ApiPass": []
                    }
                ],
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Success"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "status": "ok",
                                        "service": "Cancun Shuttle Systems Partner API"
                                    },
                                    "meta": {
                                        "version": "2.0",
                                        "request_id": "request-uuid",
                                        "timestamp": "2026-12-04T04:17:10-05:00"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid credentials",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Account disabled",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource not found or expired",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Checkout, price or idempotency conflict",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Provider unavailable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v2/locations/top": {
            "get": {
                "operationId": "top-locations",
                "tags": [
                    "Locations"
                ],
                "summary": "Popular locations",
                "description": "Get active locations and their coordinates.",
                "security": [
                    {
                        "ApiKey": [],
                        "ApiPass": []
                    }
                ],
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Success"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "name": "Cancun International Airport",
                                            "address": "Cancun International Airport",
                                            "latitude": 21.0365,
                                            "longitude": -86.8515,
                                            "type": "airport"
                                        }
                                    ],
                                    "meta": {
                                        "version": "2.0",
                                        "request_id": "request-uuid",
                                        "timestamp": "2026-12-04T04:17:10-05:00"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid credentials",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Account disabled",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource not found or expired",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Checkout, price or idempotency conflict",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Provider unavailable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v2/locations": {
            "get": {
                "operationId": "locations",
                "tags": [
                    "Locations"
                ],
                "summary": "Search locations",
                "description": "Autocomplete within the website service area. Resolve a place_id with location details before requesting a quote.",
                "security": [
                    {
                        "ApiKey": [],
                        "ApiPass": []
                    }
                ],
                "parameters": [
                    {
                        "in": "query",
                        "name": "term",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 200
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Success"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "place_id": "google-place-id",
                                            "name": "Marriott Cancun Resort"
                                        }
                                    ],
                                    "meta": {
                                        "version": "2.0",
                                        "request_id": "request-uuid",
                                        "timestamp": "2026-12-04T04:17:10-05:00"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid credentials",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Account disabled",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource not found or expired",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Checkout, price or idempotency conflict",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Provider unavailable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v2/locations/details": {
            "get": {
                "operationId": "location-details",
                "tags": [
                    "Locations"
                ],
                "summary": "Location details",
                "description": "Get a location name, address and coordinates from a Google place_id.",
                "security": [
                    {
                        "ApiKey": [],
                        "ApiPass": []
                    }
                ],
                "parameters": [
                    {
                        "in": "query",
                        "name": "place_id",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "maxLength": 500
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Success"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "name": "Marriott Cancun Resort",
                                        "address": "Hotel Zone, Cancun",
                                        "latitude": 21.0861891,
                                        "longitude": -86.7713935,
                                        "type": "hotel"
                                    },
                                    "meta": {
                                        "version": "2.0",
                                        "request_id": "request-uuid",
                                        "timestamp": "2026-12-04T04:17:10-05:00"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid credentials",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Account disabled",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource not found or expired",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Checkout, price or idempotency conflict",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Provider unavailable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v2/airlines": {
            "get": {
                "operationId": "airlines",
                "tags": [
                    "Flights"
                ],
                "summary": "List airlines",
                "description": "Get active airline codes for airport trips.",
                "security": [
                    {
                        "ApiKey": [],
                        "ApiPass": []
                    }
                ],
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Success"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "code": "AA",
                                            "name": "American Airlines"
                                        }
                                    ],
                                    "meta": {
                                        "version": "2.0",
                                        "request_id": "request-uuid",
                                        "timestamp": "2026-12-04T04:17:10-05:00"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid credentials",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Account disabled",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource not found or expired",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Checkout, price or idempotency conflict",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Provider unavailable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v2/quotes": {
            "post": {
                "operationId": "quotes",
                "tags": [
                    "Booking"
                ],
                "summary": "Get a quote",
                "description": "Get services and website prices. Quotes expire in 30 minutes. Use trip_type roundtrip and add a return object with date, time, airline_code and flight_number for return trips. The website currently accepts round trips starting at the airport. Airport legs require flight details. Dates and times use the website timezone.",
                "security": [
                    {
                        "ApiKey": [],
                        "ApiPass": []
                    }
                ],
                "parameters": [],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/QuoteRequest"
                            },
                            "example": {
                                "trip_type": "oneway",
                                "passengers": 2,
                                "pickup": {
                                    "name": "Cancun International Airport",
                                    "address": "Cancun International Airport",
                                    "latitude": 21.0365,
                                    "longitude": -86.8515,
                                    "type": "airport"
                                },
                                "dropoff": {
                                    "name": "Marriott Cancun Resort",
                                    "address": "Hotel Zone, Cancun",
                                    "latitude": 21.0861891,
                                    "longitude": -86.7713935,
                                    "type": "hotel"
                                },
                                "outbound": {
                                    "date": "2026-12-14",
                                    "time": "14:00",
                                    "airline_code": "AA",
                                    "flight_number": "123"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Success"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "quote_id": "quote-uuid",
                                        "expires_at": "ISO-8601 timestamp",
                                        "trip_type": "oneway",
                                        "services": [
                                            {
                                                "service_id": "encoded-rate-id",
                                                "service": {
                                                    "name": "Service name"
                                                },
                                                "price": {
                                                    "oneway_total_amount": "40.00",
                                                    "off_peak_surcharge": "0.00",
                                                    "total_amount": "40.00"
                                                }
                                            }
                                        ]
                                    },
                                    "meta": {
                                        "version": "2.0",
                                        "request_id": "request-uuid",
                                        "timestamp": "2026-12-04T04:17:10-05:00"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid credentials",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Account disabled",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource not found or expired",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Checkout, price or idempotency conflict",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Provider unavailable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v2/flights/timing": {
            "post": {
                "operationId": "flight-timing",
                "tags": [
                    "Flights"
                ],
                "summary": "Check flight timing",
                "description": "Use the selected quote and service to get the website flight timing, calculated pickup time and booking availability. leg is outbound or return.",
                "security": [
                    {
                        "ApiKey": [],
                        "ApiPass": []
                    }
                ],
                "parameters": [],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/FlightRequest"
                            },
                            "example": {
                                "quote_id": "YOUR_QUOTE_UUID",
                                "service_id": "YOUR_SERVICE_ID",
                                "leg": "outbound"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Success"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "status": "success",
                                        "time": "14:00",
                                        "pickupTime": "13:40",
                                        "bookingAvailable": "yes"
                                    },
                                    "meta": {
                                        "version": "2.0",
                                        "request_id": "request-uuid",
                                        "timestamp": "2026-12-04T04:17:10-05:00"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid credentials",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Account disabled",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource not found or expired",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Checkout, price or idempotency conflict",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Provider unavailable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v2/payments/setup": {
            "post": {
                "operationId": "payment-setup",
                "tags": [
                    "Payments"
                ],
                "summary": "Start payment setup",
                "description": "Create a Stripe SetupIntent for the selected quote, service and passenger. Confirm the returned client_secret using Stripe.js / Stripe Elements on your checkout page. Customer data is bound to this checkout.",
                "security": [
                    {
                        "ApiKey": [],
                        "ApiPass": []
                    }
                ],
                "parameters": [],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PaymentSetup"
                            },
                            "example": {
                                "quote_id": "YOUR_QUOTE_UUID",
                                "service_id": "YOUR_SERVICE_ID",
                                "customer": {
                                    "first_name": "Example",
                                    "last_name": "Passenger",
                                    "email": "passenger@example.com",
                                    "phone": "+15555550100"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Success"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "success": true,
                                        "uuid": "checkout-uuid",
                                        "client_secret": "seti_example_secret_example"
                                    },
                                    "meta": {
                                        "version": "2.0",
                                        "request_id": "request-uuid",
                                        "timestamp": "2026-12-04T04:17:10-05:00"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid credentials",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Account disabled",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource not found or expired",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Checkout, price or idempotency conflict",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Provider unavailable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v2/payments/method": {
            "post": {
                "operationId": "payment-method",
                "tags": [
                    "Payments"
                ],
                "summary": "Save confirmed payment method",
                "description": "After Stripe confirms the SetupIntent, send its payment_method ID. It must belong to this checkout and the SetupIntent must have succeeded.",
                "security": [
                    {
                        "ApiKey": [],
                        "ApiPass": []
                    }
                ],
                "parameters": [],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PaymentMethod"
                            },
                            "example": {
                                "uuid": "YOUR_CHECKOUT_UUID",
                                "payment_method_id": "pm_example"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Success"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "success": true,
                                        "message": "Payment method processed successfully."
                                    },
                                    "meta": {
                                        "version": "2.0",
                                        "request_id": "request-uuid",
                                        "timestamp": "2026-12-04T04:17:10-05:00"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid credentials",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Account disabled",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource not found or expired",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Checkout, price or idempotency conflict",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Provider unavailable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v2/payments/authorize": {
            "post": {
                "operationId": "payment-authorize",
                "tags": [
                    "Payments"
                ],
                "summary": "Authorize payment",
                "description": "Use the website payment authorization flow. It currently authorizes trips within two days; later bookings keep the saved method for the existing website process. When customer authentication is required, error.details includes requires_action and the Stripe client_secret. Complete authentication using Stripe.js, then retry.",
                "security": [
                    {
                        "ApiKey": [],
                        "ApiPass": []
                    }
                ],
                "parameters": [],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CheckoutRequest"
                            },
                            "example": {
                                "uuid": "YOUR_CHECKOUT_UUID"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Success"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "success": true,
                                        "message": "Payment authorized successfully",
                                        "payment_status": "requires_capture"
                                    },
                                    "meta": {
                                        "version": "2.0",
                                        "request_id": "request-uuid",
                                        "timestamp": "2026-12-04T04:17:10-05:00"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid credentials",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Account disabled",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource not found or expired",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Checkout, price or idempotency conflict",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Provider unavailable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v2/reservations": {
            "post": {
                "operationId": "reservation-create",
                "tags": [
                    "Reservations"
                ],
                "summary": "Create reservation",
                "description": "Book the checkout using the website reservation helper. Payment setup and the saved method are required; the website authorization check runs again. Send Idempotency-Key to retry safely. A used checkout returns its existing booking. No API-specific discounts apply.",
                "security": [
                    {
                        "ApiKey": [],
                        "ApiPass": []
                    }
                ],
                "parameters": [
                    {
                        "in": "header",
                        "name": "Idempotency-Key",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "minLength": 8,
                            "maxLength": 128
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ReservationRequest"
                            },
                            "example": {
                                "uuid": "YOUR_CHECKOUT_UUID",
                                "additional_info": "Two suitcases"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Success"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "booking_id": "encoded-booking-id",
                                        "outbound": {
                                            "status": "pending",
                                            "voucher_url": "https://cancunshuttlesystems.com/transfer-voucher/ID"
                                        },
                                        "return": null
                                    },
                                    "meta": {
                                        "version": "2.0",
                                        "request_id": "request-uuid",
                                        "timestamp": "2026-12-04T04:17:10-05:00"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid credentials",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Account disabled",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource not found or expired",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Checkout, price or idempotency conflict",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Provider unavailable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "200": {
                        "description": "Idempotent replay",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Success"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "booking_id": "encoded-booking-id",
                                        "outbound": {
                                            "status": "pending",
                                            "voucher_url": "https://cancunshuttlesystems.com/transfer-voucher/ID"
                                        },
                                        "return": null
                                    },
                                    "meta": {
                                        "version": "2.0",
                                        "request_id": "request-uuid",
                                        "timestamp": "2026-12-04T04:17:10-05:00"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "get": {
                "operationId": "reservation-list",
                "tags": [
                    "Reservations"
                ],
                "summary": "List reservations",
                "description": "List this partner account bookings. Optional status, from_date, to_date, page and per_page filters. Pagination is returned in meta.pagination.",
                "security": [
                    {
                        "ApiKey": [],
                        "ApiPass": []
                    }
                ],
                "parameters": [
                    {
                        "in": "query",
                        "name": "page",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "in": "query",
                        "name": "per_page",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "in": "query",
                        "name": "status",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "pending",
                                "assigned",
                                "accepted",
                                "in_progress",
                                "completed",
                                "cancelled"
                            ]
                        }
                    },
                    {
                        "in": "query",
                        "name": "from_date",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "in": "query",
                        "name": "to_date",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Success"
                                },
                                "example": {
                                    "success": true,
                                    "data": [
                                        {
                                            "booking_id": "encoded-booking-id",
                                            "outbound": {
                                                "status": "pending"
                                            },
                                            "return": null
                                        }
                                    ],
                                    "meta": {
                                        "version": "2.0",
                                        "request_id": "request-uuid",
                                        "timestamp": "2026-12-04T04:17:10-05:00"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid credentials",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Account disabled",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource not found or expired",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Checkout, price or idempotency conflict",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Provider unavailable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v2/reservations/{id}": {
            "get": {
                "operationId": "reservation-show",
                "tags": [
                    "Reservations"
                ],
                "summary": "Reservation details",
                "description": "Get a booking belonging to your partner account using the encoded booking_id returned by creation or listing.",
                "security": [
                    {
                        "ApiKey": [],
                        "ApiPass": []
                    }
                ],
                "parameters": [
                    {
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Encoded booking_id"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Success"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "booking_id": "encoded-booking-id",
                                        "outbound": {
                                            "status": "pending"
                                        },
                                        "return": null
                                    },
                                    "meta": {
                                        "version": "2.0",
                                        "request_id": "request-uuid",
                                        "timestamp": "2026-12-04T04:17:10-05:00"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid credentials",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Account disabled",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource not found or expired",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Checkout, price or idempotency conflict",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Provider unavailable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v2/reservations/{id}/cancel": {
            "post": {
                "operationId": "reservation-cancel",
                "tags": [
                    "Reservations"
                ],
                "summary": "Cancel reservation",
                "description": "Set the booking and its return leg to cancelled using the website reservation updater. This endpoint does not issue a refund or void a Stripe authorization; financial adjustments remain in the existing website workflow.",
                "security": [
                    {
                        "ApiKey": [],
                        "ApiPass": []
                    }
                ],
                "parameters": [
                    {
                        "in": "path",
                        "name": "id",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Encoded booking_id"
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CancelRequest"
                            },
                            "example": {
                                "comment": "Passenger requested cancellation"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Success"
                                },
                                "example": {
                                    "success": true,
                                    "data": {
                                        "booking_id": "encoded-booking-id",
                                        "outbound": {
                                            "status": "cancelled"
                                        },
                                        "return": null
                                    },
                                    "meta": {
                                        "version": "2.0",
                                        "request_id": "request-uuid",
                                        "timestamp": "2026-12-04T04:17:10-05:00"
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid credentials",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Account disabled",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Resource not found or expired",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "409": {
                        "description": "Checkout, price or idempotency conflict",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Validation failed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit exceeded",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Server error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Provider unavailable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "ApiKey": {
                "type": "apiKey",
                "in": "header",
                "name": "X-Api-Key"
            },
            "ApiPass": {
                "type": "apiKey",
                "in": "header",
                "name": "X-Api-Pass"
            }
        },
        "schemas": {
            "Location": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string"
                    },
                    "address": {
                        "type": "string"
                    },
                    "latitude": {
                        "type": "number",
                        "minimum": -90,
                        "maximum": 90
                    },
                    "longitude": {
                        "type": "number",
                        "minimum": -180,
                        "maximum": 180
                    },
                    "type": {
                        "type": "string",
                        "enum": [
                            "airport",
                            "hotel",
                            "port",
                            "custom"
                        ]
                    }
                },
                "required": [
                    "name",
                    "latitude",
                    "longitude",
                    "type"
                ]
            },
            "Leg": {
                "type": "object",
                "properties": {
                    "date": {
                        "type": "string",
                        "format": "date"
                    },
                    "time": {
                        "type": "string",
                        "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$"
                    },
                    "airline_code": {
                        "type": "string",
                        "description": "Required for airport legs."
                    },
                    "flight_number": {
                        "type": "string",
                        "description": "Numeric flight number, required for airport legs."
                    }
                },
                "required": [
                    "date",
                    "time"
                ]
            },
            "QuoteRequest": {
                "type": "object",
                "properties": {
                    "trip_type": {
                        "type": "string",
                        "enum": [
                            "oneway",
                            "roundtrip"
                        ]
                    },
                    "passengers": {
                        "type": "integer",
                        "minimum": 1
                    },
                    "pickup": {
                        "$ref": "#/components/schemas/Location"
                    },
                    "dropoff": {
                        "$ref": "#/components/schemas/Location"
                    },
                    "outbound": {
                        "$ref": "#/components/schemas/Leg"
                    },
                    "return": {
                        "$ref": "#/components/schemas/Leg",
                        "description": "Required for roundtrip; omit for oneway."
                    }
                },
                "required": [
                    "trip_type",
                    "passengers",
                    "pickup",
                    "dropoff",
                    "outbound"
                ]
            },
            "FlightRequest": {
                "type": "object",
                "properties": {
                    "quote_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "service_id": {
                        "type": "string"
                    },
                    "leg": {
                        "type": "string",
                        "enum": [
                            "outbound",
                            "return"
                        ]
                    }
                },
                "required": [
                    "quote_id",
                    "service_id",
                    "leg"
                ]
            },
            "Customer": {
                "type": "object",
                "properties": {
                    "first_name": {
                        "type": "string"
                    },
                    "last_name": {
                        "type": "string"
                    },
                    "email": {
                        "type": "string",
                        "format": "email"
                    },
                    "phone": {
                        "type": "string"
                    }
                },
                "required": [
                    "first_name",
                    "last_name",
                    "email",
                    "phone"
                ]
            },
            "PaymentSetup": {
                "type": "object",
                "properties": {
                    "quote_id": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "service_id": {
                        "type": "string"
                    },
                    "customer": {
                        "$ref": "#/components/schemas/Customer"
                    }
                },
                "required": [
                    "quote_id",
                    "service_id",
                    "customer"
                ]
            },
            "CheckoutRequest": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "format": "uuid"
                    }
                },
                "required": [
                    "uuid"
                ]
            },
            "PaymentMethod": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "payment_method_id": {
                        "type": "string"
                    }
                },
                "required": [
                    "uuid",
                    "payment_method_id"
                ]
            },
            "ReservationRequest": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string",
                        "format": "uuid"
                    },
                    "additional_info": {
                        "type": "string"
                    },
                    "return_additional_info": {
                        "type": "string"
                    }
                },
                "required": [
                    "uuid"
                ]
            },
            "CancelRequest": {
                "type": "object",
                "properties": {
                    "comment": {
                        "type": "string"
                    }
                }
            },
            "Success": {
                "type": "object",
                "properties": {
                    "success": {
                        "type": "boolean",
                        "enum": [
                            true
                        ]
                    },
                    "data": {},
                    "meta": {
                        "type": "object"
                    }
                },
                "required": [
                    "success",
                    "data",
                    "meta"
                ]
            },
            "Error": {
                "type": "object",
                "properties": {
                    "success": {
                        "type": "boolean",
                        "enum": [
                            false
                        ]
                    },
                    "error": {
                        "type": "object",
                        "properties": {
                            "code": {
                                "type": "string"
                            },
                            "message": {
                                "type": "string"
                            },
                            "details": {
                                "type": "object"
                            }
                        },
                        "required": [
                            "code",
                            "message",
                            "details"
                        ]
                    },
                    "meta": {
                        "type": "object"
                    }
                },
                "required": [
                    "success",
                    "error",
                    "meta"
                ]
            }
        }
    }
}