Skip to main content

Venues

A Venue represents a business location that provides online booking services.

Object definition​

KeyTypeStatusDescription
idStringMandatoryUnique identifier for the Venue.
nameStringMandatoryName of the Venue.
externalIdStringMandatoryIdentifier for the Venue in the Partner system.
company[id]StringOptionalCompany ID associated with the Venue. If left blank, a new company is created.
company[name]StringOptionalName of the Company associated with the Venue. If left blank, a new company is created.
brand[id]StringOptionalID of the Brand associated with the Venue.
brand[name]StringOptionalName of the Brand associated with the Venue.
countryStringMandatoryCountry code where the Venue is located (ISO2 format).
addressStringMandatoryFull address of the Venue.
cityStringMandatoryCity where the Venue is located.
postalCodeStringMandatoryPostal code where the Venue is located.
phoneNumberStringOptionalContact phone number for the Venue.
emailStringOptionalContact email for the Venue.
emailsArrayOptionalList of email addresses associated with the Venue.
urlStringOptionalWebsite URL for the Venue.
latitudeStringOptionalLatitude coordinate for the Venue’s location.
longitudeStringOptionalLongitude coordinate for the Venue’s location.
minAdvanceBookingIntOptionalMinimum hours in advance required for a booking.
minAdvanceOnlineCancellingIntOptionalMinimum hours in advance required to cancel a booking.
minCoversIntOptionalMinimum number of covers (seats) allowed per booking.
maxCoversIntOptionalMaximum number of covers (seats) allowed per booking.
currencyStringMandatoryCurrency code used for payments (ISO 4217 format).
paymentGateway[gateway]StringOptionalPayment gateway used ["stripe", "braintree", "adyen"].
paymentGateway[publishKey]StringOptionalPublishable key for the payment gateway.
paymentGateway[merchantId]StringOptionalMerchant ID for the payment gateway.
timezoneStringMandatoryTime zone for the Venue’s location (see possible time zone values).
fbInstalledBooleanOptionalIndicates if the Facebook Meta Business Extension is installed (false for not installed, true for installed).
igInstalledBooleanOptionalIndicates if the Instagram Meta Business Extension is installed (false for not installed, true for installed).
fbInstallLinkStringOptionalURL to install the Meta Business Extension for Facebook and Instagram.
bookableAreasBooleanOptionalSpecifies if the Venue requires selection of an area [true, false].
bookingMessageStringOptionalCustom message shown to users before placing a reservation. Can be localized per language via Booking Messages.
paymentPolicyStringOptionalPolicy information regarding payments or deposits if a credit card is required. Can be localized per language via Booking Messages as bookingPolicies.
confirmationMessageStringOptionalCustom confirmation message to display after a reservation is completed. Can be localized per language via Booking Messages.
metadataObjectOptionalFree-form JSON object stored against the Venue, used to carry partner-specific data. Returned as-is in all Venue responses.

Get Available Venues​

This endpoint retrieves a list of available Venues.

Endpoint​

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

Query Parameters​

ParameterStatusDescription
filters[criteria]OptionalFilter by Venue name, using Like %criteria% format.
filters[city]OptionalFilter by Venue city, using Like %city% format.
filters[brand]OptionalFilter by Brand ID associated with the Venue.
filters[countryCode]OptionalFilter by Country code (ISO2 format).
filters[bookingChannel]OptionalFilter by Booking Channel ID.
filters[notBookingChannel]OptionalExclude results with this Booking Channel ID.
filters[fbInstalled]OptionalFilter Venues with Facebook installed (0 for not installed, 1 for installed).
filters[igInstalled]OptionalFilter Venues with Instagram installed (0 for not installed, 1 for installed).

Example Request:​

curl GET "https://api-sandbox.mozrest.com/v1/rms/venues"   
-H "Authorization: Bearer {{api_key}}"
-d "offset=0" -d "limit=10"
-d "filters[criteria]=par"
-d "filters[city]=Par"
-d "filters[countryCode]=FR"
-d "filters[bookingChannel]=60e5a3cab8e5c33agh870101"
-d "filters[notBookingChannel]=60e5a3cab8e5c33agh870101"
-d "filters[fbInstalled]=1"
-d "filters[igInstalled]=1"

