Skip to main content

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. Available per language via Get Venue Booking Messages.
bookableAreasBoolOptionalIndicates if the Venue supports selection of specific areas.
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.
paymentPolicyStringOptionalText describing the Venue’s cancellation or payment policy. Available per language via Get Venue Booking Messages as bookingPolicies.
confirmationMessageStringOptionalMessage displayed after booking confirmation. Available per language via Get Venue Booking Messages.

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,
"url": "https://venuewebsite.com",
"minAdvanceBooking": 1,
"minAdvanceOnlineCancelling": 24,
"currency": "GBP",
"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,
"url": "https://venuewebsite.com",
"minAdvanceBooking": 1,
"minAdvanceOnlineCancelling": 24,
"currency": "GBP",
"paymentPolicy": "Dinner Cancellation Policy...",
"confirmationMessage": "Thank you for choosing Scampi!..."
}

Get Venue Booking Messages​

This endpoint retrieves the bookingMessage, confirmationMessage and bookingPolicies (the localized paymentPolicy) of a Venue in a given language, so you can display them to the guest in their own language.

The response always contains the three fields, resolved independently per field. If a field has no localized value for the requested language, a fallback is returned — depending on the Venue's RMS integration, either the Venue's default message (paymentPolicy for bookingPolicies) or the English (en) version. A field with no available value at all is returned as null.

Endpoint​

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

URL Parameters​

ParameterStatusDescription
idMandatoryID of the Venue, matching the idType query parameter.

Query Parameters​

ParameterStatusDescription
localeOptionalLanguage of the messages (ISO 639-1 format, e.g. en, es, fr). Defaults to en when omitted.
idTypeOptionalType of the ID provided in the URL: mz (Mozrest Venue ID), rp (your own ID for the Venue) or rms (Venue ID in the RMS system). Defaults to mz when omitted; any other value is also treated as mz.

Error Responses​

StatusMessage / CodeWhen
400 Bad RequestVenueReservationPortal disabled.The Venue is not enabled for your Booking Channel.
400 Bad RequestERROR_MESSAGE_RMS_NOT_FOUNDThe Venue's RMS integration does not support localized booking messages. The default messages remain available on the Venue object.
404 Not FoundERROR_MESSAGE_VENUE_NOT_FOUNDNo Venue found for the given ID and idType.

Example Request​

curl GET "https://api-sandbox.mozrest.com/v1/bc/venues/{venue_id}/booking-messages?locale=es" \
-H "Authorization: Bearer {{api_key}}"

Example Response​

{
"bookingMessage": "Para confirmar tu reserva se requiere una tarjeta de crédito como garantía. No se realizará ningún cargo inmediato.",
"confirmationMessage": "Gracias por reservar. Recibirás una confirmación de tu reserva por correo electrónico en breve.",
"bookingPolicies": "Las cancelaciones con menos de 24 horas de antelación tendrán un cargo de 25 € por persona en la tarjeta facilitada."
}