latestSwagger 2.02026-08-172560124.6 KB
6863a5956792
reservation-settings
Get merchant reservation settings
This endpoint provides all data that is required to initiate the reservation flow and is not part of the search endpoint.
Example curl:
curl https://{host}/v{X}/merchants/15/reservation-settings
Example response:
{
"areaIds": [
{
"id": 2,
"name": "Garden",
"priority": 10
}
],
"areaSelectionRequired": true,
"capacities": [
1,
2,
3,
4,
5,
6
],
"links": [
{
"href": "https://{host}/v{X}/merchants/15",
"method": "GET",
"rel": "parent"
},
{
"href": "https://{host}/v{X}/merchants/15/availabilities",
"method": "GET",
"rel": "availability_days"
},
{
"href": "https://{host}/v{X}/merchants/15/availabilities/2017-01-01/times",
"method": "GET",
"rel": "availability"
}
],
"merchantNewsletterSelectionRequired": true,
"minimumCapacityForEnquiries": 10,
"onlineReservationInterval": 60,
"reservationEnquiryEnabled": true,
"specialTerms": "This is any custom string for special terms",
"automaticConfirmation": true,
"ccvEnabled": true
}
get/v1/merchants/{merchantId}/reservation-settings
Path parameters
merchantIdinteger required
Id of the merchant
Response
Reservation settings response