Example Response:​

{
"total": 4,
"data": [
{
"id": "60e5a3ed409541da3650bd90",
"externalId": "123456789",
"company": {
"id": "60e5a3ed409541da3650bd90",
"name": "Company Name"
},
"brand": {
"id": "60e5a3ed409541da3650bd90",
"name": "Brand Name"
},
"name": "Restaurant Name",
"countryCode": "GB",
"address": "The Address 24, Picadilly",
"city": "London",
"postalCode": "W1J 9LL",
"phoneNumber": "442072343456",
"latitude": null,
"longitude": null,
"capacity": 20,
"url": null,
"minAdvanceBooking": 1,
"minAdvanceOnlineCancelling": 24,
"minCovers": 1,
"maxCovers": 12,
"currency": "GBP",
"paymentGateway": {
"gateway": "stripe",
"publishKey": "pk_test_2343823823823",
"merchantId": null
},
"fbInstalled": false,
"igInstalled": false,
"fbInstallLink": "https://facebook.com/dialog/oauth?client_id=1181690592254979&display=page&redirect_uri=https%3A%2F%2Fapp.mozrest.com%2Fauth%2Ffacebook%2Fcallback&response_type=token&scope=manage_business_extension&extras=%7B%22setup%22%3A%7B%22external_business_id%22%3A%22621e5ba1a5f7c4fbb87ecd9b%22%2C%22timezone%22%3A%22America%5C%2FNew_York%22%2C%22currency%22%3A%22USD%22%2C%22business_vertical%22%3A%22RESERVATIONS%22%7D%2C%22business_config%22%3A%7B%22business%22%3A%7B%22name%22%3A%22Docs+NY%22%7D%2C%22page_cta%22%3A%7B%22enabled%22%3Atrue%2C%22cta_button_text%22%3A%22Reserve%22%2C%22cta_button_url%22%3A%22https%3A%5C%2F%5C%2Fwidget-pre.mozrest.com%3Fkey%3D61a45e24757d22026a87f369%26mzId%3D621e5ba1a5f7c4fbb87ecd9b%26display%3Dvenue%22%2C%22below_button_text%22%3A%22In+partnership+with+Mozrest%22%7D%2C%22ig_cta%22%3A%7B%22enabled%22%3Atrue%2C%22cta_button_text%22%3A%22Reserve%22%2C%22cta_button_url%22%3A%22https%3A%5C%2F%5C%2Fwidget-pre.mozrest.com%3Fkey%3D61afa0d0b5fb12d27dfa47c4%26mzId%3D621e5ba1a5f7c4fbb87ecd9b%26display%3Dvenue%22%7D%7D%2C%22repeat%22%3Afalse%7D",
"bookableAreas": "true",
"bookingMessage": "It is obligatory to wear a mask when you are not seating at the table.",
"paymentPolicy": "Dinner Cancellation Policy: We ask that any cancellation to your reservation be made no less than 24 hours prior. For no shows, you will be subject to fee of $25 per person that will be applied to the credit card on file.",
"confirmationMessage": "Thank you for choosing Scampi! We look forward to you dining with us.<b>Please note, there is a 15 minutes grace period for late arrivals and we only seat complete parties.<b> If your party completes later than 15 minutes after your reservation time, you are subject to waiting for the next available table.<br>If we can do anything to better accommodate your dining experience, please email eat@scampinyc.com or call us at 212.888.2171 between 12pm - 5pm, Monday - Friday. <br>",
"metadata": {
"region": "eu-west-1"
}
}
]
}

Get a Specific Venue​

This endpoint retrieves details of a specific Venue by its ID.

Endpoint​

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

Query Parameters​

ParameterStatusDescription
idMandatoryVenue ID to retrieve. Accepts either the Mozrest ID or the Partner's ID.

Example Request:​

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

Example Response:​

