Skip to main content

Areas

An Area represents a specific space within a Venue that customers can choose to book.

Object Definition​

KeyTypeStatusDescription
idStringMandatoryUnique identifier for the Area.
nameStringMandatoryName of the Area. Allows translations.
externalIdStringMandatoryIdentifier for the Area in the Partner system.
descriptionStringOptionalDescription of the Area. Allows translations.
translations[locale]StringOptionalLocale code for translation in ISO 639-1 format.
translations[data][field]StringOptionalField to be translated (e.g., "name" or "description").
translations[data][content]StringOptionalTranslation content for the field.

Get Available Areas​

This endpoint retrieves a list of available Areas for a specific Venue.

Endpoint​

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

URL Parameters​

ParameterStatusDescription
venueIdMandatoryThe ID of the Venue for which to retrieve available areas. Accepts either Mozrest or Partner ID.

Example Request​

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

Example Response​

{
"total": 2,
"data": [
{
"id": "624fbc403cfd9a529ea17f36",
"venue": {
"id": "624fba8a5fb36da5ae6e73bf",
"name": "TapasTapas"
},
"name": "Dinning room",
"description": "Main dinning room in the restaurant",
"externalId": "0001",
"translations": [
{
"id": "624fbc414a3b895d7d00efb3",
"parentId": "624fbc403cfd9a529ea17f36",
"locale": "es",
"field": "name",
"content": "Salón pricipal",
"createdAt": "2022-04-08T04:38:25+00:00",
"updatedAt": "2022-04-08T04:38:25+00:00"
},
{
"id": "624fbc41924ab9a37e938247",
"parentId": "624fbc403cfd9a529ea17f36",
"locale": "en",
"field": "description",
"content": "Main dinning room in the restaurant",
"createdAt": "2022-04-08T04:38:25+00:00",
"updatedAt": "2022-04-08T04:38:25+00:00"
},
{
"id": "624fbc41c910729de305be29",
"parentId": "624fbc403cfd9a529ea17f36",
"locale": "es",
"field": "description",
"content": "Salón principal del restaurante",
"createdAt": "2022-04-08T04:38:25+00:00",
"updatedAt": "2022-04-08T04:38:25+00:00"
},
{
"id": "624fbc41fa21017434e24af7",
"parentId": "624fbc403cfd9a529ea17f36",
"locale": "en",
"field": "name",
"content": "Dinning room",
"createdAt": "2022-04-08T04:38:25+00:00",
"updatedAt": "2022-04-08T04:38:25+00:00"
}
],
"createdAt": "2022-04-08T04:38:24+00:00",
"updatedAt": "2022-04-08T04:38:24+00:00"
},
{ ... }
]
}

Get a Specific Area​

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

Endpoint​

GET https://api-sandbox.mozrest.com/v1/rms/venues/{venueId}/areas/{areaId}

URL Parameters​

ParameterStatusDescription
venueIdMandatoryThe ID of the Venue to which the Area belongs. Accepts either Mozrest or Partner ID.
areaIdMandatoryThe ID of the Area to retrieve. Accepts either Mozrest or Partner ID.

Example Request​

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

Example Response​

{
"id": "624fbc403cfd9a529ea17f36",
"venue": {
"id": "624fba8a5fb36da5ae6e73bf",
"name": "TapasTapas"
},
"name": "Dinning room",
"description": "Main dinning room in the restaurant",
"externalId": "0001",
"translations": [
{
"id": "624fbc414a3b895d7d00efb3",
"parentId": "624fbc403cfd9a529ea17f36",
"locale": "es",
"field": "name",
"content": "Salón pricipal",
"createdAt": "2022-04-08T04:38:25+00:00",
"updatedAt": "2022-04-08T04:38:25+00:00"
},
{
"id": "624fbc41924ab9a37e938247",
"parentId": "624fbc403cfd9a529ea17f36",
"locale": "en",
"field": "description",
"content": "Main dinning room in the restaurant",
"createdAt": "2022-04-08T04:38:25+00:00",
"updatedAt": "2022-04-08T04:38:25+00:00"
},
{
"id": "624fbc41c910729de305be29",
"parentId": "624fbc403cfd9a529ea17f36",
"locale": "es",
"field": "description",
"content": "Salón principal del restaurante",
"createdAt": "2022-04-08T04:38:25+00:00",
"updatedAt": "2022-04-08T04:38:25+00:00"
},
{
"id": "624fbc41fa21017434e24af7",
"parentId": "624fbc403cfd9a529ea17f36",
"locale": "en",
"field": "name",
"content": "Dinning room",
"createdAt": "2022-04-08T04:38:25+00:00",
"updatedAt": "2022-04-08T04:38:25+00:00"
}
],
"createdAt": "2022-04-08T04:38:24+00:00",
"updatedAt": "2022-04-08T04:38:24+00:00"
}

Create Area​

This endpoint allows for the creation of a new Area within a Venue.

Endpoint​

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

URL Parameters​

ParameterStatusDescription
venueIdMandatoryThe ID of the Venue in which the Area will be created. Accepts either Mozrest or Partner ID.

Body Parameters​

ParameterStatusDescription
nameMandatoryName of the Area. Allows translation.
externalIdMandatoryIdentifier for the Area in the Partner system.
descriptionOptionalDescription of the Area. Allows translation.
translations[locale]OptionalLocale code for translation in ISO 639-1 format.
translations[data][field]OptionalField to translate (e.g., "name" or "description").
translations[data][content]OptionalTranslation content for the specified field.

