Skip to content
Last updated

Venues

A Venue is a business location that offers online booking services through Mozrest.

Object definition

KeyTypeStatusDescription
idStringMandatoryUnique identifier for the Venue.
nameStringMandatoryName of the Venue.
cityStringMandatoryCity where the Venue is located.
addressStringMandatoryFull address of the Venue.
countryCodeStringMandatoryCountry code in ISO 3166-1 alpha-2 format.
postalCodeStringOptionalPostal code of the Venue.
phoneNumberStringOptionalContact phone number of the Venue.
latitudeFloatOptionalGeolocation latitude.
longitudeFloatOptionalGeolocation longitude.
timezoneStringMandatoryTimezone of the Venue in IANA format (e.g. Europe/London).
minCoversIntOptionalMinimum number of covers allowed per booking.
maxCoversIntOptionalMaximum number of covers allowed per booking.
bookingMessageStringOptionalCustom message shown to users before booking.
bookableAreasBoolOptionalIndicates if the Venue supports selection of specific areas.
rms[id]StringOptionalID of the Reservation Management System associated with the Venue.
rms[name]StringOptionalName of the Reservation Management System.
urlStringOptionalVenue website URL.
minAdvanceBookingIntOptionalMinimum number of hours in advance a booking must be made.
minAdvanceOnlineCancellingIntOptionalMinimum number of hours in advance a booking can be canceled online.
currencyStringMandatoryISO 4217 currency code.
paymentDefinitionObjectOptionalDefinition of deposit and no-show fee requirements.
paymentGatewayObjectOptionalPayment gateway configuration details.
paymentPolicyStringOptionalText describing the Venue’s cancellation or payment policy.
confirmationMessageStringOptionalMessage displayed after booking confirmation.

Get Available Venues

This endpoint retrieves a list of available Venues.

Endpoint

GET https://api-sandbox.mozrest.com/v1/bc/venues

Query Parameters

ParameterStatusDescription
filters[criteria]OptionalFilter by Venue name (LIKE %criteria%).
filters[city]OptionalFilter by Venue city (LIKE %city%).
filters[countryCode]OptionalFilter by country code (ISO2).

Example Request

curl GET "https://api-sandbox.mozrest.com/v1/bc/venues" \
  -H "Authorization: Bearer {{api_key}}" \
  -d "offset=0" \
  -d "limit=10" \
  -d "filters[criteria]=par" \
  -d "filters[city]=Par" \
  -d "filters[countryCode]=FR"

Example Response

{
  "total": 1,
  "data": [
    {
      "id": "60e5a3ed409541da3650bd90",
      "name": "Restaurant Name",
      "city": "London",
      "address": "The Address 24, Picadilly",
      "countryCode": "GB",
      "postalCode": "W1J 9LL",
      "phoneNumber": "442072343456",
      "latitude": null,
      "longitude": null,
      "timezone": "Europe/London",
      "minCovers": 1,
      "maxCovers": 15,
      "bookingMessage": "Enjoy unique moments of relaxation...",
      "bookableAreas": true,
      "rms": {
        "id": "60e5a3ed409541da3650bd90",
        "name": "Reservation Software name"
      },
      "url": "https://venuewebsite.com",
      "minAdvanceBooking": 1,
      "minAdvanceOnlineCancelling": 24,
      "currency": "GBP",
      "paymentDefinition": {
        "requireCreditCard": true,
        "deposit": {
          "type": "fixed_price",
          "amount": 2000
        },
        "noShowFee": {
          "type": "fixed_price",
          "amount": 2000
        }
      },
      "paymentGateway": {
        "gateway": "stripe",
        "publishKey": "pk_test_2343823823823",
        "merchantId": null
      },
      "paymentPolicy": "Dinner Cancellation Policy...",
      "confirmationMessage": "Thank you for choosing Scampi!..."
    }
  ]
}

Get a Specific Venue

This endpoint retrieves a specific Venue.

Endpoint

GET https://api-sandbox.mozrest.com/v1/bc/venues/{id}

URL Parameters

ParameterStatusDescription
idMandatoryID of the Venue.

Example Request

curl GET "https://api-sandbox.mozrest.com/v1/bc/venues/{venue_id}" \
  -H "Authorization: Bearer {{api_key}}"

Example Response

{
  "id": "60e5a3ed409541da3650bd90",
  "name": "Restaurant Name",
  "city": "London",
  "address": "The Address 24, Picadilly",
  "countryCode": "GB",
  "postalCode": "W1J 9LL",
  "phoneNumber": "442072343456",
  "latitude": null,
  "longitude": null,
  "timezone": "Europe/London",
  "minCovers": 1,
  "maxCovers": 15,
  "bookingMessage": "Enjoy unique moments of relaxation...",
  "bookableAreas": true,
  "rms": {
    "id": "60e5a3ed409541da3650bd90",
    "name": "Reservation Software name"
  },
  "url": "https://venuewebsite.com",
  "minAdvanceBooking": 1,
  "minAdvanceOnlineCancelling": 24,
  "currency": "GBP",
  "paymentDefinition": {
    "requireCreditCard": true,
    "deposit": {
      "type": "fixed_price",
      "amount": 2000
    },
    "noShowFee": {
      "type": "fixed_price",
      "amount": 2000
    }
  },
  "paymentGateway": {
    "gateway": "stripe",
    "publishKey": "pk_test_2343823823823",
    "merchantId": null
  },
  "paymentPolicy": "Dinner Cancellation Policy...",
  "confirmationMessage": "Thank you for choosing Scampi!..."
}