{
"id": "60e5a3ed409541da3650bd90",
"externalId": "123456789",
"company": {
"id": "60e5a3ed409541da3650bd90",
"name": "Company Name"
},
"brand": {
"id": "60e5a3ed409541da3650bd90",
"name": "Brand Name"
},
"name": "Restaurant Name",
"countryCode": "GB",
"address": "The Address 24, Picadilly",
"city": "London",
"postalCode": "W1J 9LL",
"phoneNumber": "442072343456",
"latitude": null,
"longitude": null,
"capacity": 20,
"url": null,
"minAdvanceBooking": 1,
"minAdvanceOnlineCancelling": 24,
"minCovers": 1,
"maxCovers": 12,
"currency": "GBP",
"paymentGateway": {
"gateway": "stripe",
"publishKey": "pk_test_2343823823823",
"merchantId": null
},
"fbInstalled": false,
"igInstalled": false,
"fbInstallLink": "https://facebook.com/dialog/oauth?client_id=1181690592254979&display=page&redirect_uri=https%3A%2F%2Fapp.mozrest.com%2Fauth%2Ffacebook%2Fcallback&response_type=token&scope=manage_business_extension&extras=%7B%22setup%22%3A%7B%22external_business_id%22%3A%22621e5ba1a5f7c4fbb87ecd9b%22%2C%22timezone%22%3A%22America%5C%2FNew_York%22%2C%22currency%22%3A%22USD%22%2C%22business_vertical%22%3A%22RESERVATIONS%22%7D%2C%22business_config%22%3A%7B%22business%22%3A%7B%22name%22%3A%22Docs+NY%22%7D%2C%22page_cta%22%3A%7B%22enabled%22%3Atrue%2C%22cta_button_text%22%3A%22Reserve%22%2C%22cta_button_url%22%3A%22https%3A%5C%2F%5C%2Fwidget-pre.mozrest.com%3Fkey%3D61a45e24757d22026a87f369%26mzId%3D621e5ba1a5f7c4fbb87ecd9b%26display%3Dvenue%22%2C%22below_button_text%22%3A%22In+partnership+with+Mozrest%22%7D%2C%22ig_cta%22%3A%7B%22enabled%22%3Atrue%2C%22cta_button_text%22%3A%22Reserve%22%2C%22cta_button_url%22%3A%22https%3A%5C%2F%5C%2Fwidget-pre.mozrest.com%3Fkey%3D61afa0d0b5fb12d27dfa47c4%26mzId%3D621e5ba1a5f7c4fbb87ecd9b%26display%3Dvenue%22%7D%7D%2C%22repeat%22%3Afalse%7D",
"bookableAreas": "true",
"bookingMessage": "It is obligatory to wear a mask when you are not seating at the table.",
"paymentPolicy": "Dinner Cancellation Policy: We ask that any cancellation to your reservation be made no less than 24 hours prior. For no shows, you will be subject to fee of $25 per person that will be applied to the credit card on file.",
"confirmationMessage": "Thank you for choosing Scampi! We look forward to you dining with us.<b>Please note, there is a 15 minutes grace period for late arrivals and we only seat complete parties.<b> If your party completes later than 15 minutes after your reservation time, you are subject to waiting for the next available table.<br>If we can do anything to better accommodate your dining experience, please email eat@scampinyc.com or call us at 212.888.2171 between 12pm - 5pm, Monday - Friday. <br>",
"metadata": {
"region": "eu-west-1"
}
}

Get Venue Credentials​

This endpoint retrieves the login credentials for a specific Venue to be used during Meta Onboarding.

Endpoint​

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

Query Parameters​

ParameterStatusDescription
idMandatoryVenue ID for which to retrieve credentials. Accepts either the Mozrest ID or the Partner's ID.

Example Request:​

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

Example Response:​

{
"email": "venue@email.com",
"password": "k9iIB6zPoG6F"
}

Create Venue​

This endpoint allows for the creation of a new Venue.

Endpoint​

POST https://api-sandbox.mozrest.com/v1/rms/venues

Body Parameters​