Example Request​

curl POST "https://api-sandbox.mozrest.com/v1/rms/venues/{venueId}/areas" \
-H "Authorization: Bearer {{api_key}}" \
--data-raw '{
"name": "Terrace",
"externalId": "0002",
"description": "Terrace with view to the Rhein river",
"translations": [
{
"locale": "en",
"data": [
{
"field": "name",
"content": "Terrace"
},
{
"field": "description",
"content": "Terrace with view to the Rhein river"
}
]
},
{
"locale": "es",
"data": [
{
"field": "name",
"content": "Terraza"
},
{
"field": "description",
"content": "Terraza con vistas al rio Rhein"
}
]
}
]
}'

Example Response​

{
"id": "624fbc8e4ac61a6a88bf1e75",
"venue": {
"id": "624fba8a5fb36da5ae6e73bf",
"name": "TapasTapas"
},
"name": "Terrace",
"description": "Terrace with view to the Rhein river",
"externalId": "0002",
"translations": [
{
"locale": "en",
"data": [
{
"field": "name",
"content": "Terrace"
},
{
"field": "description",
"content": "Terrace with view to the Rhein river"
}
]
},
{
"locale": "es",
"data": [
{
"field": "name",
"content": "Terraza"
},
{
"field": "description",
"content": "Terraza con vistas al rio Rhein"
}
]
}
],
"createdAt": "2022-04-08T04:39:42+00:00",
"updatedAt": "2022-04-08T04:39:42+00:00"
}

Update Area​

This endpoint allows for updating the details of an existing Area within a Venue.

Endpoint​

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

URL Parameters​

ParameterStatusDescription
venueIdMandatoryThe ID of the Venue to which the Area belongs. Accepts either Mozrest or Partner ID.
areaIdMandatoryThe ID of the Area to update. Accepts either Mozrest or Partner ID.

Body Parameters​

ParameterStatusDescription
nameMandatoryName of the Area. Allows translation.
descriptionOptionalDescription of the Area. Allows translation.
translations[locale]OptionalLocale code for translation in ISO 639-1 format.
translations[data][field]OptionalField to translate (e.g., "name" or "description").
translations[data][content]OptionalTranslation content for the specified field.

Example Request​

curl PUT "https://api-sandbox.mozrest.com/v1/rms/venues/{venueId}/areas/{area_id}" \
-H "Authorization: Bearer {{api_key}}" \
--data-raw '{
"name": "Terrace",
"description": "Terrace with view to the Rhein river",
"translations": [
{
"locale": "en",
"data": [
{
"field": "name",
"content": "Terrace"
},
{
"field": "description",
"content": "Terrace with view to the Rhein river"
}
]
},
{
"locale": "es",
"data": [
{
"field": "name",
"content": "Terraza"
},
{
"field": "description",
"content": "Terraza con vistas al rio Rhein"
}
]
}
]
}'

Example Response​

{
"id": "624fbc8e4ac61a6a88bf1e75",
"venue": {
"id": "624fba8a5fb36da5ae6e73bf",
"name": "TapasTapas"
},
"name": "Terrace",
"description": "Terrace with view to the Rhein river",
"externalId": "0002",
"translations": [
{
"id": "624fbc8e3a167594c79ab7be",
"parentId": "624fbc8e4ac61a6a88bf1e75",
"locale": "es",
"field": "description",
"content": "Terraza con vistas al rio Rhein",
"createdAt": "2022-04-08T04:39:42+00:00",
"updatedAt": "2022-04-08T04:39:42+00:00"
},
{
"id": "624fbc8e821586ddaf9e8ae5",
"parentId": "624fbc8e4ac61a6a88bf1e75",
"locale": "en",
"field": "description",
"content": "Terrace with view to the Rhein river",
"createdAt": "2022-04-08T04:39:42+00:00",
"updatedAt": "2022-04-08T04:39:42+00:00"
},
{
"id": "624fbc8ee610240b8ef7cee3",
"parentId": "624fbc8e4ac61a6a88bf1e75",
"locale": "es",
"field": "name",
"content": "Terraza",
"createdAt": "2022-04-08T04:39:42+00:00",
"updatedAt": "2022-04-08T04:39:42+00:00"
},
{
"id": "624fbc8ee85a913105a161eb",
"parentId": "624fbc8e4ac61a6a88bf1e75",
"locale": "en",
"field": "name",
"content": "Terrace",
"createdAt": "2022-04-08T04:39:42+00:00",
"updatedAt": "2022-04-08T04:39:42+00:00"
}
],
"createdAt": "2022-04-08T04:39:42+00:00",
"updatedAt": "2022-04-08T04:39:42+00:00"
}

Delete Area​

This endpoint allows for the deletion of an Area from a Venue.

Endpoint​

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

URL Parameters​

ParameterStatusDescription
venueIdMandatoryThe ID of the Venue from which the Area will be deleted. Accepts either Mozrest or Partner ID.
areaIdMandatoryThe ID of the Area to delete. Accepts either Mozrest or Partner ID.

Example Request​

curl DELETE "https://api-sandbox.mozrest.com/v1/rms/venues/64edee6271544998a8e272f8/areas/60e5a3cab8e5c33agh870101" \
-H "Authorization: Bearer {{api_key}}" \

Example Response​

{
removed: true
}