{
  "openapi": "3.1.0",
  "info": {
    "title": "Ollynk Public API",
    "version": "2026-11-25",
    "description": "Open, read-only public API for a fitness or wellness studio's own website (schedule, coaches, class packs, memberships, events, services, store, gift cards) plus lead capture. Authenticate with the studio's public per-branch sdk_token. Bookings, sign-in and payments run in the Ollynk Booking SDK. Docs: https://ollynk.io/en/developers/public-api",
    "contact": {
      "email": "contacto@ollynk.mx",
      "url": "https://ollynk.io/en/developers/public-api"
    }
  },
  "servers": [
    {
      "url": "https://admin.ollynk.io/api"
    }
  ],
  "externalDocs": {
    "description": "Ollynk public API and Booking SDK",
    "url": "https://ollynk.io/en/developers/public-api"
  },
  "components": {
    "securitySchemes": {
      "customerBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Customer token from a Booking SDK session (only for /profile)"
      }
    }
  },
  "paths": {
    "/booking/config": {
      "get": {
        "operationId": "bookingConfig",
        "summary": "Studio settings: name, logo, currency, timezone and brand colour",
        "description": "Studio settings: name, logo, currency, timezone and brand colour. ES: Configuración del studio: nombre, logo, moneda, zona horaria y color de marca. Main fields: business_name, branch_name, logo, country, primary_color, currency{code,symbol}, timezone{name,offset}",
        "tags": [
          "Catalog"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "business_name": "Ollynk Demo Fitness",
                  "branch_name": "Santa Fe (CDMX)",
                  "logo": "https://admin.ollynk.io/storage/logo.png",
                  "language": "es",
                  "country": "MX",
                  "primary_color": "#000000",
                  "currency": {
                    "code": "MXN",
                    "symbol": "$"
                  },
                  "timezone": {
                    "name": "America/Mexico_City",
                    "offset": "-06:00"
                  }
                }
              }
            }
          },
          "422": {
            "description": "Invalid credentials or validation error"
          }
        },
        "parameters": [
          {
            "name": "business_id",
            "in": "query",
            "required": true,
            "description": "Business (studio) UUID",
            "schema": {
              "type": "string",
              "example": "eac3f474-ffc4-4255-ab24-205230b2856b"
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": true,
            "description": "UUID of the branch being shown",
            "schema": {
              "type": "string",
              "example": "c300e3cd-f6f9-4869-9c06-981ef8e2cbe6"
            }
          },
          {
            "name": "sdk_token",
            "in": "query",
            "required": true,
            "description": "Public token of that branch (read-only access to the public catalogue)",
            "schema": {
              "type": "string",
              "example": "sdk_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "es or en (default es)",
            "schema": {
              "type": "string",
              "example": "es"
            }
          }
        ]
      }
    },
    "/multi-branch-config": {
      "post": {
        "operationId": "multiBranchConfig",
        "summary": "List of branches for a picker (each with its branch_id and sdk_token)",
        "description": "List of branches for a picker (each with its branch_id and sdk_token). ES: Lista de sucursales para un selector (cada una con su branch_id y sdk_token). Main fields: business_id, branches[]{branch_id, name, address, logo, sdk_token}",
        "tags": [
          "Catalog"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "business_id": "eac3f474-…",
                  "branches": [
                    {
                      "branch_id": "c300e3cd-…",
                      "name": "Santa Fe (CDMX)",
                      "address": "…",
                      "sdk_token": "sdk_…"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Invalid credentials or validation error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "business_id",
                  "branch_id",
                  "sdk_token"
                ],
                "properties": {
                  "business_id": {
                    "type": "string",
                    "description": "Business (studio) UUID",
                    "example": "eac3f474-ffc4-4255-ab24-205230b2856b"
                  },
                  "branch_id": {
                    "type": "string",
                    "description": "UUID of the branch being shown",
                    "example": "c300e3cd-f6f9-4869-9c06-981ef8e2cbe6"
                  },
                  "sdk_token": {
                    "type": "string",
                    "description": "Public token of that branch (read-only access to the public catalogue)",
                    "example": "sdk_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                  },
                  "lang": {
                    "type": "string",
                    "description": "es or en (default es)",
                    "example": "es"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/schedules/weekly": {
      "get": {
        "operationId": "schedulesWeekly",
        "summary": "Class schedule with capacity, coach, room and waitlist",
        "description": "Class schedule with capacity, coach, room and waitlist. ES: Horario de clases con cupo, coach, sala y lista de espera. Main fields: data[]{id, date, startTime, endTime, className, classId, roomName, coach{name}, totalSpots, availableSpots, waitlist, status}",
        "tags": [
          "Catalog"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "id": "404259",
                      "date": "2026-11-18",
                      "startTime": "10:20",
                      "endTime": "11:10",
                      "className": "Pilates Reformer",
                      "classId": "2789",
                      "roomName": "Sala 1",
                      "coach": {
                        "name": "Ana Rosales"
                      },
                      "totalSpots": 12,
                      "availableSpots": 5,
                      "showSpotCount": true,
                      "waitlist": true,
                      "status": "available"
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Invalid credentials or validation error"
          }
        },
        "parameters": [
          {
            "name": "business_id",
            "in": "query",
            "required": true,
            "description": "Business (studio) UUID",
            "schema": {
              "type": "string",
              "example": "eac3f474-ffc4-4255-ab24-205230b2856b"
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": true,
            "description": "UUID of the branch being shown",
            "schema": {
              "type": "string",
              "example": "c300e3cd-f6f9-4869-9c06-981ef8e2cbe6"
            }
          },
          {
            "name": "sdk_token",
            "in": "query",
            "required": true,
            "description": "Public token of that branch (read-only access to the public catalogue)",
            "schema": {
              "type": "string",
              "example": "sdk_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "es or en (default es)",
            "schema": {
              "type": "string",
              "example": "es"
            }
          },
          {
            "name": "startDate",
            "in": "query",
            "required": true,
            "description": "First day to return (YYYY-MM-DD, studio timezone)",
            "schema": {
              "type": "string",
              "example": "2026-11-18"
            }
          }
        ]
      }
    },
    "/instructors": {
      "get": {
        "operationId": "instructors",
        "summary": "Studio coaches",
        "description": "Studio coaches. ES: Coaches del studio. Main fields: data[]{id, name, nickName, bio, imageUrl, rating}",
        "tags": [
          "Catalog"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "id": "1347",
                      "name": "Ana Rosales",
                      "bio": null,
                      "imageUrl": null,
                      "rating": null
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Invalid credentials or validation error"
          }
        },
        "parameters": [
          {
            "name": "business_id",
            "in": "query",
            "required": true,
            "description": "Business (studio) UUID",
            "schema": {
              "type": "string",
              "example": "eac3f474-ffc4-4255-ab24-205230b2856b"
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": true,
            "description": "UUID of the branch being shown",
            "schema": {
              "type": "string",
              "example": "c300e3cd-f6f9-4869-9c06-981ef8e2cbe6"
            }
          },
          {
            "name": "sdk_token",
            "in": "query",
            "required": true,
            "description": "Public token of that branch (read-only access to the public catalogue)",
            "schema": {
              "type": "string",
              "example": "sdk_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "es or en (default es)",
            "schema": {
              "type": "string",
              "example": "es"
            }
          }
        ]
      }
    },
    "/series/catalog": {
      "get": {
        "operationId": "seriesCatalog",
        "summary": "Class packs and offers, with price, validity and active promotion",
        "description": "Class packs and offers, with price, validity and active promotion. ES: Paquetes de clases y ofertas, con precio, vigencia y promoción activa. Main fields: series[]{id, slug, name, price, classCount, unlimited, validityDays, type, applicableClassNames, isInscription, isPurchasable, promotion}",
        "tags": [
          "Catalog"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "series": [
                    {
                      "id": "4627",
                      "slug": "paquete-10-clases",
                      "name": "10 clases",
                      "price": 1200,
                      "classCount": 10,
                      "unlimited": false,
                      "validityDays": 30,
                      "type": "purchase",
                      "isPurchasable": true,
                      "promotion": {
                        "active": true,
                        "type": "percent",
                        "value": 20,
                        "end_at": "2026-11-30 23:59:00"
                      }
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Invalid credentials or validation error"
          }
        },
        "parameters": [
          {
            "name": "business_id",
            "in": "query",
            "required": true,
            "description": "Business (studio) UUID",
            "schema": {
              "type": "string",
              "example": "eac3f474-ffc4-4255-ab24-205230b2856b"
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": true,
            "description": "UUID of the branch being shown",
            "schema": {
              "type": "string",
              "example": "c300e3cd-f6f9-4869-9c06-981ef8e2cbe6"
            }
          },
          {
            "name": "sdk_token",
            "in": "query",
            "required": true,
            "description": "Public token of that branch (read-only access to the public catalogue)",
            "schema": {
              "type": "string",
              "example": "sdk_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "es or en (default es)",
            "schema": {
              "type": "string",
              "example": "es"
            }
          }
        ]
      }
    },
    "/membership": {
      "get": {
        "operationId": "membership",
        "summary": "Memberships (recurring or one-time), with benefits and the branches they apply to",
        "description": "Memberships (recurring or one-time), with benefits and the branches they apply to. ES: Membresías (recurrentes o de un pago), con beneficios y sucursales donde aplican. Main fields: availablePlans[]{id, name, price, is_subscription, interval, interval_count, unlimited_services, total_sessions, expiration_days, benefits[], promotion, branchNames}",
        "tags": [
          "Catalog"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "availablePlans": [
                    {
                      "id": 88,
                      "name": "Ilimitado mensual",
                      "price": 2400,
                      "is_subscription": true,
                      "interval": "month",
                      "interval_count": 1,
                      "unlimited_services": true,
                      "benefits": [
                        "Clases ilimitadas"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Invalid credentials or validation error"
          }
        },
        "parameters": [
          {
            "name": "business_id",
            "in": "query",
            "required": true,
            "description": "Business (studio) UUID",
            "schema": {
              "type": "string",
              "example": "eac3f474-ffc4-4255-ab24-205230b2856b"
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": true,
            "description": "UUID of the branch being shown",
            "schema": {
              "type": "string",
              "example": "c300e3cd-f6f9-4869-9c06-981ef8e2cbe6"
            }
          },
          {
            "name": "sdk_token",
            "in": "query",
            "required": true,
            "description": "Public token of that branch (read-only access to the public catalogue)",
            "schema": {
              "type": "string",
              "example": "sdk_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "es or en (default es)",
            "schema": {
              "type": "string",
              "example": "es"
            }
          }
        ]
      }
    },
    "/events": {
      "get": {
        "operationId": "events",
        "summary": "Events and workshops with tickets, seats and price (paginated)",
        "description": "Events and workshops with tickets, seats and price (paginated). ES: Eventos y talleres con boletos, cupo y precio (paginado). Main fields: data[]{id, title, start_date, end_date, price, currency, is_free, total_seats, available_seats, visible_to_customer, timezone}, current_page, last_page, total",
        "tags": [
          "Catalog"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "id": 46,
                      "title": "Bootcamp",
                      "start_date": "2026-12-06T15:00:00.000000Z",
                      "end_date": "2026-12-06T17:00:00.000000Z",
                      "price": "100.00",
                      "currency": "MXN",
                      "is_free": false,
                      "total_seats": 20,
                      "available_seats": 12,
                      "visible_to_customer": true,
                      "timezone": "America/Mexico_City"
                    }
                  ],
                  "current_page": 1,
                  "last_page": 1,
                  "total": 1
                }
              }
            }
          },
          "422": {
            "description": "Invalid credentials or validation error"
          }
        },
        "parameters": [
          {
            "name": "business_id",
            "in": "query",
            "required": true,
            "description": "Business (studio) UUID",
            "schema": {
              "type": "string",
              "example": "eac3f474-ffc4-4255-ab24-205230b2856b"
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": true,
            "description": "UUID of the branch being shown",
            "schema": {
              "type": "string",
              "example": "c300e3cd-f6f9-4869-9c06-981ef8e2cbe6"
            }
          },
          {
            "name": "sdk_token",
            "in": "query",
            "required": true,
            "description": "Public token of that branch (read-only access to the public catalogue)",
            "schema": {
              "type": "string",
              "example": "sdk_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "es or en (default es)",
            "schema": {
              "type": "string",
              "example": "es"
            }
          },
          {
            "name": "from_date",
            "in": "query",
            "required": true,
            "description": "Only events from this date",
            "schema": {
              "type": "string",
              "example": "2026-11-18"
            }
          }
        ]
      }
    },
    "/services": {
      "get": {
        "operationId": "services",
        "summary": "Bookable 1-to-1 services (massage, physio, assessment…), as a list or grouped by category",
        "description": "Bookable 1-to-1 services (massage, physio, assessment…), as a list or grouped by category. ES: Servicios reservables 1 a 1 (masaje, fisioterapia, valoración…), en lista o agrupados por categoría. Main fields: data[] | data{category: []}: {id, name, description, image, duration, price}",
        "tags": [
          "Catalog"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "data": [
                    {
                      "id": 537,
                      "name": "Masaje deportivo",
                      "duration": "60",
                      "price": 800
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Invalid credentials or validation error"
          }
        },
        "parameters": [
          {
            "name": "business_id",
            "in": "query",
            "required": true,
            "description": "Business (studio) UUID",
            "schema": {
              "type": "string",
              "example": "eac3f474-ffc4-4255-ab24-205230b2856b"
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": true,
            "description": "UUID of the branch being shown",
            "schema": {
              "type": "string",
              "example": "c300e3cd-f6f9-4869-9c06-981ef8e2cbe6"
            }
          },
          {
            "name": "sdk_token",
            "in": "query",
            "required": true,
            "description": "Public token of that branch (read-only access to the public catalogue)",
            "schema": {
              "type": "string",
              "example": "sdk_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "es or en (default es)",
            "schema": {
              "type": "string",
              "example": "es"
            }
          }
        ]
      }
    },
    "/facility/products": {
      "get": {
        "operationId": "facilityProducts",
        "summary": "Store products with stock",
        "description": "Store products with stock. ES: Productos de la tienda con inventario. Main fields: products[]{id, name, price, image_path, category_name, track_stock, current_stock_level, allow_to_buy, variants}",
        "tags": [
          "Catalog"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "products": [
                    {
                      "id": 3526,
                      "name": "Calcetas antiderrapantes",
                      "price": 200,
                      "track_stock": true,
                      "current_stock_level": 10,
                      "allow_to_buy": true,
                      "variants": []
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Invalid credentials or validation error"
          }
        },
        "parameters": [
          {
            "name": "business_id",
            "in": "query",
            "required": true,
            "description": "Business (studio) UUID",
            "schema": {
              "type": "string",
              "example": "eac3f474-ffc4-4255-ab24-205230b2856b"
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": true,
            "description": "UUID of the branch being shown",
            "schema": {
              "type": "string",
              "example": "c300e3cd-f6f9-4869-9c06-981ef8e2cbe6"
            }
          },
          {
            "name": "sdk_token",
            "in": "query",
            "required": true,
            "description": "Public token of that branch (read-only access to the public catalogue)",
            "schema": {
              "type": "string",
              "example": "sdk_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "es or en (default es)",
            "schema": {
              "type": "string",
              "example": "es"
            }
          }
        ]
      }
    },
    "/gift-cards": {
      "get": {
        "operationId": "giftCards",
        "summary": "Gift cards for sale",
        "description": "Gift cards for sale. ES: Gift cards a la venta. Main fields: gift_cards[]{id, slug, name, amount, image_url}",
        "tags": [
          "Catalog"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "success": true,
                  "gift_cards": [
                    {
                      "id": 165,
                      "slug": "gift-card-500",
                      "name": "Gift card $500",
                      "amount": 500
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Invalid credentials or validation error"
          }
        },
        "parameters": [
          {
            "name": "business_id",
            "in": "query",
            "required": true,
            "description": "Business (studio) UUID",
            "schema": {
              "type": "string",
              "example": "eac3f474-ffc4-4255-ab24-205230b2856b"
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": true,
            "description": "UUID of the branch being shown",
            "schema": {
              "type": "string",
              "example": "c300e3cd-f6f9-4869-9c06-981ef8e2cbe6"
            }
          },
          {
            "name": "sdk_token",
            "in": "query",
            "required": true,
            "description": "Public token of that branch (read-only access to the public catalogue)",
            "schema": {
              "type": "string",
              "example": "sdk_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "es or en (default es)",
            "schema": {
              "type": "string",
              "example": "es"
            }
          }
        ]
      }
    },
    "/leads": {
      "post": {
        "operationId": "leads",
        "summary": "Creates a lead in the studio's CRM (contact form). Returns 422 with per-field errors when something is missing",
        "description": "Creates a lead in the studio's CRM (contact form). Returns 422 with per-field errors when something is missing. ES: Crea un prospecto en el CRM del studio (formulario de contacto). Responde 422 con errores por campo si falta algo. Main fields: 201 Created · 422 {message, errors{field: [..]}}",
        "tags": [
          "CRM"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "message": "The name field is required.",
                  "errors": {
                    "name": [
                      "The name field is required."
                    ]
                  }
                }
              }
            }
          },
          "422": {
            "description": "Invalid credentials or validation error"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "business_id",
                  "branch_id",
                  "sdk_token",
                  "name",
                  "email"
                ],
                "properties": {
                  "business_id": {
                    "type": "string",
                    "description": "Business (studio) UUID",
                    "example": "eac3f474-ffc4-4255-ab24-205230b2856b"
                  },
                  "branch_id": {
                    "type": "string",
                    "description": "UUID of the branch being shown",
                    "example": "c300e3cd-f6f9-4869-9c06-981ef8e2cbe6"
                  },
                  "sdk_token": {
                    "type": "string",
                    "description": "Public token of that branch (read-only access to the public catalogue)",
                    "example": "sdk_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                  },
                  "lang": {
                    "type": "string",
                    "description": "es or en (default es)",
                    "example": "es"
                  },
                  "name": {
                    "type": "string",
                    "description": "Name (at least 2 characters)",
                    "example": "Ana López"
                  },
                  "email": {
                    "type": "string",
                    "description": "Valid email",
                    "example": "ana@example.com"
                  },
                  "phone": {
                    "type": "string",
                    "description": "10-digit WhatsApp number",
                    "example": "5512345678"
                  },
                  "interest": {
                    "type": "string",
                    "description": "Class of interest",
                    "example": "Pilates Reformer"
                  },
                  "preferred_time": {
                    "type": "string",
                    "description": "Preferred time",
                    "example": "Mañana"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/profile": {
      "get": {
        "operationId": "profile",
        "summary": "Signed-in customer (optional, to show their name or initials)",
        "description": "Signed-in customer (optional, to show their name or initials). ES: Datos del cliente que inició sesión (opcional, para mostrar su nombre o iniciales). Main fields: customer{first_name, last_name, email}",
        "tags": [
          "Catalog"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "example": {
                  "customer": {
                    "first_name": "Ana",
                    "last_name": "López",
                    "email": "ana@example.com"
                  }
                }
              }
            }
          },
          "422": {
            "description": "Invalid credentials or validation error"
          }
        },
        "parameters": [
          {
            "name": "business_id",
            "in": "query",
            "required": true,
            "description": "Business (studio) UUID",
            "schema": {
              "type": "string",
              "example": "eac3f474-ffc4-4255-ab24-205230b2856b"
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": true,
            "description": "UUID of the branch being shown",
            "schema": {
              "type": "string",
              "example": "c300e3cd-f6f9-4869-9c06-981ef8e2cbe6"
            }
          },
          {
            "name": "sdk_token",
            "in": "query",
            "required": true,
            "description": "Public token of that branch (read-only access to the public catalogue)",
            "schema": {
              "type": "string",
              "example": "sdk_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "es or en (default es)",
            "schema": {
              "type": "string",
              "example": "es"
            }
          }
        ],
        "security": [
          {
            "customerBearer": []
          }
        ]
      }
    }
  },
  "x-booking-sdk": {
    "loader": "https://booking.ollynk.io/fitness-test/loader/booking-widget.umd.js?v=5",
    "module": "https://booking.ollynk.io/fitness-test/app/app.esm.js?v=5",
    "methods": [
      {
        "call": "BookingSDK.openBooking({ moduleUrl, config, scheduleId, date })",
        "description": "Book a class or join the waitlist (scheduleId = id from /schedules/weekly)"
      },
      {
        "call": "BookingSDK.openPurchase({ moduleUrl, config, kind: 'series', id })",
        "description": "Buy a class pack (id = slug from /series/catalog)"
      },
      {
        "call": "BookingSDK.openPurchase({ moduleUrl, config, kind: 'membership', id })",
        "description": "Buy a membership"
      },
      {
        "call": "BookingSDK.openPurchase({ moduleUrl, config, kind: 'event', id })",
        "description": "Buy an event ticket"
      },
      {
        "call": "BookingSDK.openPurchase({ moduleUrl, config, kind: 'products', id, quantity })",
        "description": "Buy a store product"
      },
      {
        "call": "BookingSDK.openPurchase({ moduleUrl, config, kind: 'gift-cards', id })",
        "description": "Buy a gift card"
      },
      {
        "call": "BookingSDK.openService({ moduleUrl, config, serviceId })",
        "description": "Book a 1-to-1 service"
      },
      {
        "call": "BookingSDK.openCoach({ moduleUrl, config, name, coachId, imageUrl, bio })",
        "description": "Coach profile"
      },
      {
        "call": "BookingSDK.openAuth({ moduleUrl, config, onAuthed })",
        "description": "Sign in or sign up (email or phone + code)"
      },
      {
        "call": "BookingSDK.init({ moduleUrl, container, config: { ...config, initialRoute, onLogoClick } })",
        "description": "Full client Web App inside your site"
      },
      {
        "call": "BookingSDK.onAuthStateChange(callback)",
        "description": "Listen for sign-in and sign-out"
      }
    ]
  }
}