ParameterStatusDescription
nameMandatoryVenue name.
externalIdMandatoryVenue ID in the Partner system.
companyOptionalCompany ID to which the venue belongs. If blank, a new company will automatically be generated.
brandOptionalBrand ID associated with the venue.
countryMandatoryCountry code where the venue is located (ISO2 format).
addressMandatoryAddress where the venue is located.
cityMandatoryCity where the venue is located.
postalCodeMandatoryPostal code where the venue is located.
phoneNumberOptionalVenue's phone number.
emailOptionalVenue's email address.
urlOptionalVenue's website URL.
latitudeOptionalVenue's latitude coordinates.
longitudeOptionalVenue's longitude coordinates.
timezoneMandatoryTime zone of the venue (see possible time zone values).
minAdvanceBookingOptionalMinimum hours in advance a booking has to be placed.
minAdvanceOnlineCancellingOptionalMinimum hours in advance a booking can be canceled.
minCoversOptionalMinimum covers allowed per reservation.
maxCoversOptionalMaximum covers allowed per reservation.
currencyMandatoryCurrency code used for payments (ISO 4217 format).
paymentGateway[gateway]OptionalPayment gateway used [stripe, braintree, adyen].
paymentGateway[publishKey]OptionalPublishable key for the payment gateway.
paymentGateway[merchantId]OptionalMerchant ID for the payment gateway.
bookableAreasOptionalSpecifies if the venue requires choosing an area for booking [true, false].
bookingMessageOptionalMessage displayed to the user before placing a reservation.
paymentPolicyOptionalMessage regarding payments or deposits if a credit card is required.
confirmationMessageOptionalMessage displayed to the user after placing a reservation.
metadataOptionalFree-form JSON object to store partner-specific data against the Venue. Returned as-is in Venue responses.

Example Request:​

curl POST "https://api-sandbox.mozrest.com/v1/rms/venues" \
-H "Authorization: Bearer {{api_key}}" \
--data-raw '{
"name": "Venue Name",
"externalId": "123456789",
"company": "60e5a3ed409541da3650bd90",
"brand": "60e5a3ed409541da3650bd90",
"country": "GB",
"address": "The Address 24, Picadilly",
"city": "London",
"postalCode": "W1J 9LL",
"phoneNumber": "442072343456",
"email": "email@example.com",
"url": "http://your-url.com",
"latitude": "51.56797",
"longitude": "-0.28122",
"timezone": "Europe/London",
"capacity": 100,
"minAdvanceBooking": 1,
"minAdvanceOnlineCancelling": 24,
"paymentGateway": {
"gateway": "stripe",
"publishKey": "pk_test_2343823823823",
"merchantId": "123456"
},
"currency": "GBP",
"bookableAreas": "true",
"bookingMessage": "It is obligatory to wear a mask when you are not seating at the table.",
"paymentPolicy": "Dinner Cancellation Policy: We ask that any cancellation to your reservation be made no less than 24 hours prior. For no shows, you will be subject to fee of $25 per person that will be applied to the credit card on file.",
"confirmationMessage": "Thank you for choosing Scampi! We look forward to you dining with us.<b>Please note, there is a 15 minutes grace period for late arrivals and we only seat complete parties.<b> If your party completes later than 15 minutes after your reservation time, you are subject to waiting for the next available table.<br>If we can do anything to better accommodate your dining experience, please email eat@scampinyc.com or call us at 212.888.2171 between 12pm - 5pm, Monday - Friday. <br>",
"metadata": {
"region": "eu-west-1"
}
}'

Example Response:​

