ViaToVia · Schema

FleetBookingResource

CompanyTransportationMarketplaceTravelBooking

Properties

Name Type Description
reservation_no string
booking_reference stringnull
status object
cancellation_requested boolean
pickup_location object
dropoff_location object
pickup_datetime stringnull Local time at the airport (between two places: at the pickup). The trailing `Z` does not make it UTC.
flight_number stringnull
passenger object
passengers object
services array
total string
currency string
driver object
View JSON Schema on GitHub

JSON Schema

viatovia-fleet-booking-resource-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/viatovia/json-schema/viatovia-fleet-booking-resource-schema.json",
  "title": "FleetBookingResource",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fleet-openapi.json#/components/schemas/FleetBookingResource",
  "type": "object",
  "properties": {
    "reservation_no": {
      "type": "string"
    },
    "booking_reference": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "$ref": "#/$defs/BookingStatus"
    },
    "cancellation_requested": {
      "type": "boolean"
    },
    "pickup_location": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "POINT"
            },
            "lat": {
              "type": [
                "number",
                "null"
              ]
            },
            "lng": {
              "type": [
                "number",
                "null"
              ]
            },
            "address": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "type",
            "lat",
            "lng",
            "address"
          ]
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "AIRPORT"
            },
            "iata": {
              "type": "string"
            },
            "lat": {
              "type": [
                "number",
                "null"
              ]
            },
            "lng": {
              "type": [
                "number",
                "null"
              ]
            }
          },
          "required": [
            "type",
            "iata",
            "lat",
            "lng"
          ]
        }
      ]
    },
    "dropoff_location": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "POINT"
            },
            "lat": {
              "type": [
                "number",
                "null"
              ]
            },
            "lng": {
              "type": [
                "number",
                "null"
              ]
            },
            "address": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "type",
            "lat",
            "lng",
            "address"
          ]
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "const": "AIRPORT"
            },
            "iata": {
              "type": "string"
            },
            "lat": {
              "type": [
                "number",
                "null"
              ]
            },
            "lng": {
              "type": [
                "number",
                "null"
              ]
            }
          },
          "required": [
            "type",
            "iata",
            "lat",
            "lng"
          ]
        }
      ]
    },
    "pickup_datetime": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Local time at the airport (between two places: at the pickup). The trailing `Z` does not make it UTC."
    },
    "flight_number": {
      "type": [
        "string",
        "null"
      ]
    },
    "passenger": {
      "type": "object",
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "surname": {
          "type": [
            "string",
            "null"
          ]
        },
        "phone": {
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "surname",
        "phone",
        "email"
      ]
    },
    "passengers": {
      "type": "object",
      "properties": {
        "adult": {
          "type": "integer"
        },
        "children": {
          "type": "integer"
        },
        "infant": {
          "type": "integer"
        }
      },
      "required": [
        "adult",
        "children",
        "infant"
      ]
    },
    "services": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "quantity": {
            "type": "integer"
          },
          "unit_price": {
            "type": "number"
          },
          "total_price": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "name",
          "quantity",
          "unit_price",
          "total_price"
        ]
      }
    },
    "total": {
      "type": "string"
    },
    "currency": {
      "type": "string"
    },
    "driver": {
      "anyOf": [
        {
          "$ref": "#/$defs/FleetDriverResource"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "reservation_no",
    "booking_reference",
    "status",
    "cancellation_requested",
    "pickup_location",
    "dropoff_location",
    "pickup_datetime",
    "flight_number",
    "passenger",
    "passengers",
    "services",
    "total",
    "currency",
    "driver"
  ],
  "$defs": {
    "BookingStatus": {
      "type": "string",
      "enum": [
        "PENDING",
        "PENDING_APPROVAL",
        "APPROVED",
        "CANCELLED",
        "FAILED",
        "DECLINED",
        "REFUNDED",
        "COMPLETED",
        "DEFAULT"
      ],
      "title": "BookingStatus"
    },
    "FleetDriverResource": {
      "type": "object",
      "properties": {
        "driver_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "driver_phone": {
          "type": [
            "string",
            "null"
          ]
        },
        "vehicle_plate": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "driver_name",
        "driver_phone",
        "vehicle_plate"
      ],
      "title": "FleetDriverResource"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/viatovia-fleet-booking-resource"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.