{
  "openapi": "3.1.0",
  "info": {
    "title": "Travel Orbit booking API",
    "version": "1",
    "summary": "Trips with live prices and places, guides, destinations, quotes, bookings and the traveller portal, for your own website.",
    "description": "The booking API lets your own website show trips with live prices and places and take bookings. It needs no key: it returns what the booking pages show anyway, and payments go straight from the traveller's browser to your Stripe account. A key is optional; a key that reads drafts (trv_sk_) works only from a server.\n\nAny website may read the organisation, trips, guides and destinations. Quotes and bookings answer only your allowed websites and servers. Answers are JSON in data; errors are error with a code and a message you can show the traveller. Amounts are whole minor units. Lists come whole, with no pages.\n\nRequests are limited for each network (IP address) and organisation: about 120 catalogue reads a minute (6,000 for a server calling with a key), 30 quotes, 5 bookings, 20 booking checks, 1 portal sign-in code and 2 code checks a minute, with short bursts allowed. Over the limit the answer is 429 rate_limited; no rate-limit headers are sent, so wait a minute and try again.",
    "contact": {
      "name": "Bifröst Orbit",
      "url": "https://docs.bifrostorbit.com/",
      "email": "hello@bifrostorbit.com"
    },
    "termsOfService": "https://bifrostorbit.com/legal/terms/"
  },
  "servers": [
    {
      "url": "https://app.bifrostorbit.com/travel/api/public",
      "description": "Production"
    },
    {
      "url": "https://stage.bifrostorbit.com/travel/api/public",
      "description": "Staging"
    }
  ],
  "tags": [
    {
      "name": "Organisation",
      "description": "Brand, organiser, guarantee and languages."
    },
    {
      "name": "Trips",
      "description": "Trips with departures and prices."
    },
    {
      "name": "Guides",
      "description": "The people who lead your trips."
    },
    {
      "name": "Destinations",
      "description": "Continents and countries."
    },
    {
      "name": "Booking",
      "description": "Quotes, bookings and checking a booking."
    },
    {
      "name": "Traveller portal",
      "description": "Travellers sign in with an email code; call these from your server."
    }
  ],
  "externalDocs": {
    "url": "https://docs.bifrostorbit.com/travel/developers/booking-api/",
    "description": "The booking API guide"
  },
  "paths": {
    "/{slug}": {
      "get": {
        "operationId": "getOrganisation",
        "tags": [
          "Organisation"
        ],
        "summary": "The organisation",
        "description": "What a booking page needs around the trips: brand, organiser, travel guarantee, languages and whether online payment works right now.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          },
          {
            "name": "locale",
            "in": "query",
            "description": "A language you offer, such as nb. Without it, your main language.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The organisation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Organisation"
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": {
                    "slug": "northwilds",
                    "brandName": "Northwilds",
                    "logoUrl": "https://northwilds.com/logo.svg",
                    "colour": "#1f4e46",
                    "contactEmail": "trips@northwilds.com",
                    "payments": {
                      "online": true,
                      "publishableKey": "pk_live_…"
                    },
                    "organiser": {
                      "legalName": "Northwilds AS",
                      "registration": "NO 912 345 678",
                      "address": "Markveien 35, 0554 Oslo, Norway"
                    },
                    "guarantee": {
                      "provider": "Reisegarantifondet",
                      "text": "Your money is protected by the Norwegian travel guarantee fund."
                    },
                    "termsUrl": "https://northwilds.com/terms/",
                    "locales": [
                      "en",
                      "nb"
                    ],
                    "defaultLocale": "en",
                    "locale": "en",
                    "fallback": []
                  }
                }
              }
            }
          },
          "401": {
            "description": "A key that is wrong, revoked, expired or for another organisation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't valid for this organisation. Check it under API keys in Travel Orbit."
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "A key that reads drafts, sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "A key that reads drafts must stay on your server. Call the API from your server, or use a key without drafts in the browser."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No organisation with that booking name, or no published trip or destination there.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Organisation was not found"
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests from one network.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many tries. Wait a minute and try again."
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          },
          {
            "apiKey": []
          },
          {}
        ],
        "x-try-it": {
          "run": true
        }
      }
    },
    "/{slug}/trips": {
      "get": {
        "operationId": "listTrips",
        "tags": [
          "Trips"
        ],
        "summary": "List trips",
        "description": "Published, public trips, in the order they were created, all at once with no pages. With a key that reads drafts, draft trips too. Cacheable for 30 seconds.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          },
          {
            "name": "locale",
            "in": "query",
            "description": "A language you offer, such as nb. Without it, your main language.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "activity",
            "in": "query",
            "description": "Only trips with this activity.",
            "schema": {
              "type": "string"
            },
            "example": "hiking"
          },
          {
            "name": "country",
            "in": "query",
            "description": "Two letters, such as NO.",
            "schema": {
              "type": "string"
            },
            "example": "NO"
          },
          {
            "name": "category",
            "in": "query",
            "description": "Only trips in this category.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ids",
            "in": "query",
            "description": "Up to 100 trip ids, separated by commas. Also returns unlisted trips.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The trips.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Trip"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": [
                    {
                      "id": "6650f1c2a9e4b3d2c1f0ea01",
                      "slug": "lofoten-ridge-walk",
                      "name": "Lofoten ridge walk",
                      "draft": false,
                      "category": "Walking holidays",
                      "tags": [
                        "Small group"
                      ],
                      "activities": [
                        "hiking"
                      ],
                      "countries": [
                        "NO"
                      ],
                      "areas": [
                        "Lofoten"
                      ],
                      "area": "Lofoten",
                      "summary": "Seven days on the ridges and white beaches of Lofoten, with nights in red fishing cabins.",
                      "badge": "New",
                      "days": 7,
                      "difficulty": "moderate",
                      "groupSize": {
                        "min": 4,
                        "max": 12
                      },
                      "images": [
                        {
                          "id": "6650f1c2a9e4b3d2c1f0ea31",
                          "url": "https://media.bifrostorbit.com/northwilds/lofoten-ridge.jpg",
                          "mimeType": "image/jpeg",
                          "width": 2400,
                          "height": 1600,
                          "alt": "Walkers on a grassy ridge above the sea in Lofoten",
                          "title": null,
                          "focalPoint": {
                            "x": 0.5,
                            "y": 0.4
                          }
                        }
                      ],
                      "seo": {
                        "title": "Lofoten ridge walk | Northwilds",
                        "description": "Seven days on the ridges and beaches of Lofoten with a Northwilds guide.",
                        "image": {
                          "id": "6650f1c2a9e4b3d2c1f0ea31",
                          "url": "https://media.bifrostorbit.com/northwilds/lofoten-ridge.jpg",
                          "mimeType": "image/jpeg",
                          "width": 2400,
                          "height": 1600,
                          "alt": "Walkers on a grassy ridge above the sea in Lofoten",
                          "title": null,
                          "focalPoint": {
                            "x": 0.5,
                            "y": 0.4
                          }
                        }
                      },
                      "currency": "NOK",
                      "priceFrom": 1240000,
                      "currencies": [
                        "NOK",
                        "EUR"
                      ],
                      "pricesFrom": {
                        "NOK": 1240000,
                        "EUR": 109000
                      },
                      "rating": {
                        "average": 4.9,
                        "count": 37
                      },
                      "bookingMode": "instant",
                      "nextDeparture": "2027-06-14",
                      "departures": [
                        {
                          "id": "6650f1c2a9e4b3d2c1f0ea07",
                          "startDate": "2027-06-14",
                          "endDate": "2027-06-20",
                          "flexible": false,
                          "guaranteed": true,
                          "status": "open",
                          "seatsLeft": 6,
                          "capacity": 12,
                          "prices": {
                            "per-person": 1240000
                          },
                          "priceFrom": 1240000,
                          "pricesByCurrency": {
                            "NOK": {
                              "per-person": 1240000
                            },
                            "EUR": {
                              "per-person": 109000
                            }
                          },
                          "priceFromByCurrency": {
                            "NOK": 1240000,
                            "EUR": 109000
                          },
                          "bookingDeadline": "2027-05-31"
                        }
                      ],
                      "cmsEntryId": null,
                      "locale": "en",
                      "fallback": []
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "A key that is wrong, revoked, expired or for another organisation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't valid for this organisation. Check it under API keys in Travel Orbit."
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "A key that reads drafts, sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "A key that reads drafts must stay on your server. Call the API from your server, or use a key without drafts in the browser."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No organisation with that booking name, or no published trip or destination there.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Organisation was not found"
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests from one network.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many tries. Wait a minute and try again."
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          },
          {
            "apiKey": []
          },
          {}
        ],
        "x-try-it": {
          "run": true
        }
      }
    },
    "/{slug}/trips/{tripSlug}": {
      "get": {
        "operationId": "getTrip",
        "tags": [
          "Trips"
        ],
        "summary": "Get a trip",
        "description": "Everything in the list, plus the itinerary, packages, extras, payment plan, questions, guides and places to stay. An old address still answers, with the current slug.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          },
          {
            "name": "tripSlug",
            "in": "path",
            "required": true,
            "description": "The trip's address.",
            "schema": {
              "type": "string"
            },
            "example": "lofoten-ridge-walk"
          },
          {
            "name": "locale",
            "in": "query",
            "description": "A language you offer, such as nb. Without it, your main language.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The trip.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TripDetail"
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": {
                    "id": "6650f1c2a9e4b3d2c1f0ea01",
                    "slug": "lofoten-ridge-walk",
                    "name": "Lofoten ridge walk",
                    "draft": false,
                    "category": "Walking holidays",
                    "tags": [
                      "Small group"
                    ],
                    "activities": [
                      "hiking"
                    ],
                    "countries": [
                      "NO"
                    ],
                    "areas": [
                      "Lofoten"
                    ],
                    "area": "Lofoten",
                    "summary": "Seven days on the ridges and white beaches of Lofoten, with nights in red fishing cabins.",
                    "badge": "New",
                    "days": 7,
                    "difficulty": "moderate",
                    "groupSize": {
                      "min": 4,
                      "max": 12
                    },
                    "images": [
                      {
                        "id": "6650f1c2a9e4b3d2c1f0ea31",
                        "url": "https://media.bifrostorbit.com/northwilds/lofoten-ridge.jpg",
                        "mimeType": "image/jpeg",
                        "width": 2400,
                        "height": 1600,
                        "alt": "Walkers on a grassy ridge above the sea in Lofoten",
                        "title": null,
                        "focalPoint": {
                          "x": 0.5,
                          "y": 0.4
                        }
                      }
                    ],
                    "seo": {
                      "title": "Lofoten ridge walk | Northwilds",
                      "description": "Seven days on the ridges and beaches of Lofoten with a Northwilds guide.",
                      "image": {
                        "id": "6650f1c2a9e4b3d2c1f0ea31",
                        "url": "https://media.bifrostorbit.com/northwilds/lofoten-ridge.jpg",
                        "mimeType": "image/jpeg",
                        "width": 2400,
                        "height": 1600,
                        "alt": "Walkers on a grassy ridge above the sea in Lofoten",
                        "title": null,
                        "focalPoint": {
                          "x": 0.5,
                          "y": 0.4
                        }
                      }
                    },
                    "currency": "NOK",
                    "priceFrom": 1240000,
                    "currencies": [
                      "NOK",
                      "EUR"
                    ],
                    "pricesFrom": {
                      "NOK": 1240000,
                      "EUR": 109000
                    },
                    "rating": {
                      "average": 4.9,
                      "count": 37
                    },
                    "bookingMode": "instant",
                    "nextDeparture": "2027-06-14",
                    "departures": [
                      {
                        "id": "6650f1c2a9e4b3d2c1f0ea07",
                        "startDate": "2027-06-14",
                        "endDate": "2027-06-20",
                        "flexible": false,
                        "guaranteed": true,
                        "status": "open",
                        "seatsLeft": 6,
                        "capacity": 12,
                        "prices": {
                          "per-person": 1240000
                        },
                        "priceFrom": 1240000,
                        "pricesByCurrency": {
                          "NOK": {
                            "per-person": 1240000
                          },
                          "EUR": {
                            "per-person": 109000
                          }
                        },
                        "priceFromByCurrency": {
                          "NOK": 1240000,
                          "EUR": 109000
                        },
                        "bookingDeadline": "2027-05-31"
                      }
                    ],
                    "cmsEntryId": null,
                    "locale": "en",
                    "fallback": [],
                    "description": "<p>Walk the ridges of Lofoten with the sea on both sides.</p>",
                    "highlights": [
                      "Sunset from Reinebringen",
                      "A night in a rorbu fishing cabin"
                    ],
                    "included": [
                      "Six nights in cabins",
                      "All breakfasts",
                      "A Northwilds guide"
                    ],
                    "notIncluded": [
                      "Flights to Leknes"
                    ],
                    "itinerary": [
                      {
                        "day": 1,
                        "title": "Arrive in Reine",
                        "body": "Meet the group at the harbour for a short evening walk."
                      }
                    ],
                    "packages": [
                      {
                        "id": "per-person",
                        "name": "Per person",
                        "prices": {
                          "per-person": 1240000
                        },
                        "pricesByCurrency": {
                          "EUR": 109000
                        }
                      }
                    ],
                    "addOns": [
                      {
                        "id": "gear-hire",
                        "name": "Boots and poles",
                        "price": 45000,
                        "pricesByCurrency": {
                          "EUR": 4000
                        }
                      }
                    ],
                    "paymentPlan": {
                      "deposit": {
                        "kind": "percent",
                        "value": 20
                      },
                      "balanceDueDays": 60,
                      "instalments": 1
                    },
                    "paymentPlanByCurrency": {},
                    "cancellation": {
                      "text": "Free cancellation until 60 days before departure."
                    },
                    "questions": [],
                    "travellerFields": {
                      "dateOfBirth": true,
                      "nationality": false,
                      "passport": false
                    },
                    "travellers": {
                      "min": 1,
                      "max": 6
                    },
                    "guides": [
                      {
                        "name": "Kari Nordmann",
                        "role": "Mountain guide",
                        "bio": "Kari grew up in Henningsvær and has led walks in Lofoten for twelve summers.",
                        "photo": null,
                        "languages": [
                          "en",
                          "nb"
                        ],
                        "slug": "kari-nordmann",
                        "image": null
                      }
                    ],
                    "stays": [
                      {
                        "id": "reine-rorbuer",
                        "name": "Reine Rorbuer",
                        "location": "Reine",
                        "country": "NO",
                        "website": "https://northwilds.com/stays/reine-rorbuer/",
                        "rating": 4.6,
                        "description": "Red fishing cabins on stilts above the harbour.",
                        "images": [],
                        "nights": 2
                      }
                    ],
                    "terms": "Bookings follow the Northwilds booking terms.",
                    "brochureUrl": null,
                    "invitationFor": null
                  }
                }
              }
            }
          },
          "401": {
            "description": "A key that is wrong, revoked, expired or for another organisation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't valid for this organisation. Check it under API keys in Travel Orbit."
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "A key that reads drafts, sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "A key that reads drafts must stay on your server. Call the API from your server, or use a key without drafts in the browser."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No organisation with that booking name, or no published trip or destination there.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Trip was not found"
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests from one network.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many tries. Wait a minute and try again."
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          },
          {
            "apiKey": []
          },
          {}
        ],
        "x-try-it": {
          "run": true
        }
      }
    },
    "/{slug}/guides": {
      "get": {
        "operationId": "listGuides",
        "tags": [
          "Guides"
        ],
        "summary": "List guides",
        "description": "Guides who lead a public trip or have a bio, by name, all at once. Cacheable for 60 seconds.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          },
          {
            "name": "locale",
            "in": "query",
            "description": "A language you offer, such as nb. Without it, your main language.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The guides.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Guide"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": [
                    {
                      "slug": "kari-nordmann",
                      "name": "Kari Nordmann",
                      "role": "Mountain guide",
                      "bio": "Kari grew up in Henningsvær and has led walks in Lofoten for twelve summers.",
                      "image": null,
                      "languages": [
                        "en",
                        "nb"
                      ],
                      "profile": {
                        "home": "Henningsvær",
                        "since": 2014
                      },
                      "tripCount": 2,
                      "seo": {
                        "title": "Kari Nordmann | Northwilds",
                        "description": "Mountain guide in Lofoten.",
                        "image": null
                      },
                      "locale": "en",
                      "fallback": []
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "A key that is wrong, revoked, expired or for another organisation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't valid for this organisation. Check it under API keys in Travel Orbit."
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "A key that reads drafts, sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "A key that reads drafts must stay on your server. Call the API from your server, or use a key without drafts in the browser."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No organisation with that booking name, or no published trip or destination there.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Organisation was not found"
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests from one network.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many tries. Wait a minute and try again."
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          },
          {
            "apiKey": []
          },
          {}
        ],
        "x-try-it": {
          "run": true
        }
      }
    },
    "/{slug}/guides/{guideSlug}": {
      "get": {
        "operationId": "getGuide",
        "tags": [
          "Guides"
        ],
        "summary": "Get a guide",
        "description": "Everything in the list, plus the public trips they lead and the trip they recommend.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          },
          {
            "name": "guideSlug",
            "in": "path",
            "required": true,
            "description": "The guide's address.",
            "schema": {
              "type": "string"
            },
            "example": "kari-nordmann"
          },
          {
            "name": "locale",
            "in": "query",
            "description": "A language you offer, such as nb. Without it, your main language.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The guide.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/GuideDetail"
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": {
                    "slug": "kari-nordmann",
                    "name": "Kari Nordmann",
                    "role": "Mountain guide",
                    "bio": "Kari grew up in Henningsvær and has led walks in Lofoten for twelve summers.",
                    "image": null,
                    "languages": [
                      "en",
                      "nb"
                    ],
                    "profile": {
                      "home": "Henningsvær",
                      "since": 2014
                    },
                    "tripCount": 2,
                    "seo": {
                      "title": "Kari Nordmann | Northwilds",
                      "description": "Mountain guide in Lofoten.",
                      "image": null
                    },
                    "locale": "en",
                    "fallback": [],
                    "trips": [
                      {
                        "id": "6650f1c2a9e4b3d2c1f0ea01",
                        "slug": "lofoten-ridge-walk",
                        "name": "Lofoten ridge walk",
                        "draft": false,
                        "category": "Walking holidays",
                        "tags": [
                          "Small group"
                        ],
                        "activities": [
                          "hiking"
                        ],
                        "countries": [
                          "NO"
                        ],
                        "areas": [
                          "Lofoten"
                        ],
                        "area": "Lofoten",
                        "summary": "Seven days on the ridges and white beaches of Lofoten, with nights in red fishing cabins.",
                        "badge": "New",
                        "days": 7,
                        "difficulty": "moderate",
                        "groupSize": {
                          "min": 4,
                          "max": 12
                        },
                        "images": [
                          {
                            "id": "6650f1c2a9e4b3d2c1f0ea31",
                            "url": "https://media.bifrostorbit.com/northwilds/lofoten-ridge.jpg",
                            "mimeType": "image/jpeg",
                            "width": 2400,
                            "height": 1600,
                            "alt": "Walkers on a grassy ridge above the sea in Lofoten",
                            "title": null,
                            "focalPoint": {
                              "x": 0.5,
                              "y": 0.4
                            }
                          }
                        ],
                        "seo": {
                          "title": "Lofoten ridge walk | Northwilds",
                          "description": "Seven days on the ridges and beaches of Lofoten with a Northwilds guide.",
                          "image": {
                            "id": "6650f1c2a9e4b3d2c1f0ea31",
                            "url": "https://media.bifrostorbit.com/northwilds/lofoten-ridge.jpg",
                            "mimeType": "image/jpeg",
                            "width": 2400,
                            "height": 1600,
                            "alt": "Walkers on a grassy ridge above the sea in Lofoten",
                            "title": null,
                            "focalPoint": {
                              "x": 0.5,
                              "y": 0.4
                            }
                          }
                        },
                        "currency": "NOK",
                        "priceFrom": 1240000,
                        "currencies": [
                          "NOK",
                          "EUR"
                        ],
                        "pricesFrom": {
                          "NOK": 1240000,
                          "EUR": 109000
                        },
                        "rating": {
                          "average": 4.9,
                          "count": 37
                        },
                        "bookingMode": "instant",
                        "nextDeparture": "2027-06-14",
                        "departures": [
                          {
                            "id": "6650f1c2a9e4b3d2c1f0ea07",
                            "startDate": "2027-06-14",
                            "endDate": "2027-06-20",
                            "flexible": false,
                            "guaranteed": true,
                            "status": "open",
                            "seatsLeft": 6,
                            "capacity": 12,
                            "prices": {
                              "per-person": 1240000
                            },
                            "priceFrom": 1240000,
                            "pricesByCurrency": {
                              "NOK": {
                                "per-person": 1240000
                              },
                              "EUR": {
                                "per-person": 109000
                              }
                            },
                            "priceFromByCurrency": {
                              "NOK": 1240000,
                              "EUR": 109000
                            },
                            "bookingDeadline": "2027-05-31"
                          }
                        ],
                        "cmsEntryId": null,
                        "locale": "en",
                        "fallback": []
                      }
                    ],
                    "pick": {
                      "id": "6650f1c2a9e4b3d2c1f0ea01",
                      "slug": "lofoten-ridge-walk",
                      "name": "Lofoten ridge walk",
                      "draft": false,
                      "category": "Walking holidays",
                      "tags": [
                        "Small group"
                      ],
                      "activities": [
                        "hiking"
                      ],
                      "countries": [
                        "NO"
                      ],
                      "areas": [
                        "Lofoten"
                      ],
                      "area": "Lofoten",
                      "summary": "Seven days on the ridges and white beaches of Lofoten, with nights in red fishing cabins.",
                      "badge": "New",
                      "days": 7,
                      "difficulty": "moderate",
                      "groupSize": {
                        "min": 4,
                        "max": 12
                      },
                      "images": [
                        {
                          "id": "6650f1c2a9e4b3d2c1f0ea31",
                          "url": "https://media.bifrostorbit.com/northwilds/lofoten-ridge.jpg",
                          "mimeType": "image/jpeg",
                          "width": 2400,
                          "height": 1600,
                          "alt": "Walkers on a grassy ridge above the sea in Lofoten",
                          "title": null,
                          "focalPoint": {
                            "x": 0.5,
                            "y": 0.4
                          }
                        }
                      ],
                      "seo": {
                        "title": "Lofoten ridge walk | Northwilds",
                        "description": "Seven days on the ridges and beaches of Lofoten with a Northwilds guide.",
                        "image": {
                          "id": "6650f1c2a9e4b3d2c1f0ea31",
                          "url": "https://media.bifrostorbit.com/northwilds/lofoten-ridge.jpg",
                          "mimeType": "image/jpeg",
                          "width": 2400,
                          "height": 1600,
                          "alt": "Walkers on a grassy ridge above the sea in Lofoten",
                          "title": null,
                          "focalPoint": {
                            "x": 0.5,
                            "y": 0.4
                          }
                        }
                      },
                      "currency": "NOK",
                      "priceFrom": 1240000,
                      "currencies": [
                        "NOK",
                        "EUR"
                      ],
                      "pricesFrom": {
                        "NOK": 1240000,
                        "EUR": 109000
                      },
                      "rating": {
                        "average": 4.9,
                        "count": 37
                      },
                      "bookingMode": "instant",
                      "nextDeparture": "2027-06-14",
                      "departures": [
                        {
                          "id": "6650f1c2a9e4b3d2c1f0ea07",
                          "startDate": "2027-06-14",
                          "endDate": "2027-06-20",
                          "flexible": false,
                          "guaranteed": true,
                          "status": "open",
                          "seatsLeft": 6,
                          "capacity": 12,
                          "prices": {
                            "per-person": 1240000
                          },
                          "priceFrom": 1240000,
                          "pricesByCurrency": {
                            "NOK": {
                              "per-person": 1240000
                            },
                            "EUR": {
                              "per-person": 109000
                            }
                          },
                          "priceFromByCurrency": {
                            "NOK": 1240000,
                            "EUR": 109000
                          },
                          "bookingDeadline": "2027-05-31"
                        }
                      ],
                      "cmsEntryId": null,
                      "locale": "en",
                      "fallback": []
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A key that is wrong, revoked, expired or for another organisation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't valid for this organisation. Check it under API keys in Travel Orbit."
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "A key that reads drafts, sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "A key that reads drafts must stay on your server. Call the API from your server, or use a key without drafts in the browser."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No organisation with that booking name, or no published trip or destination there.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Guide was not found"
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests from one network.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many tries. Wait a minute and try again."
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          },
          {
            "apiKey": []
          },
          {}
        ],
        "x-try-it": {
          "run": true
        }
      }
    },
    "/{slug}/destinations": {
      "get": {
        "operationId": "listDestinations",
        "tags": [
          "Destinations"
        ],
        "summary": "List destinations",
        "description": "Continents and countries your public trips visit, plus countries published without trips. Cacheable for 5 minutes.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          },
          {
            "name": "locale",
            "in": "query",
            "description": "A language you offer, such as nb. Without it, your main language.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The continents.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ContinentSummary"
                      }
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": [
                    {
                      "key": "europe",
                      "name": "Europe",
                      "published": true,
                      "tagline": "From the Arctic to the Alps.",
                      "cover": null,
                      "countries": [
                        {
                          "code": "NO",
                          "slug": "norway",
                          "name": "Norway",
                          "flag": "https://app.bifrostorbit.com/travel/flags/no.svg",
                          "tripCount": 3,
                          "published": true,
                          "tagline": "Fjords, ridges and the midnight sun.",
                          "cover": {
                            "url": "https://media.bifrostorbit.com/northwilds/lofoten-ridge.jpg",
                            "alt": "Walkers on a grassy ridge above the sea in Lofoten"
                          },
                          "locale": "en",
                          "fallback": []
                        }
                      ],
                      "locale": "en",
                      "fallback": []
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "A key that is wrong, revoked, expired or for another organisation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't valid for this organisation. Check it under API keys in Travel Orbit."
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "A key that reads drafts, sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "A key that reads drafts must stay on your server. Call the API from your server, or use a key without drafts in the browser."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No organisation with that booking name, or no published trip or destination there.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Organisation was not found"
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests from one network.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many tries. Wait a minute and try again."
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          },
          {
            "apiKey": []
          },
          {}
        ],
        "x-try-it": {
          "run": true
        }
      }
    },
    "/{slug}/destinations/{continent}": {
      "get": {
        "operationId": "getContinent",
        "tags": [
          "Destinations"
        ],
        "summary": "Get a continent",
        "description": "A continent with its countries, and your introduction once published.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          },
          {
            "name": "continent",
            "in": "path",
            "required": true,
            "description": "Such as europe.",
            "schema": {
              "type": "string"
            },
            "example": "europe"
          },
          {
            "name": "locale",
            "in": "query",
            "description": "A language you offer, such as nb. Without it, your main language.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The continent.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Continent"
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": {
                    "key": "europe",
                    "name": "Europe",
                    "published": true,
                    "tagline": "From the Arctic to the Alps.",
                    "cover": null,
                    "countries": [
                      {
                        "code": "NO",
                        "slug": "norway",
                        "name": "Norway",
                        "flag": "https://app.bifrostorbit.com/travel/flags/no.svg",
                        "tripCount": 3,
                        "published": true,
                        "tagline": "Fjords, ridges and the midnight sun.",
                        "cover": {
                          "url": "https://media.bifrostorbit.com/northwilds/lofoten-ridge.jpg",
                          "alt": "Walkers on a grassy ridge above the sea in Lofoten"
                        },
                        "locale": "en",
                        "fallback": []
                      }
                    ],
                    "locale": "en",
                    "fallback": [],
                    "content": {
                      "heading": "Walking in Norway",
                      "tagline": "Fjords, ridges and the midnight sun.",
                      "intro": "Norway is made for walking.",
                      "guide": "<p>June to August brings long light evenings.</p>",
                      "images": [],
                      "bestTime": "June to September",
                      "entry": "No visa for EU and UK citizens for short stays.",
                      "seo": {
                        "title": "Walking holidays in Norway | Northwilds",
                        "description": "Guided walks in Lofoten and the fjords."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A key that is wrong, revoked, expired or for another organisation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't valid for this organisation. Check it under API keys in Travel Orbit."
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "A key that reads drafts, sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "A key that reads drafts must stay on your server. Call the API from your server, or use a key without drafts in the browser."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No organisation with that booking name, or no published trip or destination there.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Continent was not found"
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests from one network.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many tries. Wait a minute and try again."
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          },
          {
            "apiKey": []
          },
          {}
        ],
        "x-try-it": {
          "run": true
        }
      }
    },
    "/{slug}/destinations/{continent}/{country}": {
      "get": {
        "operationId": "getCountry",
        "tags": [
          "Destinations"
        ],
        "summary": "Get a country",
        "description": "Facts, your text, trips, local time, weather and the exchange rate. A country with neither trips nor published text is 404.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          },
          {
            "name": "continent",
            "in": "path",
            "required": true,
            "description": "Such as europe.",
            "schema": {
              "type": "string"
            },
            "example": "europe"
          },
          {
            "name": "country",
            "in": "path",
            "required": true,
            "description": "The country's slug or two-letter code.",
            "schema": {
              "type": "string"
            },
            "example": "norway"
          },
          {
            "name": "locale",
            "in": "query",
            "description": "A language you offer, such as nb. Without it, your main language.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The country.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Country"
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": {
                    "code": "NO",
                    "slug": "norway",
                    "name": "Norway",
                    "flag": "https://app.bifrostorbit.com/travel/flags/no.svg",
                    "continent": {
                      "key": "europe",
                      "name": "Europe"
                    },
                    "facts": {
                      "name": "Norway",
                      "officialName": "Kingdom of Norway",
                      "capital": "Oslo",
                      "languages": [
                        "Norwegian"
                      ],
                      "drivingSide": "right",
                      "callingCode": "+47",
                      "currency": "NOK",
                      "timeZone": "Europe/Oslo"
                    },
                    "labels": {
                      "capital": "Capital",
                      "languages": "Languages",
                      "currency": "Currency"
                    },
                    "content": {
                      "heading": "Walking in Norway",
                      "tagline": "Fjords, ridges and the midnight sun.",
                      "intro": "Norway is made for walking.",
                      "guide": "<p>June to August brings long light evenings.</p>",
                      "images": [],
                      "bestTime": "June to September",
                      "entry": "No visa for EU and UK citizens for short stays.",
                      "seo": {
                        "title": "Walking holidays in Norway | Northwilds",
                        "description": "Guided walks in Lofoten and the fjords."
                      }
                    },
                    "trips": [
                      {
                        "id": "6650f1c2a9e4b3d2c1f0ea01",
                        "slug": "lofoten-ridge-walk",
                        "name": "Lofoten ridge walk",
                        "draft": false,
                        "category": "Walking holidays",
                        "tags": [
                          "Small group"
                        ],
                        "activities": [
                          "hiking"
                        ],
                        "countries": [
                          "NO"
                        ],
                        "areas": [
                          "Lofoten"
                        ],
                        "area": "Lofoten",
                        "summary": "Seven days on the ridges and white beaches of Lofoten, with nights in red fishing cabins.",
                        "badge": "New",
                        "days": 7,
                        "difficulty": "moderate",
                        "groupSize": {
                          "min": 4,
                          "max": 12
                        },
                        "images": [
                          {
                            "id": "6650f1c2a9e4b3d2c1f0ea31",
                            "url": "https://media.bifrostorbit.com/northwilds/lofoten-ridge.jpg",
                            "mimeType": "image/jpeg",
                            "width": 2400,
                            "height": 1600,
                            "alt": "Walkers on a grassy ridge above the sea in Lofoten",
                            "title": null,
                            "focalPoint": {
                              "x": 0.5,
                              "y": 0.4
                            }
                          }
                        ],
                        "seo": {
                          "title": "Lofoten ridge walk | Northwilds",
                          "description": "Seven days on the ridges and beaches of Lofoten with a Northwilds guide.",
                          "image": {
                            "id": "6650f1c2a9e4b3d2c1f0ea31",
                            "url": "https://media.bifrostorbit.com/northwilds/lofoten-ridge.jpg",
                            "mimeType": "image/jpeg",
                            "width": 2400,
                            "height": 1600,
                            "alt": "Walkers on a grassy ridge above the sea in Lofoten",
                            "title": null,
                            "focalPoint": {
                              "x": 0.5,
                              "y": 0.4
                            }
                          }
                        },
                        "currency": "NOK",
                        "priceFrom": 1240000,
                        "currencies": [
                          "NOK",
                          "EUR"
                        ],
                        "pricesFrom": {
                          "NOK": 1240000,
                          "EUR": 109000
                        },
                        "rating": {
                          "average": 4.9,
                          "count": 37
                        },
                        "bookingMode": "instant",
                        "nextDeparture": "2027-06-14",
                        "departures": [
                          {
                            "id": "6650f1c2a9e4b3d2c1f0ea07",
                            "startDate": "2027-06-14",
                            "endDate": "2027-06-20",
                            "flexible": false,
                            "guaranteed": true,
                            "status": "open",
                            "seatsLeft": 6,
                            "capacity": 12,
                            "prices": {
                              "per-person": 1240000
                            },
                            "priceFrom": 1240000,
                            "pricesByCurrency": {
                              "NOK": {
                                "per-person": 1240000
                              },
                              "EUR": {
                                "per-person": 109000
                              }
                            },
                            "priceFromByCurrency": {
                              "NOK": 1240000,
                              "EUR": 109000
                            },
                            "bookingDeadline": "2027-05-31"
                          }
                        ],
                        "cmsEntryId": null,
                        "locale": "en",
                        "fallback": []
                      }
                    ],
                    "live": {
                      "timeZone": "Europe/Oslo",
                      "weather": {
                        "temperature": 4,
                        "symbol": "cloudy",
                        "description": "Cloudy",
                        "icon": "cloudy",
                        "at": "2026-11-10T09:30:00.000Z",
                        "credit": "Weather from MET Norway"
                      },
                      "rate": {
                        "from": "EUR",
                        "to": "NOK",
                        "rate": 11.42,
                        "date": "2026-11-10"
                      }
                    },
                    "locale": "en",
                    "fallback": []
                  }
                }
              }
            }
          },
          "401": {
            "description": "A key that is wrong, revoked, expired or for another organisation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't valid for this organisation. Check it under API keys in Travel Orbit."
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "A key that reads drafts, sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "A key that reads drafts must stay on your server. Call the API from your server, or use a key without drafts in the browser."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No organisation with that booking name, or no published trip or destination there.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Country was not found"
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests from one network.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many tries. Wait a minute and try again."
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          },
          {
            "apiKey": []
          },
          {}
        ],
        "x-try-it": {
          "run": true
        }
      }
    },
    "/{slug}/quote": {
      "post": {
        "operationId": "quote",
        "tags": [
          "Booking"
        ],
        "summary": "Price a booking",
        "description": "Prices a booking without saving anything. Call it whenever the traveller changes their choices. 30 a minute.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuoteInput"
              },
              "example": {
                "departureId": "6650f1c2a9e4b3d2c1f0ea07",
                "travellers": [
                  {
                    "packageId": "per-person"
                  },
                  {
                    "packageId": "per-person"
                  }
                ],
                "addOns": [
                  {
                    "id": "gear-hire",
                    "quantity": 2
                  }
                ],
                "currency": "NOK",
                "locale": "nb"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The price.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Quote"
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": {
                    "currency": "NOK",
                    "lines": [
                      {
                        "id": "package-per-person",
                        "kind": "package",
                        "refId": "per-person",
                        "label": "Per person",
                        "unitAmount": 1240000,
                        "quantity": 2,
                        "amount": 2480000
                      },
                      {
                        "id": "addon-gear-hire",
                        "kind": "addOn",
                        "refId": "gear-hire",
                        "label": "Boots and poles",
                        "unitAmount": 45000,
                        "quantity": 2,
                        "amount": 90000
                      }
                    ],
                    "subtotal": 2570000,
                    "discount": 0,
                    "total": 2570000,
                    "code": null,
                    "schedule": [
                      {
                        "label": "Deposit",
                        "dueDate": "2026-11-10",
                        "amount": 514000
                      },
                      {
                        "label": "Balance",
                        "dueDate": "2027-04-15",
                        "amount": 2056000
                      }
                    ],
                    "dueNow": 514000,
                    "seatsLeft": 6
                  }
                }
              }
            }
          },
          "400": {
            "description": "The booking can't be made as asked, such as a currency the trip isn't sold in or a departure that has closed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid",
                    "message": "Bookings for this departure have closed"
                  }
                }
              }
            }
          },
          "401": {
            "description": "A key that is wrong, revoked, expired or for another organisation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't valid for this organisation. Check it under API keys in Travel Orbit."
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The website isn't in the allowed websites, or a key that reads drafts was sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "This website isn't allowed to book here. Add it to the allowed websites in Travel Orbit's settings."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No organisation with that booking name.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Organisation was not found"
                  }
                }
              }
            }
          },
          "409": {
            "description": "Not enough places left, or an extra sold out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "conflict",
                    "message": "There aren't enough places left on this departure"
                  }
                }
              }
            }
          },
          "422": {
            "description": "A field is missing or in the wrong format.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid",
                    "message": "Invalid string: must match pattern /^[a-f0-9]{24}$/",
                    "issues": [
                      {
                        "code": "invalid_format",
                        "path": [
                          "departureId"
                        ],
                        "message": "Invalid string: must match pattern /^[a-f0-9]{24}$/"
                      }
                    ]
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many tries from one network.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many tries. Wait a minute and try again."
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          },
          {
            "apiKey": []
          },
          {}
        ],
        "x-try-it": {
          "run": false,
          "reason": "It answers only your allowed websites, so a browser on the docs gets 403. Use the API playground in Travel Orbit."
        }
      }
    },
    "/{slug}/bookings": {
      "post": {
        "operationId": "createBooking",
        "tags": [
          "Booking"
        ],
        "summary": "Make a booking",
        "description": "Holds places and starts the payment, or sends a request when the trip takes requests or online payment is off. A held booking keeps its places until holdExpiresAt.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingInput"
              },
              "example": {
                "departureId": "6650f1c2a9e4b3d2c1f0ea07",
                "lead": {
                  "firstName": "Ingrid",
                  "lastName": "Berg",
                  "email": "ingrid@northwilds.com",
                  "phone": "+47 912 34 567"
                },
                "travellers": [
                  {
                    "firstName": "Ingrid",
                    "lastName": "Berg",
                    "dateOfBirth": "1990-04-12",
                    "packageId": "per-person"
                  }
                ],
                "addOns": [
                  {
                    "id": "gear-hire",
                    "quantity": 1
                  }
                ],
                "currency": "NOK",
                "locale": "en",
                "acceptTerms": true
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The booking, and the payment to take or null.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "booking": {
                          "$ref": "#/components/schemas/Booking"
                        },
                        "payment": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/Payment"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "booking",
                        "payment"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": {
                    "booking": {
                      "id": "6650f1c2a9e4b3d2c1f0ea51",
                      "reference": "NO-7KQ2MX",
                      "status": "held",
                      "total": 1240000,
                      "currency": "NOK",
                      "schedule": [
                        {
                          "id": "deposit",
                          "label": "Deposit",
                          "dueDate": "2026-11-10",
                          "amount": 248000,
                          "status": "due"
                        },
                        {
                          "id": "balance",
                          "label": "Balance",
                          "dueDate": "2027-04-15",
                          "amount": 992000,
                          "status": "due"
                        }
                      ],
                      "holdExpiresAt": "2026-11-10T10:00:00.000Z"
                    },
                    "payment": {
                      "kind": "payment",
                      "clientSecret": "pi_3QkNorthwilds_secret_…",
                      "publishableKey": "pk_live_…",
                      "amount": 248000,
                      "currency": "NOK"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The booking can't be made as asked, such as a missing traveller detail or answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid",
                    "message": "Add the date of birth for traveller 1"
                  }
                }
              }
            }
          },
          "401": {
            "description": "A key that is wrong, revoked, expired or for another organisation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't valid for this organisation. Check it under API keys in Travel Orbit."
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The website isn't in the allowed websites, or a key that reads drafts was sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "This website isn't allowed to book here. Add it to the allowed websites in Travel Orbit's settings."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No organisation with that booking name.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Organisation was not found"
                  }
                }
              }
            }
          },
          "409": {
            "description": "Not enough places left, or a package or extra sold out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "conflict",
                    "message": "Those places were just taken. Choose another departure or fewer travellers."
                  }
                }
              }
            }
          },
          "422": {
            "description": "A field is missing or in the wrong format.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid",
                    "message": "Add an email address we can reach you at",
                    "issues": [
                      {
                        "code": "invalid_format",
                        "path": [
                          "lead",
                          "email"
                        ],
                        "message": "Add an email address we can reach you at"
                      }
                    ]
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many tries from one network.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many tries. Wait a minute and try again."
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          },
          {
            "apiKey": []
          },
          {}
        ],
        "x-try-it": {
          "run": false,
          "reason": "It holds real places and emails the traveller."
        }
      }
    },
    "/{slug}/bookings/{reference}/check": {
      "post": {
        "operationId": "checkBooking",
        "tags": [
          "Booking"
        ],
        "summary": "Check a booking after payment",
        "description": "With the lead traveller's email. When the booking is still held or has expired, Travel Orbit asks Stripe first.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          },
          {
            "name": "reference",
            "in": "path",
            "required": true,
            "description": "Such as NO-7KQ2MX.",
            "schema": {
              "type": "string"
            },
            "example": "NO-7KQ2MX"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string"
                  }
                },
                "required": [
                  "email"
                ]
              },
              "example": {
                "email": "ingrid@northwilds.com"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The booking.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "booking": {
                          "$ref": "#/components/schemas/Booking"
                        }
                      },
                      "required": [
                        "booking"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": {
                    "booking": {
                      "id": "6650f1c2a9e4b3d2c1f0ea51",
                      "reference": "NO-7KQ2MX",
                      "status": "confirmed",
                      "total": 1240000,
                      "currency": "NOK",
                      "schedule": [
                        {
                          "id": "deposit",
                          "label": "Deposit",
                          "dueDate": "2026-11-10",
                          "amount": 248000,
                          "status": "paid"
                        },
                        {
                          "id": "balance",
                          "label": "Balance",
                          "dueDate": "2027-04-15",
                          "amount": 992000,
                          "status": "due"
                        }
                      ],
                      "holdExpiresAt": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A key that is wrong, revoked, expired or for another organisation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't valid for this organisation. Check it under API keys in Travel Orbit."
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The website isn't in the allowed websites, or a key that reads drafts was sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "This website isn't allowed to book here. Add it to the allowed websites in Travel Orbit's settings."
                  }
                }
              }
            }
          },
          "404": {
            "description": "An unknown reference, or an email that doesn't match.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Booking was not found"
                  }
                }
              }
            }
          },
          "422": {
            "description": "No email.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid",
                    "message": "Invalid input: expected string, received undefined",
                    "issues": [
                      {
                        "code": "invalid_type",
                        "path": [
                          "email"
                        ],
                        "message": "Invalid input: expected string, received undefined"
                      }
                    ]
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many tries from one network.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many tries. Wait a minute and try again."
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          },
          {
            "apiKey": []
          },
          {}
        ],
        "x-try-it": {
          "run": false,
          "reason": "It needs a real booking."
        }
      }
    },
    "/{slug}/portal/code": {
      "post": {
        "operationId": "portalCode",
        "tags": [
          "Traveller portal"
        ],
        "summary": "Send a sign-in code",
        "description": "Emails a 6-digit code, valid for 10 minutes. Always answers { sent: true }, but only sends to an email with a booking, at most once every 45 seconds.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string"
                  },
                  "locale": {
                    "type": "string"
                  }
                },
                "required": [
                  "email"
                ]
              },
              "example": {
                "email": "ingrid@northwilds.com",
                "locale": "en"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Sent, or not, without saying which.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "sent": {
                          "const": true
                        }
                      },
                      "required": [
                        "sent"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": {
                    "sent": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "Not an email address.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid",
                    "message": "Enter the email address you booked with"
                  }
                }
              }
            }
          },
          "401": {
            "description": "A key that is wrong, revoked, expired or for another organisation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't valid for this organisation. Check it under API keys in Travel Orbit."
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The website isn't in the allowed websites, or a key that reads drafts was sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "This website isn't allowed to book here. Add it to the allowed websites in Travel Orbit's settings."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No organisation with that booking name.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Organisation was not found"
                  }
                }
              }
            }
          },
          "422": {
            "description": "No email.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid",
                    "message": "Invalid input: expected string, received undefined",
                    "issues": [
                      {
                        "code": "invalid_type",
                        "path": [
                          "email"
                        ],
                        "message": "Invalid input: expected string, received undefined"
                      }
                    ]
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many tries from one network.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many tries. Wait a minute and try again."
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-try-it": {
          "run": false,
          "reason": "It emails a real traveller."
        }
      }
    },
    "/{slug}/portal/verify": {
      "post": {
        "operationId": "portalVerify",
        "tags": [
          "Traveller portal"
        ],
        "summary": "Check the code",
        "description": "Checks the code (5 tries) and sets the travel.portal session cookie for 12 hours.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string"
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "email",
                  "code"
                ]
              },
              "example": {
                "email": "ingrid@northwilds.com",
                "code": "482913"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Signed in.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "email": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "email"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": {
                    "email": "ingrid@northwilds.com"
                  }
                }
              }
            }
          },
          "400": {
            "description": "A wrong or expired code.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid",
                    "message": "That code isn't right. Check the email and try again."
                  }
                }
              }
            }
          },
          "401": {
            "description": "A key that is wrong, revoked, expired or for another organisation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't valid for this organisation. Check it under API keys in Travel Orbit."
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The website isn't in the allowed websites, or a key that reads drafts was sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "This website isn't allowed to book here. Add it to the allowed websites in Travel Orbit's settings."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No organisation with that booking name.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Organisation was not found"
                  }
                }
              }
            }
          },
          "422": {
            "description": "No code.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid",
                    "message": "Enter the code from the email",
                    "issues": [
                      {
                        "code": "too_small",
                        "path": [
                          "code"
                        ],
                        "message": "Enter the code from the email"
                      }
                    ]
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many tries from one network.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many tries. Wait a minute and try again."
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-try-it": {
          "run": false,
          "reason": "It needs a code from a real inbox."
        }
      },
      "delete": {
        "operationId": "portalSignOut",
        "tags": [
          "Traveller portal"
        ],
        "summary": "Sign out",
        "description": "Ends the session.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          },
          {
            "name": "Cookie",
            "in": "header",
            "required": true,
            "description": "travel.portal=… from the verify answer. Call the portal from your own server.",
            "schema": {
              "type": "string"
            },
            "example": "travel.portal=…"
          }
        ],
        "responses": {
          "200": {
            "description": "Signed out.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "signedOut": {
                          "const": true
                        }
                      },
                      "required": [
                        "signedOut"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": {
                    "signedOut": true
                  }
                }
              }
            }
          },
          "401": {
            "description": "A key that is wrong, revoked, expired or for another organisation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "This API key isn't valid for this organisation. Check it under API keys in Travel Orbit."
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The website isn't in the allowed websites, or a key that reads drafts was sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "This website isn't allowed to book here. Add it to the allowed websites in Travel Orbit's settings."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No organisation with that booking name.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Organisation was not found"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-try-it": {
          "run": false,
          "reason": "It needs a traveller signed in to the portal."
        }
      }
    },
    "/{slug}/portal/bookings": {
      "get": {
        "operationId": "portalBookings",
        "tags": [
          "Traveller portal"
        ],
        "summary": "The traveller's bookings",
        "description": "With what is paid and what is due, all at once.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          },
          {
            "name": "Cookie",
            "in": "header",
            "required": true,
            "description": "travel.portal=… from the verify answer. Call the portal from your own server.",
            "schema": {
              "type": "string"
            },
            "example": "travel.portal=…"
          },
          {
            "name": "locale",
            "in": "query",
            "description": "A language you offer, such as nb. Without it, your main language.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The signed-in email, the language used and the bookings.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "email": {
                          "type": "string"
                        },
                        "locale": {
                          "type": "string"
                        },
                        "bookings": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/PortalBooking"
                          }
                        }
                      },
                      "required": [
                        "email",
                        "locale",
                        "bookings"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": {
                    "email": "ingrid@northwilds.com",
                    "locale": "en",
                    "bookings": [
                      {
                        "reference": "NO-7KQ2MX",
                        "leadFirstName": "Ingrid",
                        "tripName": "Lofoten ridge walk",
                        "tripSlug": "lofoten-ridge-walk",
                        "image": {
                          "id": "6650f1c2a9e4b3d2c1f0ea31",
                          "url": "https://media.bifrostorbit.com/northwilds/lofoten-ridge.jpg",
                          "mimeType": "image/jpeg",
                          "width": 2400,
                          "height": 1600,
                          "alt": "Walkers on a grassy ridge above the sea in Lofoten",
                          "title": null,
                          "focalPoint": {
                            "x": 0.5,
                            "y": 0.4
                          }
                        },
                        "days": 7,
                        "departureDate": "2027-06-14",
                        "status": "confirmed",
                        "travellers": [
                          {
                            "id": "t1",
                            "firstName": "Ingrid",
                            "lastName": "Berg",
                            "phone": "+47 912 34 567",
                            "dateOfBirth": "1990-04-12",
                            "nationality": "Norwegian",
                            "passport": "NO1234567",
                            "dietary": null,
                            "emergencyContact": "Ola Berg, +47 913 45 678"
                          }
                        ],
                        "payments": [
                          {
                            "id": "6650f1c2a9e4b3d2c1f0ea71",
                            "kind": "deposit",
                            "method": "card",
                            "amount": 248000,
                            "currency": "NOK",
                            "at": "2026-11-10T09:30:00.000Z"
                          }
                        ],
                        "lines": [
                          {
                            "label": "Per person",
                            "quantity": 1,
                            "amount": 1240000
                          }
                        ],
                        "currency": "NOK",
                        "total": 1240000,
                        "paid": 248000,
                        "schedule": [
                          {
                            "id": "deposit",
                            "label": "Deposit",
                            "dueDate": "2026-11-10",
                            "amount": 248000,
                            "status": "paid"
                          },
                          {
                            "id": "balance",
                            "label": "Balance",
                            "dueDate": "2027-04-15",
                            "amount": 992000,
                            "status": "due"
                          }
                        ],
                        "autoCharge": true,
                        "cardSaved": true
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "No signed-in traveller, or a key that isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Sign in with the code we email you"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The website isn't in the allowed websites, or a key that reads drafts was sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "This website isn't allowed to book here. Add it to the allowed websites in Travel Orbit's settings."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No organisation with that booking name.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Organisation was not found"
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-try-it": {
          "run": false,
          "reason": "It needs a traveller signed in to the portal."
        }
      }
    },
    "/{slug}/portal/pay": {
      "post": {
        "operationId": "portalPay",
        "tags": [
          "Traveller portal"
        ],
        "summary": "Pay what is due",
        "description": "Starts a payment for the next instalment, everything left or chosen instalments. instalments is next unless you say.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          },
          {
            "name": "Cookie",
            "in": "header",
            "required": true,
            "description": "travel.portal=… from the verify answer. Call the portal from your own server.",
            "schema": {
              "type": "string"
            },
            "example": "travel.portal=…"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reference": {
                    "type": "string"
                  },
                  "instalments": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "next",
                          "all"
                        ]
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    ]
                  }
                },
                "required": [
                  "reference"
                ]
              },
              "example": {
                "reference": "NO-7KQ2MX",
                "instalments": "next"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The payment.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "payment": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/Payment"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "payment"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": {
                    "payment": {
                      "kind": "payment",
                      "clientSecret": "pi_3QkNorthwilds_secret_…",
                      "publishableKey": "pk_live_…",
                      "amount": 992000,
                      "currency": "NOK"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The booking can't take payments, nothing is due, or online payment is off.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid",
                    "message": "Nothing is due on this booking"
                  }
                }
              }
            }
          },
          "401": {
            "description": "No signed-in traveller, or a key that isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Sign in with the code we email you"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The website isn't in the allowed websites, or a key that reads drafts was sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "This website isn't allowed to book here. Add it to the allowed websites in Travel Orbit's settings."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No booking with that reference for the signed-in traveller.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Booking was not found"
                  }
                }
              }
            }
          },
          "422": {
            "description": "No reference.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid",
                    "message": "Invalid input: expected string, received undefined",
                    "issues": [
                      {
                        "code": "invalid_type",
                        "path": [
                          "reference"
                        ],
                        "message": "Invalid input: expected string, received undefined"
                      }
                    ]
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-try-it": {
          "run": false,
          "reason": "It needs a traveller signed in to the portal."
        }
      }
    },
    "/{slug}/portal/auto-charge": {
      "post": {
        "operationId": "portalAutoCharge",
        "tags": [
          "Traveller portal"
        ],
        "summary": "Automatic payments",
        "description": "Turns automatic payments from the saved card on or off.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          },
          {
            "name": "Cookie",
            "in": "header",
            "required": true,
            "description": "travel.portal=… from the verify answer. Call the portal from your own server.",
            "schema": {
              "type": "string"
            },
            "example": "travel.portal=…"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reference": {
                    "type": "string"
                  },
                  "on": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "reference",
                  "on"
                ]
              },
              "example": {
                "reference": "NO-7KQ2MX",
                "on": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Changed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string"
                        },
                        "autoCharge": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "reference",
                        "autoCharge"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": {
                    "reference": "NO-7KQ2MX",
                    "autoCharge": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "No card saved yet.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid",
                    "message": "Pay once by card first, and we will use that card for the next payments"
                  }
                }
              }
            }
          },
          "401": {
            "description": "No signed-in traveller, or a key that isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Sign in with the code we email you"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The website isn't in the allowed websites, or a key that reads drafts was sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "This website isn't allowed to book here. Add it to the allowed websites in Travel Orbit's settings."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No booking with that reference for the signed-in traveller.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Booking was not found"
                  }
                }
              }
            }
          },
          "422": {
            "description": "A field is missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid",
                    "message": "Invalid input: expected boolean, received undefined",
                    "issues": [
                      {
                        "code": "invalid_type",
                        "path": [
                          "on"
                        ],
                        "message": "Invalid input: expected boolean, received undefined"
                      }
                    ]
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-try-it": {
          "run": false,
          "reason": "It needs a traveller signed in to the portal."
        }
      }
    },
    "/{slug}/portal/messages": {
      "get": {
        "operationId": "portalMessages",
        "tags": [
          "Traveller portal"
        ],
        "summary": "The conversation about a booking",
        "description": "Messages between the traveller and your team, all at once.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          },
          {
            "name": "Cookie",
            "in": "header",
            "required": true,
            "description": "travel.portal=… from the verify answer. Call the portal from your own server.",
            "schema": {
              "type": "string"
            },
            "example": "travel.portal=…"
          },
          {
            "name": "reference",
            "in": "query",
            "required": true,
            "description": "The booking.",
            "schema": {
              "type": "string"
            },
            "example": "NO-7KQ2MX"
          }
        ],
        "responses": {
          "200": {
            "description": "The messages.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string"
                        },
                        "messages": {
                          "type": "array",
                          "items": {}
                        }
                      },
                      "required": [
                        "reference",
                        "messages"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": {
                    "reference": "NO-7KQ2MX",
                    "messages": [
                      {
                        "id": "6650f1c2a9e4b3d2c1f0ea61",
                        "kind": "traveller",
                        "author": "Ingrid Berg",
                        "authorId": null,
                        "body": "Can I bring my own walking poles?",
                        "emailed": null,
                        "via": "portal",
                        "at": "2026-11-10T09:30:00.000Z"
                      },
                      {
                        "id": "6650f1c2a9e4b3d2c1f0ea62",
                        "kind": "reply",
                        "author": "Kari Nordmann",
                        "authorId": "6650f1c2a9e4b3d2c1f0ea81",
                        "body": "Of course. Bring them along, and we have spares in Reine.",
                        "emailed": true,
                        "via": null,
                        "at": "2026-11-10T09:30:00.000Z"
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "No signed-in traveller, or a key that isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Sign in with the code we email you"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The website isn't in the allowed websites, or a key that reads drafts was sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "This website isn't allowed to book here. Add it to the allowed websites in Travel Orbit's settings."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No booking with that reference for the signed-in traveller.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Booking was not found"
                  }
                }
              }
            }
          },
          "422": {
            "description": "No reference.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid",
                    "message": "Too small: expected string to have >=1 characters",
                    "issues": [
                      {
                        "code": "too_small",
                        "path": [
                          "reference"
                        ],
                        "message": "Too small: expected string to have >=1 characters"
                      }
                    ]
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-try-it": {
          "run": false,
          "reason": "It needs a traveller signed in to the portal."
        }
      },
      "post": {
        "operationId": "portalSendMessage",
        "tags": [
          "Traveller portal"
        ],
        "summary": "Send a message",
        "description": "Sends the traveller's message to your team.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          },
          {
            "name": "Cookie",
            "in": "header",
            "required": true,
            "description": "travel.portal=… from the verify answer. Call the portal from your own server.",
            "schema": {
              "type": "string"
            },
            "example": "travel.portal=…"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reference": {
                    "type": "string"
                  },
                  "body": {
                    "type": "string"
                  }
                },
                "required": [
                  "reference",
                  "body"
                ]
              },
              "example": {
                "reference": "NO-7KQ2MX",
                "body": "Can I bring my own walking poles?"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The message sent.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "message": {}
                      },
                      "required": [
                        "message"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": {
                    "message": {
                      "id": "6650f1c2a9e4b3d2c1f0ea61",
                      "kind": "traveller",
                      "author": "Ingrid Berg",
                      "authorId": null,
                      "body": "Can I bring my own walking poles?",
                      "emailed": null,
                      "via": "portal",
                      "at": "2026-11-10T09:30:00.000Z"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "No signed-in traveller, or a key that isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Sign in with the code we email you"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The website isn't in the allowed websites, or a key that reads drafts was sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "This website isn't allowed to book here. Add it to the allowed websites in Travel Orbit's settings."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No booking with that reference for the signed-in traveller.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Booking was not found"
                  }
                }
              }
            }
          },
          "422": {
            "description": "A field is missing.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid",
                    "message": "Invalid input: expected string, received undefined",
                    "issues": [
                      {
                        "code": "invalid_type",
                        "path": [
                          "body"
                        ],
                        "message": "Invalid input: expected string, received undefined"
                      }
                    ]
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-try-it": {
          "run": false,
          "reason": "It needs a traveller signed in to the portal."
        }
      }
    },
    "/{slug}/portal/travellers": {
      "post": {
        "operationId": "portalTraveller",
        "tags": [
          "Traveller portal"
        ],
        "summary": "Update a traveller",
        "description": "Until the trip starts. Only phone, dateOfBirth, nationality, passport, dietary and emergencyContact can change.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Your booking name from Booking settings, such as northwilds.",
            "schema": {
              "type": "string"
            },
            "example": "northwilds"
          },
          {
            "name": "Cookie",
            "in": "header",
            "required": true,
            "description": "travel.portal=… from the verify answer. Call the portal from your own server.",
            "schema": {
              "type": "string"
            },
            "example": "travel.portal=…"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reference": {
                    "type": "string"
                  },
                  "travellerId": {
                    "type": "string"
                  },
                  "changes": {
                    "type": "object",
                    "additionalProperties": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                },
                "required": [
                  "reference",
                  "travellerId",
                  "changes"
                ]
              },
              "example": {
                "reference": "NO-7KQ2MX",
                "travellerId": "t1",
                "changes": {
                  "passport": "NO1234567"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The booking's travellers.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "travellers": {
                          "type": "array",
                          "items": {}
                        }
                      },
                      "required": [
                        "travellers"
                      ]
                    }
                  },
                  "required": [
                    "data"
                  ]
                },
                "example": {
                  "data": {
                    "travellers": [
                      {
                        "id": "t1",
                        "firstName": "Ingrid",
                        "lastName": "Berg",
                        "phone": "+47 912 34 567",
                        "dateOfBirth": "1990-04-12",
                        "nationality": "Norwegian",
                        "passport": "NO1234567",
                        "dietary": null,
                        "emergencyContact": "Ola Berg, +47 913 45 678"
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "The booking is cancelled or the trip has started.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid",
                    "message": "This trip has already started, so the details can't be changed here"
                  }
                }
              }
            }
          },
          "401": {
            "description": "No signed-in traveller, or a key that isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "unauthorized",
                    "message": "Sign in with the code we email you"
                  }
                }
              }
            }
          },
          "402": {
            "description": "The booking pages are paused because the Travel Orbit plan has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "subscription_inactive",
                    "message": "These booking pages are paused because the Travel Orbit trial or plan has ended. Nothing is deleted, and they come back as soon as an owner chooses a plan."
                  }
                }
              }
            }
          },
          "403": {
            "description": "The website isn't in the allowed websites, or a key that reads drafts was sent from a browser.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "forbidden",
                    "message": "This website isn't allowed to book here. Add it to the allowed websites in Travel Orbit's settings."
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such booking or traveller for the signed-in traveller.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "not_found",
                    "message": "Booking was not found"
                  }
                }
              }
            }
          },
          "422": {
            "description": "A field is missing or too long.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "invalid",
                    "message": "Too big: expected string to have <=40 characters",
                    "issues": [
                      {
                        "code": "too_big",
                        "path": [
                          "changes",
                          "passport"
                        ],
                        "message": "Too big: expected string to have <=40 characters"
                      }
                    ]
                  }
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on our side.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": {
                    "code": "server_error",
                    "message": "Something went wrong on our side. Try again in a moment."
                  }
                }
              }
            }
          }
        },
        "security": [],
        "x-try-it": {
          "run": false,
          "reason": "It needs a traveller signed in to the portal."
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "description": "invalid, forbidden, not_found, conflict, unauthorized, subscription_inactive, rate_limited or server_error."
              },
              "message": {
                "type": "string",
                "description": "Words you can show the traveller, in the language of the request."
              },
              "issues": {
                "type": "array",
                "items": {},
                "description": "On 422: each field that failed, with its path and message."
              }
            },
            "required": [
              "code",
              "message"
            ]
          }
        },
        "required": [
          "error"
        ]
      },
      "Image": {
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": "string",
            "description": "Takes ?w= and ?format= (webp, avif or jpeg) for images from the media library."
          },
          "mimeType": {
            "type": "string"
          },
          "width": {
            "type": [
              "integer",
              "null"
            ]
          },
          "height": {
            "type": [
              "integer",
              "null"
            ]
          },
          "alt": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "focalPoint": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y"
            ]
          }
        },
        "required": [
          "id",
          "url",
          "mimeType",
          "width",
          "height",
          "alt",
          "title",
          "focalPoint"
        ]
      },
      "Organisation": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "brandName": {
            "type": "string"
          },
          "logoUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "colour": {
            "type": [
              "string",
              "null"
            ]
          },
          "contactEmail": {
            "type": [
              "string",
              "null"
            ]
          },
          "payments": {
            "type": "object",
            "properties": {
              "online": {
                "type": "boolean",
                "description": "Whether online payment works right now."
              },
              "publishableKey": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Your Stripe publishable key."
              }
            },
            "required": [
              "online",
              "publishableKey"
            ]
          },
          "organiser": {
            "description": "legalName, registration and address."
          },
          "guarantee": {
            "description": "provider and text."
          },
          "termsUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "locales": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The languages you offer, the main one first."
          },
          "defaultLocale": {
            "type": "string"
          },
          "locale": {
            "type": "string"
          },
          "fallback": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Fields not translated yet, which came in the main language, such as description or itinerary.day-3.body."
          }
        },
        "required": [
          "slug",
          "brandName",
          "logoUrl",
          "colour",
          "contactEmail",
          "payments",
          "organiser",
          "guarantee",
          "termsUrl",
          "locales",
          "defaultLocale",
          "locale",
          "fallback"
        ]
      },
      "Departure": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "description": "Such as 2027-05-14."
          },
          "endDate": {
            "type": [
              "string",
              "null"
            ]
          },
          "flexible": {
            "type": "boolean",
            "description": "Dates to be decided."
          },
          "guaranteed": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "full",
              "closed"
            ]
          },
          "seatsLeft": {
            "type": [
              "integer",
              "null"
            ],
            "description": "null for no limit."
          },
          "capacity": {
            "type": [
              "integer",
              "null"
            ]
          },
          "prices": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "By package id, in the main currency."
          },
          "priceFrom": {
            "type": [
              "integer",
              "null"
            ]
          },
          "pricesByCurrency": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "type": "integer"
              }
            },
            "description": "By currency, then by package id."
          },
          "priceFromByCurrency": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "By currency, such as EUR and NOK."
          },
          "bookingDeadline": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "startDate",
          "endDate",
          "flexible",
          "guaranteed",
          "status",
          "seatsLeft",
          "capacity",
          "prices",
          "priceFrom",
          "pricesByCurrency",
          "priceFromByCurrency",
          "bookingDeadline"
        ]
      },
      "Trip": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string",
            "description": "Such as lofoten-ridge-walk."
          },
          "name": {
            "type": "string"
          },
          "draft": {
            "type": "boolean",
            "description": "Only with a key that reads drafts."
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "activities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Two letters each."
          },
          "areas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "area": {
            "type": [
              "string",
              "null"
            ],
            "description": "The areas joined with commas."
          },
          "summary": {
            "type": "string"
          },
          "badge": {
            "type": [
              "string",
              "null"
            ]
          },
          "days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "difficulty": {
            "description": "The difficulty set on the trip.",
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "groupSize": {
            "description": "min and max."
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Image"
            }
          },
          "seo": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "image": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Image"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "title",
              "description",
              "image"
            ]
          },
          "currency": {
            "type": "string",
            "description": "The trip's main currency."
          },
          "priceFrom": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The lowest price in the main currency. In minor units, so 124000 with EUR is €1,240.00."
          },
          "currencies": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every currency it is sold in, the main one first."
          },
          "pricesFrom": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "By currency, such as EUR and NOK."
          },
          "rating": {
            "description": "average and count.",
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "bookingMode": {
            "type": "string",
            "enum": [
              "instant",
              "request",
              "closed"
            ]
          },
          "nextDeparture": {
            "type": [
              "string",
              "null"
            ]
          },
          "departures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Departure"
            }
          },
          "cmsEntryId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The CMS Orbit entry for the trip page, when linked."
          },
          "locale": {
            "type": "string"
          },
          "fallback": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Fields not translated yet, which came in the main language, such as description or itinerary.day-3.body."
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "draft",
          "category",
          "tags",
          "activities",
          "countries",
          "areas",
          "area",
          "summary",
          "badge",
          "days",
          "difficulty",
          "groupSize",
          "images",
          "seo",
          "currency",
          "priceFrom",
          "currencies",
          "pricesFrom",
          "rating",
          "bookingMode",
          "nextDeparture",
          "departures",
          "cmsEntryId",
          "locale",
          "fallback"
        ]
      },
      "TripDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string",
            "description": "Such as lofoten-ridge-walk."
          },
          "name": {
            "type": "string"
          },
          "draft": {
            "type": "boolean",
            "description": "Only with a key that reads drafts."
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "activities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Two letters each."
          },
          "areas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "area": {
            "type": [
              "string",
              "null"
            ],
            "description": "The areas joined with commas."
          },
          "summary": {
            "type": "string"
          },
          "badge": {
            "type": [
              "string",
              "null"
            ]
          },
          "days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "difficulty": {
            "description": "The difficulty set on the trip.",
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "groupSize": {
            "description": "min and max."
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Image"
            }
          },
          "seo": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "image": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Image"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "title",
              "description",
              "image"
            ]
          },
          "currency": {
            "type": "string",
            "description": "The trip's main currency."
          },
          "priceFrom": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The lowest price in the main currency. In minor units, so 124000 with EUR is €1,240.00."
          },
          "currencies": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every currency it is sold in, the main one first."
          },
          "pricesFrom": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            },
            "description": "By currency, such as EUR and NOK."
          },
          "rating": {
            "description": "average and count.",
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "bookingMode": {
            "type": "string",
            "enum": [
              "instant",
              "request",
              "closed"
            ]
          },
          "nextDeparture": {
            "type": [
              "string",
              "null"
            ]
          },
          "departures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Departure"
            }
          },
          "cmsEntryId": {
            "type": [
              "string",
              "null"
            ],
            "description": "The CMS Orbit entry for the trip page, when linked."
          },
          "locale": {
            "type": "string"
          },
          "fallback": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Fields not translated yet, which came in the main language, such as description or itinerary.day-3.body."
          },
          "description": {
            "type": "string",
            "description": "HTML."
          },
          "highlights": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "included": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "notIncluded": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "itinerary": {
            "type": "array",
            "items": {
              "description": "A day: its text, hotel (name, location, website, rating), kind and kindLabel, meals, transport legs (mode, modeLabel, from, to, operator, times, duration) and flights."
            }
          },
          "packages": {
            "type": "array",
            "items": {
              "description": "A package with its prices and pricesByCurrency."
            }
          },
          "addOns": {
            "type": "array",
            "items": {
              "description": "An extra with its prices and pricesByCurrency."
            }
          },
          "paymentPlan": {
            "description": "Deposit and instalments."
          },
          "paymentPlanByCurrency": {
            "type": "object",
            "additionalProperties": {}
          },
          "cancellation": {
            "description": "The cancellation terms."
          },
          "questions": {
            "type": "array",
            "items": {},
            "description": "Questions for the booking form."
          },
          "travellerFields": {
            "description": "Which traveller details are required."
          },
          "travellers": {
            "description": "How many travellers a booking may have."
          },
          "guides": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "role": {
                  "type": "string"
                },
                "bio": {
                  "type": "string"
                },
                "photo": {
                  "anyOf": [
                    {},
                    {
                      "type": "null"
                    }
                  ]
                },
                "languages": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "slug": {
                  "type": "string"
                },
                "image": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Image"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "name",
                "role",
                "bio",
                "photo",
                "languages",
                "slug",
                "image"
              ]
            }
          },
          "stays": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "location": {
                  "type": "string"
                },
                "country": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "website": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "rating": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "description": {
                  "type": "string"
                },
                "images": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Image"
                  }
                },
                "nights": {
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "name",
                "location",
                "country",
                "website",
                "rating",
                "description",
                "images",
                "nights"
              ]
            }
          },
          "terms": {
            "type": "string"
          },
          "brochureUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "invitationFor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "draft",
          "category",
          "tags",
          "activities",
          "countries",
          "areas",
          "area",
          "summary",
          "badge",
          "days",
          "difficulty",
          "groupSize",
          "images",
          "seo",
          "currency",
          "priceFrom",
          "currencies",
          "pricesFrom",
          "rating",
          "bookingMode",
          "nextDeparture",
          "departures",
          "cmsEntryId",
          "locale",
          "fallback",
          "description",
          "highlights",
          "included",
          "notIncluded",
          "itinerary",
          "packages",
          "addOns",
          "paymentPlan",
          "paymentPlanByCurrency",
          "cancellation",
          "questions",
          "travellerFields",
          "travellers",
          "guides",
          "stays",
          "terms",
          "brochureUrl",
          "invitationFor"
        ]
      },
      "Guide": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "description": "Made from the name, such as kari-nordmann."
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "bio": {
            "type": "string"
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Image"
              },
              {
                "type": "null"
              }
            ]
          },
          "languages": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "profile": {
            "description": "home, since, quote, story, approach, loves, favourites and pickWhy."
          },
          "tripCount": {
            "type": "integer"
          },
          "seo": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "image": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Image"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "title",
              "description",
              "image"
            ]
          },
          "locale": {
            "type": "string"
          },
          "fallback": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Fields not translated yet, which came in the main language, such as description or itinerary.day-3.body."
          }
        },
        "required": [
          "slug",
          "name",
          "role",
          "bio",
          "image",
          "languages",
          "profile",
          "tripCount",
          "seo",
          "locale",
          "fallback"
        ]
      },
      "GuideDetail": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "description": "Made from the name, such as kari-nordmann."
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "bio": {
            "type": "string"
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Image"
              },
              {
                "type": "null"
              }
            ]
          },
          "languages": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "profile": {
            "description": "home, since, quote, story, approach, loves, favourites and pickWhy."
          },
          "tripCount": {
            "type": "integer"
          },
          "seo": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "image": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Image"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "title",
              "description",
              "image"
            ]
          },
          "locale": {
            "type": "string"
          },
          "fallback": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Fields not translated yet, which came in the main language, such as description or itinerary.day-3.body."
          },
          "trips": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Trip"
            }
          },
          "pick": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Trip"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "slug",
          "name",
          "role",
          "bio",
          "image",
          "languages",
          "profile",
          "tripCount",
          "seo",
          "locale",
          "fallback",
          "trips",
          "pick"
        ]
      },
      "CountrySummary": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Two letters."
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "flag": {
            "type": "string",
            "description": "A round SVG flag."
          },
          "tripCount": {
            "type": "integer"
          },
          "published": {
            "type": "boolean"
          },
          "tagline": {
            "type": [
              "string",
              "null"
            ]
          },
          "cover": {
            "description": "url and alt.",
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "locale": {
            "type": "string"
          },
          "fallback": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Fields not translated yet, which came in the main language, such as description or itinerary.day-3.body."
          }
        },
        "required": [
          "code",
          "slug",
          "name",
          "flag",
          "tripCount",
          "published",
          "tagline",
          "cover",
          "locale",
          "fallback"
        ]
      },
      "ContinentSummary": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Such as europe."
          },
          "name": {
            "type": "string"
          },
          "published": {
            "type": "boolean"
          },
          "tagline": {
            "type": [
              "string",
              "null"
            ]
          },
          "cover": {
            "description": "url and alt.",
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "countries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CountrySummary"
            }
          },
          "locale": {
            "type": "string"
          },
          "fallback": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Fields not translated yet, which came in the main language, such as description or itinerary.day-3.body."
          }
        },
        "required": [
          "key",
          "name",
          "published",
          "tagline",
          "cover",
          "countries",
          "locale",
          "fallback"
        ]
      },
      "Content": {
        "type": "object",
        "properties": {
          "heading": {
            "type": "string"
          },
          "tagline": {
            "type": "string"
          },
          "intro": {
            "type": "string"
          },
          "guide": {
            "type": "string"
          },
          "images": {
            "type": "array",
            "items": {}
          },
          "bestTime": {
            "type": "string"
          },
          "entry": {
            "type": "string"
          },
          "seo": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "description": {
                "type": "string"
              }
            },
            "required": [
              "title",
              "description"
            ]
          }
        },
        "required": [
          "heading",
          "tagline",
          "intro",
          "guide",
          "images",
          "bestTime",
          "entry",
          "seo"
        ]
      },
      "Continent": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Such as europe."
          },
          "name": {
            "type": "string"
          },
          "published": {
            "type": "boolean"
          },
          "tagline": {
            "type": [
              "string",
              "null"
            ]
          },
          "cover": {
            "description": "url and alt.",
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "countries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CountrySummary"
            }
          },
          "locale": {
            "type": "string"
          },
          "fallback": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Fields not translated yet, which came in the main language, such as description or itinerary.day-3.body."
          },
          "content": {
            "description": "Once you publish its introduction.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Content"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "key",
          "name",
          "published",
          "tagline",
          "cover",
          "countries",
          "locale",
          "fallback",
          "content"
        ]
      },
      "Country": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "flag": {
            "type": "string"
          },
          "continent": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "key",
              "name"
            ]
          },
          "facts": {
            "description": "name, officialName, continent, capital, languages, religion, vaccines, drivingSide, callingCode, currency, timeZone, capitalAt, centre and mapId."
          },
          "labels": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Tile headings in the chosen language."
          },
          "content": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Content"
              },
              {
                "type": "null"
              }
            ]
          },
          "trips": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Trip"
            }
          },
          "live": {
            "description": "timeZone, weather (temperature, symbol, description, icon, at, credit, or null) and rate (from, to, rate, date). Show weather.credit wherever you show the weather."
          },
          "locale": {
            "type": "string"
          },
          "fallback": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Fields not translated yet, which came in the main language, such as description or itinerary.day-3.body."
          }
        },
        "required": [
          "code",
          "slug",
          "name",
          "flag",
          "continent",
          "facts",
          "labels",
          "content",
          "trips",
          "live",
          "locale",
          "fallback"
        ]
      },
      "Quote": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string"
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "package",
                    "addOn",
                    "discount"
                  ]
                },
                "refId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "label": {
                  "type": "string"
                },
                "unitAmount": {
                  "type": "integer"
                },
                "quantity": {
                  "type": "integer"
                },
                "amount": {
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "kind",
                "refId",
                "label",
                "unitAmount",
                "quantity",
                "amount"
              ]
            }
          },
          "subtotal": {
            "type": "integer",
            "description": "Before the discount. In minor units, so 124000 with EUR is €1,240.00."
          },
          "discount": {
            "type": "integer",
            "description": "Taken off. In minor units, so 124000 with EUR is €1,240.00."
          },
          "total": {
            "type": "integer",
            "description": "The total. In minor units, so 124000 with EUR is €1,240.00."
          },
          "code": {
            "type": [
              "string",
              "null"
            ],
            "description": "The discount code used."
          },
          "schedule": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "dueDate": {
                  "type": "string"
                },
                "amount": {
                  "type": "integer"
                }
              },
              "required": [
                "label",
                "dueDate",
                "amount"
              ]
            }
          },
          "dueNow": {
            "type": "integer",
            "description": "Paid at checkout. In minor units, so 124000 with EUR is €1,240.00."
          },
          "seatsLeft": {
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "currency",
          "lines",
          "subtotal",
          "discount",
          "total",
          "code",
          "schedule",
          "dueNow",
          "seatsLeft"
        ]
      },
      "QuoteInput": {
        "type": "object",
        "properties": {
          "departureId": {
            "type": "string",
            "pattern": "^[a-f0-9]{24}$"
          },
          "travellers": {
            "minItems": 1,
            "maxItems": 24,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "packageId": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 40,
                      "pattern": "^[A-Za-z0-9_-]+$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          },
          "addOns": {
            "default": [],
            "maxItems": 40,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 40,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 24
                }
              },
              "required": [
                "id",
                "quantity"
              ]
            }
          },
          "discountCode": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 30
              },
              {
                "type": "null"
              }
            ]
          },
          "currency": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "minLength": 3,
                "maxLength": 3
              },
              {
                "type": "null"
              }
            ]
          },
          "locale": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "departureId",
          "travellers"
        ]
      },
      "BookingInput": {
        "type": "object",
        "properties": {
          "departureId": {
            "type": "string",
            "pattern": "^[a-f0-9]{24}$"
          },
          "lead": {
            "type": "object",
            "properties": {
              "firstName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "lastName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "email": {
                "type": "string",
                "format": "email"
              },
              "phone": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 40
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "firstName",
              "lastName",
              "email"
            ]
          },
          "travellers": {
            "minItems": 1,
            "maxItems": 24,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "firstName": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                },
                "lastName": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                },
                "email": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "email"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "phone": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 40
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dateOfBirth": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "nationality": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 60
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "passport": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 40
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "address": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 400
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dietary": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 300
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "emergencyContact": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 300
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "packageId": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 40,
                      "pattern": "^[A-Za-z0-9_-]+$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "answers": {
                  "default": {},
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 4000
                      },
                      {
                        "type": "boolean"
                      }
                    ]
                  }
                }
              },
              "required": [
                "firstName",
                "lastName"
              ]
            }
          },
          "addOns": {
            "default": [],
            "maxItems": 40,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 40,
                  "pattern": "^[A-Za-z0-9_-]+$"
                },
                "quantity": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 24
                }
              },
              "required": [
                "id",
                "quantity"
              ]
            }
          },
          "discountCode": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 30
              },
              {
                "type": "null"
              }
            ]
          },
          "currency": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "minLength": 3,
                "maxLength": 3
              },
              {
                "type": "null"
              }
            ]
          },
          "answers": {
            "default": {},
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 4000
                },
                {
                  "type": "boolean"
                }
              ]
            }
          },
          "message": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 4000
              },
              {
                "type": "null"
              }
            ]
          },
          "locale": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ]
          },
          "acceptTerms": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "departureId",
          "lead",
          "travellers",
          "acceptTerms"
        ]
      },
      "Booking": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "reference": {
            "type": "string",
            "description": "Such as NO-7KQ2MX."
          },
          "status": {
            "type": "string",
            "description": "held, requested, confirmed, expired or cancelled."
          },
          "total": {
            "type": "integer"
          },
          "currency": {
            "type": "string"
          },
          "schedule": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "dueDate": {
                  "type": "string"
                },
                "amount": {
                  "type": "integer"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "due",
                    "paid",
                    "failed",
                    "waived"
                  ]
                }
              },
              "required": [
                "id",
                "label",
                "dueDate",
                "amount",
                "status"
              ]
            }
          },
          "holdExpiresAt": {
            "type": [
              "string",
              "null"
            ],
            "description": "Places are kept until then.",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "reference",
          "status",
          "total",
          "currency",
          "schedule",
          "holdExpiresAt"
        ]
      },
      "Payment": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "description": "payment: confirm with stripe.confirmPayment. setup: nothing is due today; confirm with stripe.confirmSetup to save the card.",
            "enum": [
              "payment",
              "setup"
            ]
          },
          "clientSecret": {
            "type": "string"
          },
          "publishableKey": {
            "type": "string"
          },
          "amount": {
            "type": "integer"
          },
          "currency": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "clientSecret",
          "publishableKey",
          "amount",
          "currency"
        ]
      },
      "PortalBooking": {
        "type": "object",
        "properties": {
          "reference": {
            "type": "string"
          },
          "leadFirstName": {
            "type": "string"
          },
          "tripName": {
            "type": "string"
          },
          "tripSlug": {
            "type": [
              "string",
              "null"
            ]
          },
          "image": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Image"
              },
              {
                "type": "null"
              }
            ]
          },
          "days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "departureDate": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string"
          },
          "travellers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "firstName": {
                  "type": "string"
                },
                "lastName": {
                  "type": "string"
                },
                "phone": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "dateOfBirth": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "nationality": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "passport": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "dietary": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "emergencyContact": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "firstName",
                "lastName",
                "phone",
                "dateOfBirth",
                "nationality",
                "passport",
                "dietary",
                "emergencyContact"
              ]
            }
          },
          "payments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "kind": {
                  "type": "string"
                },
                "method": {
                  "type": "string"
                },
                "amount": {
                  "type": "integer"
                },
                "currency": {
                  "type": "string"
                },
                "at": {
                  "type": "string",
                  "format": "date-time"
                }
              },
              "required": [
                "id",
                "kind",
                "method",
                "amount",
                "currency",
                "at"
              ]
            }
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "quantity": {
                  "type": "integer"
                },
                "amount": {
                  "type": "integer"
                }
              },
              "required": [
                "label",
                "quantity",
                "amount"
              ]
            }
          },
          "currency": {
            "type": "string"
          },
          "total": {
            "type": "integer"
          },
          "paid": {
            "type": "integer"
          },
          "schedule": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "dueDate": {
                  "type": "string"
                },
                "amount": {
                  "type": "integer"
                },
                "status": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "label",
                "dueDate",
                "amount",
                "status"
              ]
            }
          },
          "autoCharge": {
            "type": "boolean"
          },
          "cardSaved": {
            "type": "boolean"
          }
        },
        "required": [
          "reference",
          "leadFirstName",
          "tripName",
          "tripSlug",
          "image",
          "days",
          "departureDate",
          "status",
          "travellers",
          "payments",
          "lines",
          "currency",
          "total",
          "paid",
          "schedule",
          "autoCharge",
          "cardSaved"
        ]
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "An optional API key. trv_sk_ keys read drafts, from a server only."
      },
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "The same key in another header."
      }
    }
  }
}