{
"id": "60e5a3ed409541da3650bd90",
"externalId": "123456789",
"company": {
"id": "60e5a3ed409541da3650bd90",
"name": "Company Name"
},
"brand": {
"id": "60e5a3ed409541da3650bd90",
"name": "Brand Name"
},
"name": "Restaurant Name",
"countryCode": "GB",
"address": "The Address 24, Picadilly",
"city": "London",
"postalCode": "W1J 9LL",
"phoneNumber": "442072343456",
"latitude": null,
"longitude": null,
"capacity": 20,
"url": null,
"minAdvanceBooking": 1,
"minAdvanceOnlineCancelling": 24,
"minCovers": 1,
"maxCovers": 12,
"currency": "GBP",
"paymentGateway": {
"gateway": "stripe",
"publishKey": "pk_test_2343823823823",
"merchantId": null
},
"fbInstalled": false,
"igInstalled": false,
"fbInstallLink": "https://facebook.com/dialog/oauth?client_id=1181690592254979&display=page&redirect_uri=https%3A%2F%2Fapp.mozrest.com%2Fauth%2Ffacebook%2Fcallback&response_type=token&scope=manage_business_extension&extras=%7B%22setup%22%3A%7B%22external_business_id%22%3A%22621e5ba1a5f7c4fbb87ecd9b%22%2C%22timezone%22%3A%22America%5C%2FNew_York%22%2C%22currency%22%3A%22USD%22%2C%22business_vertical%22%3A%22RESERVATIONS%22%7D%2C%22business_config%22%3A%7B%22business%22%3A%7B%22name%22%3A%22Docs+NY%22%7D%2C%22page_cta%22%3A%7B%22enabled%22%3Atrue%2C%22cta_button_text%22%3A%22Reserve%22%2C%22cta_button_url%22%3A%22https%3A%5C%2F%5C%2Fwidget-pre.mozrest.com%3Fkey%3D61a45e24757d22026a87f369%26mzId%3D621e5ba1a5f7c4fbb87ecd9b%26display%3Dvenue%22%2C%22below_button_text%22%3A%22In+partnership+with+Mozrest%22%7D%2C%22ig_cta%22%3A%7B%22enabled%22%3Atrue%2C%22cta_button_text%22%3A%22Reserve%22%2C%22cta_button_url%22%3A%22https%3A%5C%2F%5C%2Fwidget-pre.mozrest.com%3Fkey%3D61afa0d0b5fb12d27dfa47c4%26mzId%3D621e5ba1a5f7c4fbb87ecd9b%26display%3Dvenue%22%7D%7D%2C%22repeat%22%3Afalse%7D",
"bookableAreas": "true",
"bookingMessage": "It is obligatory to wear a mask when you are not seating at the table.",
"paymentPolicy": "Dinner Cancellation Policy: We ask that any cancellation to your reservation be made no less than 24 hours prior. For no shows, you will be subject to fee of $25 per person that will be applied to the credit card on file.",
"confirmationMessage": "Thank you for choosing Scampi! We look forward to you dining with us.<b>Please note, there is a 15 minutes grace period for late arrivals and we only seat complete parties.<b> If your party completes later than 15 minutes after your reservation time, you are subject to waiting for the next available table.<br>If we can do anything to better accommodate your dining experience, please email eat@scampinyc.com or call us at 212.888.2171 between 12pm - 5pm, Monday - Friday. <br>",
"metadata": {
"region": "eu-west-1"
}
}

Update Venue​

This endpoint allows for updating details of an existing Venue.

Endpoint Request​

PUT https://api-sandbox.mozrest.com/v1/rms/venues/{venueId}

Query Parameters​

ParameterStatusDescription
venueIdMandatoryID of the Venue to update. Accepts either the Mozrest ID or the Partner's ID.

Body Parameters​

