Withlocals · Schema

CreateBookingRequest

Body of `POST /bookings` — creates a `CONFIRMED` booking.

CompanyTravelToursExperiencesTourismMarketplacePartner API

Properties

Name Type Description
productId string
date string
time string
numberOfAdults integer
numberOfChildren integer
mainGuest object
otherGuests array
partnerReference string Partner's own booking id.
specialRequest string Free-text note from the guest, forwarded to the host.
tourLanguage string ISO-639-1 language code.
View JSON Schema on GitHub

JSON Schema

withlocals-create-booking-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/withlocals/main/json-schema/withlocals-create-booking-request-schema.json",
  "title": "CreateBookingRequest",
  "description": "Body of `POST /bookings` — creates a `CONFIRMED` booking.\n",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/withlocals-partner-api-openapi.yml#/components/schemas/CreateBookingRequest",
  "type": "object",
  "required": [
    "productId",
    "date",
    "time",
    "numberOfAdults",
    "mainGuest"
  ],
  "properties": {
    "productId": {
      "type": "string",
      "format": "uuid"
    },
    "date": {
      "type": "string",
      "format": "date"
    },
    "time": {
      "type": "string",
      "pattern": "^[0-2][0-9]:[0-5][0-9]$"
    },
    "numberOfAdults": {
      "type": "integer",
      "minimum": 1
    },
    "numberOfChildren": {
      "type": "integer",
      "minimum": 0,
      "default": 0
    },
    "mainGuest": {
      "$ref": "#/$defs/Guest"
    },
    "otherGuests": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Guest"
      }
    },
    "partnerReference": {
      "type": "string",
      "description": "Partner's own booking id."
    },
    "specialRequest": {
      "type": "string",
      "description": "Free-text note from the guest, forwarded to the host."
    },
    "tourLanguage": {
      "type": "string",
      "description": "ISO-639-1 language code."
    }
  },
  "$defs": {
    "Guest": {
      "type": "object",
      "description": "A single guest on a booking.",
      "required": [
        "firstName"
      ],
      "properties": {
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "email": {
          "type": "string",
          "format": "email"
        },
        "phone": {
          "type": "string"
        }
      }
    }
  }
}

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/withlocals-create-booking-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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