{
    "openapi": "3.1.0",
    "info": {
        "title": "Cars4Me — read-only agent pages API",
        "version": "1.3.0",
        "description": "Production site, Irkutsk. No authentication, cookie or nonce required. Shared existing quote engine. No bookings, leads, payments or holds. No-store responses. 60 requests/IP/minute and 120 quote units/minute; search reserves limit units. Exact addresses appear in URLs; do not send contact or payment data."
    },
    "servers": [
        {
            "url": "https://cars4me.ru/"
        }
    ],
    "security": [],
    "externalDocs": {
        "url": "https://cars4me.ru/ai/docs/en/"
    },
    "paths": {
        "/wp-json/c4m/v1/catalog": {
            "get": {
                "operationId": "agentCatalogGet",
                "summary": "Catalog — read-only, production data",
                "parameters": [
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "ru",
                                "en"
                            ],
                            "description": "HTML display language; preserved in search pagination. JSON field names and source business values remain unchanged."
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Inspect success, availability and test_only. Quotes do not reserve cars.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentCatalogEnvelope"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameters",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentErrorEnvelope"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Car not in public catalogue",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentErrorEnvelope"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Tariff or option not confirmed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit; respect Retry-After",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "schema": {
                                    "type": "integer",
                                    "minimum": 1
                                },
                                "description": "Seconds to wait before another attempt."
                            }
                        }
                    },
                    "503": {
                        "description": "Provider unavailable; availability unknown",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentErrorEnvelope"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/wp-json/c4m/v1/quote": {
            "get": {
                "operationId": "agentQuoteGet",
                "summary": "Quote — read-only, production data",
                "parameters": [
                    {
                        "name": "car_id",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "pickup_at",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}$",
                            "description": "Local Asia/Irkutsk time, no Z or offset. Future pickup; return later; maximum 370 days."
                        }
                    },
                    {
                        "name": "return_at",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}$",
                            "description": "Local Asia/Irkutsk time, no Z or offset. Future pickup; return later; maximum 370 days."
                        }
                    },
                    {
                        "name": "pickup_place",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "office",
                                "airport",
                                "address"
                            ],
                            "default": "office"
                        }
                    },
                    {
                        "name": "return_place",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "office",
                                "airport",
                                "address"
                            ],
                            "default": "office"
                        }
                    },
                    {
                        "name": "pickup_address",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "maxLength": 300
                        }
                    },
                    {
                        "name": "return_address",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "maxLength": 300
                        }
                    },
                    {
                        "name": "price_id",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 0,
                            "default": 0
                        }
                    },
                    {
                        "name": "optional_ids",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "description": "Comma-separated unique IDs from quote.optionals. Repeated optional_ids[] also accepted. Maximum 20."
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "ru",
                                "en"
                            ],
                            "description": "HTML display language; preserved in search pagination. JSON field names and source business values remain unchanged."
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Inspect success, availability and test_only. Quotes do not reserve cars.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentQuoteEnvelope"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameters",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentErrorEnvelope"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Car not in public catalogue",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentErrorEnvelope"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Tariff or option not confirmed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit; respect Retry-After",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "schema": {
                                    "type": "integer",
                                    "minimum": 1
                                },
                                "description": "Seconds to wait before another attempt."
                            }
                        }
                    },
                    "503": {
                        "description": "Provider unavailable; availability unknown",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentErrorEnvelope"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/wp-json/c4m/v1/search": {
            "get": {
                "operationId": "agentSearchGet",
                "summary": "Search — read-only, production data",
                "parameters": [
                    {
                        "name": "pickup_at",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}$",
                            "description": "Local Asia/Irkutsk time, no Z or offset. Future pickup; return later; maximum 370 days."
                        }
                    },
                    {
                        "name": "return_at",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}$",
                            "description": "Local Asia/Irkutsk time, no Z or offset. Future pickup; return later; maximum 370 days."
                        }
                    },
                    {
                        "name": "pickup_place",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "office",
                                "airport",
                                "address"
                            ],
                            "default": "office"
                        }
                    },
                    {
                        "name": "return_place",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "office",
                                "airport",
                                "address"
                            ],
                            "default": "office"
                        }
                    },
                    {
                        "name": "pickup_address",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "maxLength": 300
                        }
                    },
                    {
                        "name": "return_address",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "maxLength": 300
                        }
                    },
                    {
                        "name": "brand",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "maxLength": 80
                        }
                    },
                    {
                        "name": "min_seats",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "max_total",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "number",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "offset",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100,
                            "default": 0
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 20,
                            "default": 20
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "ru",
                                "en"
                            ],
                            "description": "HTML display language; preserved in search pagination. JSON field names and source business values remain unchanged."
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Inspect success, availability and test_only. Quotes do not reserve cars.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentSearchEnvelope"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameters",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentErrorEnvelope"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Car not in public catalogue",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentErrorEnvelope"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Tariff or option not confirmed",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentErrorEnvelope"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit; respect Retry-After",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentErrorEnvelope"
                                }
                            }
                        },
                        "headers": {
                            "Retry-After": {
                                "schema": {
                                    "type": "integer",
                                    "minimum": 1
                                },
                                "description": "Seconds to wait before another attempt."
                            }
                        }
                    },
                    "503": {
                        "description": "Provider unavailable; availability unknown",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentErrorEnvelope"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/wp-json/c4m/v1/changes": {
            "get": {
                "operationId": "agentChangesGet",
                "summary": "Published Cars4Me announcements; not a full price history",
                "parameters": [
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "ru",
                                "en"
                            ],
                            "default": "ru"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 1000,
                            "default": 1
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50,
                            "default": 20
                        }
                    },
                    {
                        "name": "category",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "tariffs",
                                "conditions",
                                "fleet",
                                "interface"
                            ]
                        }
                    },
                    {
                        "name": "id",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Published bilingual announcements. Follow pagination; use fresh rental quotes for prices.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/AgentChangesEnvelope"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid query"
                    },
                    "404": {
                        "description": "Public announcement not found"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "AgentCar": {
                "type": "object",
                "required": [
                    "car_id",
                    "name",
                    "url",
                    "seats",
                    "year",
                    "transmission",
                    "category"
                ],
                "properties": {
                    "car_id": {
                        "type": "integer"
                    },
                    "name": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "brand": {
                        "type": "string"
                    },
                    "seats": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "year": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "transmission": {
                        "type": "string"
                    },
                    "category": {
                        "type": "string"
                    },
                    "drive": {
                        "type": "string"
                    },
                    "image": {
                        "type": [
                            "object",
                            "null"
                        ]
                    },
                    "quote_page_url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "chat_url": {
                        "type": "string",
                        "format": "uri"
                    }
                }
            },
            "AgentQuote": {
                "type": "object",
                "required": [
                    "car_id",
                    "available",
                    "pickup_at",
                    "return_at",
                    "total",
                    "deposit",
                    "rental_total",
                    "services_total",
                    "optionals_total",
                    "tariffs",
                    "optionals",
                    "selected_price_id",
                    "selected_optionals"
                ],
                "properties": {
                    "car_id": {
                        "type": "integer"
                    },
                    "available": {
                        "type": "boolean"
                    },
                    "pickup_at": {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}$",
                        "description": "Local Asia/Irkutsk time, no Z or offset. Future pickup; return later; maximum 370 days."
                    },
                    "return_at": {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}$",
                        "description": "Local Asia/Irkutsk time, no Z or offset. Future pickup; return later; maximum 370 days."
                    },
                    "days": {
                        "type": "integer"
                    },
                    "rental_total": {
                        "type": "number",
                        "minimum": 0
                    },
                    "services_total": {
                        "type": "number",
                        "minimum": 0
                    },
                    "optionals_total": {
                        "type": "number",
                        "minimum": 0
                    },
                    "total": {
                        "type": "number",
                        "minimum": 0
                    },
                    "deposit": {
                        "type": "number",
                        "minimum": 0
                    },
                    "cash_total": {
                        "type": "number",
                        "minimum": 0
                    },
                    "daily_mileage": {
                        "type": "number",
                        "minimum": 0
                    },
                    "tariff_name": {
                        "type": "string"
                    },
                    "selected_price_id": {
                        "type": "integer"
                    },
                    "selected_optionals": {
                        "type": "array",
                        "items": {
                            "type": "integer"
                        }
                    },
                    "tariffs": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "optionals": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "service_lines": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "optional_lines": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    }
                }
            },
            "AgentQuoteData": {
                "type": "object",
                "required": [
                    "environment",
                    "test_only",
                    "booking_created",
                    "checked_at",
                    "car",
                    "available",
                    "quote",
                    "selection",
                    "continue_url",
                    "price_is_locked",
                    "chat_url",
                    "primary_contact_channel"
                ],
                "properties": {
                    "chat_url": {
                        "type": "string",
                        "format": "uri",
                        "description": "Always include this clickable operator-chat link in customer responses. Quotes preserve the selected car and rental details in the link."
                    },
                    "contact_url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "primary_contact_channel": {
                        "const": "operator_chat"
                    },
                    "agent_response_guidance": {
                        "type": "object"
                    },
                    "environment": {
                        "const": "production"
                    },
                    "test_only": {
                        "const": false
                    },
                    "booking_created": {
                        "const": false
                    },
                    "timezone": {
                        "const": "Asia/Irkutsk"
                    },
                    "currency": {
                        "const": "RUB"
                    },
                    "checked_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Time of this check, not a future price or availability guarantee. Include it when presenting a quote; recheck before booking."
                    },
                    "car": {
                        "$ref": "#/components/schemas/AgentCar"
                    },
                    "available": {
                        "type": "boolean"
                    },
                    "availability": {
                        "enum": [
                            "available",
                            "unavailable"
                        ]
                    },
                    "quote": {
                        "$ref": "#/components/schemas/AgentQuote"
                    },
                    "selection": {
                        "type": "object"
                    },
                    "continue_url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "validity": {
                        "const": "at_check_time_only"
                    },
                    "recheck_before_booking": {
                        "const": true
                    },
                    "price_is_locked": {
                        "const": false
                    },
                    "tariff_updated_at": {
                        "type": "null"
                    },
                    "booking_security_payment": {
                        "type": "object",
                        "properties": {
                            "amount": {
                                "type": "null"
                            },
                            "included_in_total": {
                                "const": false
                            },
                            "notice": {
                                "type": "string"
                            },
                            "terms_url": {
                                "type": "string",
                                "format": "uri"
                            }
                        }
                    }
                }
            },
            "AgentCatalogEnvelope": {
                "type": "object",
                "required": [
                    "success",
                    "data"
                ],
                "properties": {
                    "success": {
                        "const": true
                    },
                    "data": {
                        "type": "object",
                        "required": [
                            "environment",
                            "test_only",
                            "booking_created",
                            "cars",
                            "count",
                            "generated_at",
                            "availability_requires_quote",
                            "chat_url",
                            "primary_contact_channel"
                        ],
                        "properties": {
                            "chat_url": {
                                "type": "string",
                                "format": "uri",
                                "description": "Always include this clickable operator-chat link in customer responses. Quotes preserve the selected car and rental details in the link."
                            },
                            "contact_url": {
                                "type": "string",
                                "format": "uri"
                            },
                            "primary_contact_channel": {
                                "const": "operator_chat"
                            },
                            "agent_response_guidance": {
                                "type": "object"
                            },
                            "environment": {
                                "const": "production"
                            },
                            "test_only": {
                                "const": false
                            },
                            "booking_created": {
                                "const": false
                            },
                            "timezone": {
                                "const": "Asia/Irkutsk"
                            },
                            "currency": {
                                "const": "RUB"
                            },
                            "cars": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/AgentCar"
                                }
                            },
                            "count": {
                                "type": "integer"
                            },
                            "generated_at": {
                                "type": "string",
                                "format": "date-time"
                            },
                            "availability_requires_quote": {
                                "const": true
                            }
                        }
                    }
                }
            },
            "AgentQuoteEnvelope": {
                "type": "object",
                "required": [
                    "success",
                    "data"
                ],
                "properties": {
                    "success": {
                        "const": true
                    },
                    "data": {
                        "type": "object",
                        "required": [
                            "environment",
                            "test_only",
                            "booking_created",
                            "checked_at",
                            "car",
                            "available",
                            "quote",
                            "selection",
                            "continue_url",
                            "price_is_locked",
                            "chat_url",
                            "primary_contact_channel"
                        ],
                        "properties": {
                            "chat_url": {
                                "type": "string",
                                "format": "uri",
                                "description": "Always include this clickable operator-chat link in customer responses. Quotes preserve the selected car and rental details in the link."
                            },
                            "contact_url": {
                                "type": "string",
                                "format": "uri"
                            },
                            "primary_contact_channel": {
                                "const": "operator_chat"
                            },
                            "agent_response_guidance": {
                                "type": "object"
                            },
                            "environment": {
                                "const": "production"
                            },
                            "test_only": {
                                "const": false
                            },
                            "booking_created": {
                                "const": false
                            },
                            "timezone": {
                                "const": "Asia/Irkutsk"
                            },
                            "currency": {
                                "const": "RUB"
                            },
                            "checked_at": {
                                "type": "string",
                                "format": "date-time",
                                "description": "Time of this check, not a future price or availability guarantee. Include it when presenting a quote; recheck before booking."
                            },
                            "car": {
                                "$ref": "#/components/schemas/AgentCar"
                            },
                            "available": {
                                "type": "boolean"
                            },
                            "availability": {
                                "enum": [
                                    "available",
                                    "unavailable"
                                ]
                            },
                            "quote": {
                                "$ref": "#/components/schemas/AgentQuote"
                            },
                            "selection": {
                                "type": "object"
                            },
                            "continue_url": {
                                "type": "string",
                                "format": "uri"
                            },
                            "validity": {
                                "const": "at_check_time_only"
                            },
                            "recheck_before_booking": {
                                "const": true
                            },
                            "price_is_locked": {
                                "const": false
                            },
                            "tariff_updated_at": {
                                "type": "null"
                            },
                            "booking_security_payment": {
                                "type": "object",
                                "properties": {
                                    "amount": {
                                        "type": "null"
                                    },
                                    "included_in_total": {
                                        "const": false
                                    },
                                    "notice": {
                                        "type": "string"
                                    },
                                    "terms_url": {
                                        "type": "string",
                                        "format": "uri"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "AgentSearchEnvelope": {
                "type": "object",
                "required": [
                    "success",
                    "data"
                ],
                "properties": {
                    "success": {
                        "const": true
                    },
                    "data": {
                        "type": "object",
                        "required": [
                            "environment",
                            "test_only",
                            "booking_created",
                            "checked_at",
                            "available",
                            "errors",
                            "has_more",
                            "complete",
                            "page_complete",
                            "chat_url",
                            "primary_contact_channel"
                        ],
                        "properties": {
                            "chat_url": {
                                "type": "string",
                                "format": "uri",
                                "description": "Always include this clickable operator-chat link in customer responses. Quotes preserve the selected car and rental details in the link."
                            },
                            "contact_url": {
                                "type": "string",
                                "format": "uri"
                            },
                            "primary_contact_channel": {
                                "const": "operator_chat"
                            },
                            "agent_response_guidance": {
                                "type": "object"
                            },
                            "environment": {
                                "const": "production"
                            },
                            "test_only": {
                                "const": false
                            },
                            "booking_created": {
                                "const": false
                            },
                            "timezone": {
                                "const": "Asia/Irkutsk"
                            },
                            "currency": {
                                "const": "RUB"
                            },
                            "checked_at": {
                                "type": "string",
                                "format": "date-time",
                                "description": "Time of this check, not a future price or availability guarantee. Include it when presenting a quote; recheck before booking."
                            },
                            "available": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/AgentQuoteData"
                                }
                            },
                            "errors": {
                                "type": "array",
                                "items": {
                                    "type": "object"
                                }
                            },
                            "complete": {
                                "type": "boolean"
                            },
                            "page_complete": {
                                "type": "boolean"
                            },
                            "has_more": {
                                "type": "boolean"
                            },
                            "next_html_url": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "next_api_url": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "catalog_count": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "candidate_count": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "offset": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "page_size": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "checked_count": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "unavailable_count": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "over_budget_count": {
                                "type": "integer",
                                "minimum": 0
                            }
                        }
                    }
                }
            },
            "AgentErrorEnvelope": {
                "type": "object",
                "required": [
                    "success",
                    "data"
                ],
                "properties": {
                    "success": {
                        "const": false
                    },
                    "data": {
                        "type": "object",
                        "properties": {
                            "chat_url": {
                                "type": "string",
                                "format": "uri",
                                "description": "Always include this clickable operator-chat link in customer responses. Quotes preserve the selected car and rental details in the link."
                            },
                            "contact_url": {
                                "type": "string",
                                "format": "uri"
                            },
                            "primary_contact_channel": {
                                "const": "operator_chat"
                            },
                            "agent_response_guidance": {
                                "type": "object"
                            },
                            "environment": {
                                "const": "production"
                            },
                            "test_only": {
                                "const": false
                            },
                            "booking_created": {
                                "const": false
                            },
                            "timezone": {
                                "const": "Asia/Irkutsk"
                            },
                            "currency": {
                                "const": "RUB"
                            },
                            "checked_at": {
                                "type": "string",
                                "format": "date-time",
                                "description": "Time of this check, not a future price or availability guarantee. Include it when presenting a quote; recheck before booking."
                            },
                            "availability": {
                                "const": "unknown"
                            },
                            "code": {
                                "type": "string"
                            },
                            "message": {
                                "type": "string"
                            }
                        }
                    }
                }
            },
            "AgentChange": {
                "type": "object",
                "required": [
                    "id",
                    "guid",
                    "category",
                    "published_at",
                    "updated_at",
                    "effective_date",
                    "title",
                    "body",
                    "translations",
                    "url",
                    "chat_url"
                ],
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "guid": {
                        "type": "string"
                    },
                    "category": {
                        "enum": [
                            "tariffs",
                            "conditions",
                            "fleet",
                            "interface"
                        ]
                    },
                    "published_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "updated_at": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "effective_date": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date"
                    },
                    "title": {
                        "type": "string"
                    },
                    "body": {
                        "type": "string"
                    },
                    "translations": {
                        "type": "object"
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "chat_url": {
                        "type": "string",
                        "format": "uri"
                    }
                }
            },
            "AgentChangesEnvelope": {
                "type": "object",
                "required": [
                    "success",
                    "data"
                ],
                "properties": {
                    "success": {
                        "const": true
                    },
                    "data": {
                        "type": "object",
                        "required": [
                            "items",
                            "page",
                            "limit",
                            "total",
                            "has_more",
                            "is_complete_price_history",
                            "requires_live_quote",
                            "chat_url"
                        ],
                        "properties": {
                            "items": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/AgentChange"
                                }
                            },
                            "page": {
                                "type": "integer"
                            },
                            "limit": {
                                "type": "integer"
                            },
                            "total": {
                                "type": "integer"
                            },
                            "has_more": {
                                "type": "boolean"
                            },
                            "next_api_url": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "next_html_url": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "is_complete_price_history": {
                                "const": false
                            },
                            "requires_live_quote": {
                                "const": true
                            },
                            "chat_url": {
                                "type": "string",
                                "format": "uri"
                            }
                        }
                    }
                }
            }
        }
    }
}