ParameterStatusDescription
nameOptionalVenue name.
codeOptionalVenue ID in the Partner system (Deprecated; use externalId).
countryOptionalCountry code (ISO2 format) where the venue is located.
addressOptionalVenue address.
cityOptionalCity where the venue is located.
postalCodeOptionalPostal code where the venue is located.
phoneNumberOptionalVenue's phone number.
emailOptionalVenue's email.
emailsOptionalList of emails associated with the venue.
urlOptionalVenue's website URL.
latitudeOptionalVenue's latitude coordinates.
longitudeOptionalVenue's longitude coordinates.
minAdvanceBookingOptionalMinimum hours in advance a booking has to be placed.
minAdvanceOnlineCancellingOptionalMinimum hours in advance a booking can be canceled.
minCoversOptionalMinimum covers allowed per reservation.
maxCoversOptionalMaximum covers allowed per reservation.
currencyOptionalCurrency code (ISO 4217 format) for payments.
paymentGateway[gateway]OptionalPayment gateway [stripe, braintree, adyen].
paymentGateway[publishKey]OptionalPublishable key for the payment gateway.
paymentGateway[merchantId]OptionalMerchant ID for the payment gateway.
timezoneOptionalVenue's time zone (see possible time zone values).
bookableAreasOptionalSpecifies if the venue requires an area selection for booking [true, false].
bookingMessageOptionalMessage to be displayed before placing a reservation.
paymentPolicyOptionalMessage related to payments/deposits if a credit card is required.
confirmationMessageOptionalMessage displayed to the user after placing a reservation.
metadataOptionalFree-form JSON object to store partner-specific data against the Venue. Returned as-is in Venue responses.

Example Request:​

curl PUT "https://api-sandbox.mozrest.com/v1/rms/venues/{venueId}" \
-H "Authorization: Bearer {{api_key}}" \
--data-raw '{
"id": "60e5a3ed409541da3650bd90",
"name": "Restaurant Name",
"countryCode": "GB",
"address": "The Address 24, Picadilly",
"city": "London",
"postalCode": "W1J 9LL",
"phoneNumber": "442072343456",
"latitude": null,
"longitude": null,
"capacity": 20,
"url": null,
"minAdvanceBooking": 1,
"minAdvanceOnlineCancelling": 24,
"minCovers": 1,
"maxCovers": 12,
"currency": "GBP",
"paymentGateway": {
"gateway": "stripe",
"publishKey": "pk_test_2343823823823",
"merchantId": null
},
"bookableAreas": "true",
"bookingMessage": "It is obligatory to wear a mask when you are not seating at the table.",
"paymentPolicy": "Dinner Cancellation Policy: We ask that any cancellation to your reservation be made no less than 24 hours prior. For no shows, you will be subject to fee of $25 per person that will be applied to the credit card on file.",
"confirmationMessage": "Thank you for choosing Scampi! We look forward to you dining with us.<b>Please note, there is a 15 minutes grace period for late arrivals and we only seat complete parties.<b> If your party completes later than 15 minutes after your reservation time, you are subject to waiting for the next available table.<br>If we can do anything to better accommodate your dining experience, please email eat@scampinyc.com or call us at 212.888.2171 between 12pm - 5pm, Monday - Friday. <br>",
"metadata": {
"region": "eu-west-1"
}
}'

Example Response:​

{
"id": "60e5a3ed409541da3650bd90",
"externalId": "123456789",
"company": {
"id": "60e5a3ed409541da3650bd90",
"name": "Company Name"
},
"brand": {
"id": "60e5a3ed409541da3650bd90",
"name": "Brand Name"
},
"name": "Restaurant Name",
"countryCode": "GB",
"address": "The Address 24, Picadilly",
"city": "London",
"postalCode": "W1J 9LL",
"phoneNumber": "442072343456",
"latitude": null,
"longitude": null,
"capacity": 20,
"url": null,
"minAdvanceBooking": 1,
"minAdvanceOnlineCancelling": 24,
"minCovers": 1,
"maxCovers": 12,
"currency": "GBP",
"paymentGateway": {
"gateway": "stripe",
"publishKey": "pk_test_2343823823823",
"merchantId": null
},
"fbInstalled": false,
"igInstalled": false,
"fbInstallLink": "https://facebook.com/dialog/oauth?client_id=1181690592254979&display=page&redirect_uri=https%3A%2F%2Fapp.mozrest.com%2Fauth%2Ffacebook%2Fcallback&response_type=token&scope=manage_business_extension&extras=%7B%22setup%22%3A%7B%22external_business_id%22%3A%22621e5ba1a5f7c4fbb87ecd9b%22%2C%22timezone%22%3A%22America%5C%2FNew_York%22%2C%22currency%22%3A%22USD%22%2C%22business_vertical%22%3A%22RESERVATIONS%22%7D%2C%22business_config%22%3A%7B%22business%22%3A%7B%22name%22%3A%22Docs+NY%22%7D%2C%22page_cta%22%3A%7B%22enabled%22%3Atrue%2C%22cta_button_text%22%3A%22Reserve%22%2C%22cta_button_url%22%3A%22https%3A%5C%2F%5C%2Fwidget-pre.mozrest.com%3Fkey%3D61a45e24757d22026a87f369%26mzId%3D621e5ba1a5f7c4fbb87ecd9b%26display%3Dvenue%22%2C%22below_button_text%22%3A%22In+partnership+with+Mozrest%22%7D%2C%22ig_cta%22%3A%7B%22enabled%22%3Atrue%2C%22cta_button_text%22%3A%22Reserve%22%2C%22cta_button_url%22%3A%22https%3A%5C%2F%5C%2Fwidget-pre.mozrest.com%3Fkey%3D61afa0d0b5fb12d27dfa47c4%26mzId%3D621e5ba1a5f7c4fbb87ecd9b%26display%3Dvenue%22%7D%7D%2C%22repeat%22%3Afalse%7D",
"bookableAreas": "true",
"bookingMessage": "It is obligatory to wear a mask when you are not seating at the table.",
"paymentPolicy": "Dinner Cancellation Policy: We ask that any cancellation to your reservation be made no less than 24 hours prior. For no shows, you will be subject to fee of $25 per person that will be applied to the credit card on file.",
"confirmationMessage": "Thank you for choosing Scampi! We look forward to you dining with us.<b>Please note, there is a 15 minutes grace period for late arrivals and we only seat complete parties.<b> If your party completes later than 15 minutes after your reservation time, you are subject to waiting for the next available table.<br>If we can do anything to better accommodate your dining experience, please email eat@scampinyc.com or call us at 212.888.2171 between 12pm - 5pm, Monday - Friday. <br>",
"metadata": {
"region": "eu-west-1"
}
}

Create Venue Booking Messages​

The bookingMessage, confirmationMessage and paymentPolicy fields managed through Create Venue and Update Venue hold a single default text. This endpoint lets you store localized versions of those messages per language, so Booking Channels can display them in the guest's language. The localized paymentPolicy is sent and returned as bookingPolicies. When a Booking Channel requests a language, each message is resolved independently: the localized value for that language is returned if it exists; otherwise the Venue's default message is returned (paymentPolicy for bookingPolicies); if neither exists, the field is null.

Booking messages are created once per Venue and language. To modify them afterwards, use Update Venue Booking Messages.

Endpoint​

POST https://api-sandbox.mozrest.com/v1/rms/venues/{venueId}/booking-messages

Query Parameters​

ParameterStatusDescription
venueIdMandatoryID of the Venue. Accepts either the Mozrest ID or the Partner's ID.

Body Parameters​

ParameterStatusDescription
localeMandatoryLanguage of the messages (ISO 639-1 format, e.g. en, es, fr). The value is stored as sent and is not validated against a list of languages; Booking Channels must request the exact same value to retrieve the messages (they request en when no language is specified).
bookingMessageOptionalLocalized message displayed to the user before placing a reservation.
confirmationMessageOptionalLocalized message displayed to the user after placing a reservation.
bookingPoliciesOptionalLocalized version of the Venue's paymentPolicy: payment, deposit or cancellation policy displayed to the user when a credit card is required.

At least one of bookingMessage, confirmationMessage or bookingPolicies must be provided with a non-empty value; an empty string is treated as if the field were omitted. Only the fields provided are stored.

On success the endpoint responds 200 OK with the three messages resolved for the given language (localized value, or the Venue's default message when no localized value exists for a field, or null when neither exists).

Error Responses​

StatusCodeWhen
400 Bad RequestERROR_MESSAGE_VALIDATION_FAILEDlocale is missing or empty, or none of bookingMessage, confirmationMessage or bookingPolicies has a non-empty value.
400 Bad RequestERROR_MESSAGE_RMS_NOT_FOUNDThe Venue is not linked to an RMS integration that supports localized booking messages.
404 Not FoundERROR_MESSAGE_VENUE_NOT_FOUNDNo Venue found for the given ID.
409 ConflictERROR_MESSAGE_VENUE_BOOKING_MESSAGES_ALREADY_EXISTA localized bookingMessage already exists for this Venue and language. Use Update Venue Booking Messages instead.

Example Request:​

curl POST "https://api-sandbox.mozrest.com/v1/rms/venues/{venueId}/booking-messages" \
-H "Authorization: Bearer {{api_key}}" \
-H "Content-Type: application/json" \
--data-raw '{
"locale": "es",
"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."
}'

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."
}

Update Venue Booking Messages​

This endpoint updates the localized booking messages of a Venue for a given language. Only the fields provided with a non-empty value are updated; omitted fields (and fields sent as an empty string) keep their current value. A field that was not previously localized for that language is created. It is therefore not possible to clear a stored message through this endpoint.

A localized bookingMessage must already exist for the Venue and language — see Create Venue Booking Messages; otherwise the request fails with a 404 Not Found (ERROR_MESSAGE_VENUE_BOOKING_MESSAGES_NOT_FOUND).

Endpoint​

PUT https://api-sandbox.mozrest.com/v1/rms/venues/{venueId}/booking-messages

Query Parameters​

ParameterStatusDescription
venueIdMandatoryID of the Venue. Accepts either the Mozrest ID or the Partner's ID.

Body Parameters​

ParameterStatusDescription
localeMandatoryLanguage of the messages (ISO 639-1 format, e.g. en, es, fr). Must match the value used when the messages were created.
bookingMessageOptionalLocalized message displayed to the user before placing a reservation.
confirmationMessageOptionalLocalized message displayed to the user after placing a reservation.
bookingPoliciesOptionalLocalized version of the Venue's paymentPolicy: payment, deposit or cancellation policy displayed to the user when a credit card is required.

At least one of bookingMessage, confirmationMessage or bookingPolicies must be provided with a non-empty value; an empty string is treated as if the field were omitted.

On success the endpoint responds 200 OK with the three messages resolved for the given language (localized value, or the Venue's default message when no localized value exists for a field, or null when neither exists).

Error Responses​

StatusCodeWhen
400 Bad RequestERROR_MESSAGE_VALIDATION_FAILEDlocale is missing or empty, or none of bookingMessage, confirmationMessage or bookingPolicies has a non-empty value.
400 Bad RequestERROR_MESSAGE_RMS_NOT_FOUNDThe Venue is not linked to an RMS integration that supports localized booking messages.
404 Not FoundERROR_MESSAGE_VENUE_NOT_FOUNDNo Venue found for the given ID.
404 Not FoundERROR_MESSAGE_VENUE_BOOKING_MESSAGES_NOT_FOUNDNo localized bookingMessage exists yet for this Venue and language. Use Create Venue Booking Messages first.

Example Request:​

curl PUT "https://api-sandbox.mozrest.com/v1/rms/venues/{venueId}/booking-messages" \
-H "Authorization: Bearer {{api_key}}" \
-H "Content-Type: application/json" \
--data-raw '{
"locale": "es",
"bookingMessage": "Para confirmar tu reserva se requiere una tarjeta de crédito como garantía.",
"confirmationMessage": "Gracias por reservar. Recibirás una confirmación por correo electrónico y WhatsApp en breve.",
"bookingPolicies": "Las cancelaciones con menos de 48 horas de antelación tendrán un cargo de 25 € por persona en la tarjeta facilitada."
}'

Example Response:​

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

Delete Venue​

This endpoint allows for the deletion of a Venue.

Endpoint​

DELETE https://api-sandbox.mozrest.com/v1/rms/venues/{venueId}

Query Parameters​

ParameterStatusDescription
venueIdMandatoryID of the Venue to delete. Accepts either the Mozrest ID or the Partner's ID.

Example Request:​

curl DELETE "https://api-sandbox.mozrest.com/v1/rms/venues/{venueId}" \
-H "Authorization: Bearer {{api_key}}" '

Example Response:​

{
removed: true
}