Publish booking configuration
Replaces the booking configuration while preserving menu objects. Requires bookings:configure, a location grant, and the bookings-public-api rollout flag. An identical document is a content-addressed no-op. Provider-managed locations are unsupported. A location without a connection can be configured, but publishing does not enable bookings or change its rollout flags.
curl --request POST \
--url https://api.maple.inc/v1/locations/{locationId}/booking_configuration \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"timeZone": "<string>",
"currency": "<string>",
"areas": [
{
"poolId": "<string>",
"name": "<string>",
"units": [
{
"unitId": "<string>",
"seats": {
"min": 2,
"max": 2
},
"label": "<string>",
"tags": [
"<string>"
]
}
],
"combinations": [
{
"unitIds": [
"<string>"
],
"seats": {
"min": 2,
"max": 2
}
}
]
}
],
"turnBands": [
{
"minutes": 2,
"minGuests": 2,
"maxGuests": 2
}
],
"shifts": [
{
"start": "<string>",
"end": "<string>"
}
],
"pacing": {
"intervalMinutes": 2,
"maxCovers": 2
},
"bookingPolicy": {
"minLeadMinutes": 1,
"maxHorizonDays": 2,
"autoConfirm": true
},
"cancellationPolicy": {
"requiresCardOnFile": true,
"tiers": [
{
"withinHoursBeforeStart": 1,
"flatAmountMinor": 1,
"percentBps": 5000
}
],
"rescheduleCutoffHours": 123,
"policyText": "<string>"
},
"closedDates": [
"<string>"
]
}
'import requests
url = "https://api.maple.inc/v1/locations/{locationId}/booking_configuration"
payload = {
"timeZone": "<string>",
"currency": "<string>",
"areas": [
{
"poolId": "<string>",
"name": "<string>",
"units": [
{
"unitId": "<string>",
"seats": {
"min": 2,
"max": 2
},
"label": "<string>",
"tags": ["<string>"]
}
],
"combinations": [
{
"unitIds": ["<string>"],
"seats": {
"min": 2,
"max": 2
}
}
]
}
],
"turnBands": [
{
"minutes": 2,
"minGuests": 2,
"maxGuests": 2
}
],
"shifts": [
{
"start": "<string>",
"end": "<string>"
}
],
"pacing": {
"intervalMinutes": 2,
"maxCovers": 2
},
"bookingPolicy": {
"minLeadMinutes": 1,
"maxHorizonDays": 2,
"autoConfirm": True
},
"cancellationPolicy": {
"requiresCardOnFile": True,
"tiers": [
{
"withinHoursBeforeStart": 1,
"flatAmountMinor": 1,
"percentBps": 5000
}
],
"rescheduleCutoffHours": 123,
"policyText": "<string>"
},
"closedDates": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
timeZone: '<string>',
currency: '<string>',
areas: [
{
poolId: '<string>',
name: '<string>',
units: [
{
unitId: '<string>',
seats: {min: 2, max: 2},
label: '<string>',
tags: ['<string>']
}
],
combinations: [{unitIds: ['<string>'], seats: {min: 2, max: 2}}]
}
],
turnBands: [{minutes: 2, minGuests: 2, maxGuests: 2}],
shifts: [{start: '<string>', end: '<string>'}],
pacing: {intervalMinutes: 2, maxCovers: 2},
bookingPolicy: {minLeadMinutes: 1, maxHorizonDays: 2, autoConfirm: true},
cancellationPolicy: {
requiresCardOnFile: true,
tiers: [{withinHoursBeforeStart: 1, flatAmountMinor: 1, percentBps: 5000}],
rescheduleCutoffHours: 123,
policyText: '<string>'
},
closedDates: ['<string>']
})
};
fetch('https://api.maple.inc/v1/locations/{locationId}/booking_configuration', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.maple.inc/v1/locations/{locationId}/booking_configuration",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'timeZone' => '<string>',
'currency' => '<string>',
'areas' => [
[
'poolId' => '<string>',
'name' => '<string>',
'units' => [
[
'unitId' => '<string>',
'seats' => [
'min' => 2,
'max' => 2
],
'label' => '<string>',
'tags' => [
'<string>'
]
]
],
'combinations' => [
[
'unitIds' => [
'<string>'
],
'seats' => [
'min' => 2,
'max' => 2
]
]
]
]
],
'turnBands' => [
[
'minutes' => 2,
'minGuests' => 2,
'maxGuests' => 2
]
],
'shifts' => [
[
'start' => '<string>',
'end' => '<string>'
]
],
'pacing' => [
'intervalMinutes' => 2,
'maxCovers' => 2
],
'bookingPolicy' => [
'minLeadMinutes' => 1,
'maxHorizonDays' => 2,
'autoConfirm' => true
],
'cancellationPolicy' => [
'requiresCardOnFile' => true,
'tiers' => [
[
'withinHoursBeforeStart' => 1,
'flatAmountMinor' => 1,
'percentBps' => 5000
]
],
'rescheduleCutoffHours' => 123,
'policyText' => '<string>'
],
'closedDates' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maple.inc/v1/locations/{locationId}/booking_configuration"
payload := strings.NewReader("{\n \"timeZone\": \"<string>\",\n \"currency\": \"<string>\",\n \"areas\": [\n {\n \"poolId\": \"<string>\",\n \"name\": \"<string>\",\n \"units\": [\n {\n \"unitId\": \"<string>\",\n \"seats\": {\n \"min\": 2,\n \"max\": 2\n },\n \"label\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n }\n ],\n \"combinations\": [\n {\n \"unitIds\": [\n \"<string>\"\n ],\n \"seats\": {\n \"min\": 2,\n \"max\": 2\n }\n }\n ]\n }\n ],\n \"turnBands\": [\n {\n \"minutes\": 2,\n \"minGuests\": 2,\n \"maxGuests\": 2\n }\n ],\n \"shifts\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ],\n \"pacing\": {\n \"intervalMinutes\": 2,\n \"maxCovers\": 2\n },\n \"bookingPolicy\": {\n \"minLeadMinutes\": 1,\n \"maxHorizonDays\": 2,\n \"autoConfirm\": true\n },\n \"cancellationPolicy\": {\n \"requiresCardOnFile\": true,\n \"tiers\": [\n {\n \"withinHoursBeforeStart\": 1,\n \"flatAmountMinor\": 1,\n \"percentBps\": 5000\n }\n ],\n \"rescheduleCutoffHours\": 123,\n \"policyText\": \"<string>\"\n },\n \"closedDates\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.maple.inc/v1/locations/{locationId}/booking_configuration")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"timeZone\": \"<string>\",\n \"currency\": \"<string>\",\n \"areas\": [\n {\n \"poolId\": \"<string>\",\n \"name\": \"<string>\",\n \"units\": [\n {\n \"unitId\": \"<string>\",\n \"seats\": {\n \"min\": 2,\n \"max\": 2\n },\n \"label\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n }\n ],\n \"combinations\": [\n {\n \"unitIds\": [\n \"<string>\"\n ],\n \"seats\": {\n \"min\": 2,\n \"max\": 2\n }\n }\n ]\n }\n ],\n \"turnBands\": [\n {\n \"minutes\": 2,\n \"minGuests\": 2,\n \"maxGuests\": 2\n }\n ],\n \"shifts\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ],\n \"pacing\": {\n \"intervalMinutes\": 2,\n \"maxCovers\": 2\n },\n \"bookingPolicy\": {\n \"minLeadMinutes\": 1,\n \"maxHorizonDays\": 2,\n \"autoConfirm\": true\n },\n \"cancellationPolicy\": {\n \"requiresCardOnFile\": true,\n \"tiers\": [\n {\n \"withinHoursBeforeStart\": 1,\n \"flatAmountMinor\": 1,\n \"percentBps\": 5000\n }\n ],\n \"rescheduleCutoffHours\": 123,\n \"policyText\": \"<string>\"\n },\n \"closedDates\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.maple.inc/v1/locations/{locationId}/booking_configuration")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"timeZone\": \"<string>\",\n \"currency\": \"<string>\",\n \"areas\": [\n {\n \"poolId\": \"<string>\",\n \"name\": \"<string>\",\n \"units\": [\n {\n \"unitId\": \"<string>\",\n \"seats\": {\n \"min\": 2,\n \"max\": 2\n },\n \"label\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n }\n ],\n \"combinations\": [\n {\n \"unitIds\": [\n \"<string>\"\n ],\n \"seats\": {\n \"min\": 2,\n \"max\": 2\n }\n }\n ]\n }\n ],\n \"turnBands\": [\n {\n \"minutes\": 2,\n \"minGuests\": 2,\n \"maxGuests\": 2\n }\n ],\n \"shifts\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ],\n \"pacing\": {\n \"intervalMinutes\": 2,\n \"maxCovers\": 2\n },\n \"bookingPolicy\": {\n \"minLeadMinutes\": 1,\n \"maxHorizonDays\": 2,\n \"autoConfirm\": true\n },\n \"cancellationPolicy\": {\n \"requiresCardOnFile\": true,\n \"tiers\": [\n {\n \"withinHoursBeforeStart\": 1,\n \"flatAmountMinor\": 1,\n \"percentBps\": 5000\n }\n ],\n \"rescheduleCutoffHours\": 123,\n \"policyText\": \"<string>\"\n },\n \"closedDates\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"timeZone": "<string>",
"currency": "<string>",
"areas": [
{
"poolId": "<string>",
"name": "<string>",
"units": [
{
"unitId": "<string>",
"seats": {
"min": 2,
"max": 2
},
"label": "<string>",
"tags": [
"<string>"
]
}
],
"kind": "seat",
"combinations": [
{
"unitIds": [
"<string>"
],
"seats": {
"min": 2,
"max": 2
}
}
]
}
],
"turnBands": [
{
"minutes": 2,
"minGuests": 2,
"maxGuests": 2
}
],
"shifts": [
{
"day": "MON",
"start": "<string>",
"end": "<string>"
}
],
"object": "booking_configuration",
"location_id": "<string>",
"version_id": "<string>",
"published_at": "<string>",
"livemode": true,
"pacing": {
"intervalMinutes": 2,
"maxCovers": 2,
"enforcement": "hard"
},
"bookingPolicy": {
"minLeadMinutes": 1,
"maxHorizonDays": 2,
"slotAlignment": "service_duration",
"autoConfirm": true
},
"cancellationPolicy": {
"requiresCardOnFile": true,
"tiers": [
{
"withinHoursBeforeStart": 1,
"basis": "flat",
"flatAmountMinor": 1,
"percentBps": 5000
}
],
"rescheduleCutoffHours": 123,
"policyText": "<string>"
},
"closedDates": [
"<string>"
]
}{
"_tag": "DeveloperApiBadRequest",
"message": "<string>",
"code": "<string>"
}{
"_tag": "DeveloperApiUnauthorized",
"message": "<string>"
}{
"_tag": "DeveloperApiForbidden",
"code": "insufficient_scope",
"message": "<string>"
}{
"_tag": "DeveloperApiNotFound",
"message": "<string>"
}{
"_tag": "DeveloperApiUnprocessable",
"code": "<string>",
"message": "<string>",
"details": {}
}{
"_tag": "DeveloperApiRateLimited",
"message": "<string>",
"retry_after": 123
}Authorizations
API key — mpk_test_… for the sandbox, mpk_live_… for production. Issued by Maple during partner onboarding.
Path Parameters
Body
^[A-Z]{3}$1Show child attributes
Show child attributes
1Show child attributes
Show child attributes
1Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Success
^[A-Z]{3}$1Show child attributes
Show child attributes
1Show child attributes
Show child attributes
1Show child attributes
Show child attributes
booking_configuration Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?
curl --request POST \
--url https://api.maple.inc/v1/locations/{locationId}/booking_configuration \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"timeZone": "<string>",
"currency": "<string>",
"areas": [
{
"poolId": "<string>",
"name": "<string>",
"units": [
{
"unitId": "<string>",
"seats": {
"min": 2,
"max": 2
},
"label": "<string>",
"tags": [
"<string>"
]
}
],
"combinations": [
{
"unitIds": [
"<string>"
],
"seats": {
"min": 2,
"max": 2
}
}
]
}
],
"turnBands": [
{
"minutes": 2,
"minGuests": 2,
"maxGuests": 2
}
],
"shifts": [
{
"start": "<string>",
"end": "<string>"
}
],
"pacing": {
"intervalMinutes": 2,
"maxCovers": 2
},
"bookingPolicy": {
"minLeadMinutes": 1,
"maxHorizonDays": 2,
"autoConfirm": true
},
"cancellationPolicy": {
"requiresCardOnFile": true,
"tiers": [
{
"withinHoursBeforeStart": 1,
"flatAmountMinor": 1,
"percentBps": 5000
}
],
"rescheduleCutoffHours": 123,
"policyText": "<string>"
},
"closedDates": [
"<string>"
]
}
'import requests
url = "https://api.maple.inc/v1/locations/{locationId}/booking_configuration"
payload = {
"timeZone": "<string>",
"currency": "<string>",
"areas": [
{
"poolId": "<string>",
"name": "<string>",
"units": [
{
"unitId": "<string>",
"seats": {
"min": 2,
"max": 2
},
"label": "<string>",
"tags": ["<string>"]
}
],
"combinations": [
{
"unitIds": ["<string>"],
"seats": {
"min": 2,
"max": 2
}
}
]
}
],
"turnBands": [
{
"minutes": 2,
"minGuests": 2,
"maxGuests": 2
}
],
"shifts": [
{
"start": "<string>",
"end": "<string>"
}
],
"pacing": {
"intervalMinutes": 2,
"maxCovers": 2
},
"bookingPolicy": {
"minLeadMinutes": 1,
"maxHorizonDays": 2,
"autoConfirm": True
},
"cancellationPolicy": {
"requiresCardOnFile": True,
"tiers": [
{
"withinHoursBeforeStart": 1,
"flatAmountMinor": 1,
"percentBps": 5000
}
],
"rescheduleCutoffHours": 123,
"policyText": "<string>"
},
"closedDates": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
timeZone: '<string>',
currency: '<string>',
areas: [
{
poolId: '<string>',
name: '<string>',
units: [
{
unitId: '<string>',
seats: {min: 2, max: 2},
label: '<string>',
tags: ['<string>']
}
],
combinations: [{unitIds: ['<string>'], seats: {min: 2, max: 2}}]
}
],
turnBands: [{minutes: 2, minGuests: 2, maxGuests: 2}],
shifts: [{start: '<string>', end: '<string>'}],
pacing: {intervalMinutes: 2, maxCovers: 2},
bookingPolicy: {minLeadMinutes: 1, maxHorizonDays: 2, autoConfirm: true},
cancellationPolicy: {
requiresCardOnFile: true,
tiers: [{withinHoursBeforeStart: 1, flatAmountMinor: 1, percentBps: 5000}],
rescheduleCutoffHours: 123,
policyText: '<string>'
},
closedDates: ['<string>']
})
};
fetch('https://api.maple.inc/v1/locations/{locationId}/booking_configuration', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.maple.inc/v1/locations/{locationId}/booking_configuration",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'timeZone' => '<string>',
'currency' => '<string>',
'areas' => [
[
'poolId' => '<string>',
'name' => '<string>',
'units' => [
[
'unitId' => '<string>',
'seats' => [
'min' => 2,
'max' => 2
],
'label' => '<string>',
'tags' => [
'<string>'
]
]
],
'combinations' => [
[
'unitIds' => [
'<string>'
],
'seats' => [
'min' => 2,
'max' => 2
]
]
]
]
],
'turnBands' => [
[
'minutes' => 2,
'minGuests' => 2,
'maxGuests' => 2
]
],
'shifts' => [
[
'start' => '<string>',
'end' => '<string>'
]
],
'pacing' => [
'intervalMinutes' => 2,
'maxCovers' => 2
],
'bookingPolicy' => [
'minLeadMinutes' => 1,
'maxHorizonDays' => 2,
'autoConfirm' => true
],
'cancellationPolicy' => [
'requiresCardOnFile' => true,
'tiers' => [
[
'withinHoursBeforeStart' => 1,
'flatAmountMinor' => 1,
'percentBps' => 5000
]
],
'rescheduleCutoffHours' => 123,
'policyText' => '<string>'
],
'closedDates' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maple.inc/v1/locations/{locationId}/booking_configuration"
payload := strings.NewReader("{\n \"timeZone\": \"<string>\",\n \"currency\": \"<string>\",\n \"areas\": [\n {\n \"poolId\": \"<string>\",\n \"name\": \"<string>\",\n \"units\": [\n {\n \"unitId\": \"<string>\",\n \"seats\": {\n \"min\": 2,\n \"max\": 2\n },\n \"label\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n }\n ],\n \"combinations\": [\n {\n \"unitIds\": [\n \"<string>\"\n ],\n \"seats\": {\n \"min\": 2,\n \"max\": 2\n }\n }\n ]\n }\n ],\n \"turnBands\": [\n {\n \"minutes\": 2,\n \"minGuests\": 2,\n \"maxGuests\": 2\n }\n ],\n \"shifts\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ],\n \"pacing\": {\n \"intervalMinutes\": 2,\n \"maxCovers\": 2\n },\n \"bookingPolicy\": {\n \"minLeadMinutes\": 1,\n \"maxHorizonDays\": 2,\n \"autoConfirm\": true\n },\n \"cancellationPolicy\": {\n \"requiresCardOnFile\": true,\n \"tiers\": [\n {\n \"withinHoursBeforeStart\": 1,\n \"flatAmountMinor\": 1,\n \"percentBps\": 5000\n }\n ],\n \"rescheduleCutoffHours\": 123,\n \"policyText\": \"<string>\"\n },\n \"closedDates\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.maple.inc/v1/locations/{locationId}/booking_configuration")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"timeZone\": \"<string>\",\n \"currency\": \"<string>\",\n \"areas\": [\n {\n \"poolId\": \"<string>\",\n \"name\": \"<string>\",\n \"units\": [\n {\n \"unitId\": \"<string>\",\n \"seats\": {\n \"min\": 2,\n \"max\": 2\n },\n \"label\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n }\n ],\n \"combinations\": [\n {\n \"unitIds\": [\n \"<string>\"\n ],\n \"seats\": {\n \"min\": 2,\n \"max\": 2\n }\n }\n ]\n }\n ],\n \"turnBands\": [\n {\n \"minutes\": 2,\n \"minGuests\": 2,\n \"maxGuests\": 2\n }\n ],\n \"shifts\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ],\n \"pacing\": {\n \"intervalMinutes\": 2,\n \"maxCovers\": 2\n },\n \"bookingPolicy\": {\n \"minLeadMinutes\": 1,\n \"maxHorizonDays\": 2,\n \"autoConfirm\": true\n },\n \"cancellationPolicy\": {\n \"requiresCardOnFile\": true,\n \"tiers\": [\n {\n \"withinHoursBeforeStart\": 1,\n \"flatAmountMinor\": 1,\n \"percentBps\": 5000\n }\n ],\n \"rescheduleCutoffHours\": 123,\n \"policyText\": \"<string>\"\n },\n \"closedDates\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.maple.inc/v1/locations/{locationId}/booking_configuration")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"timeZone\": \"<string>\",\n \"currency\": \"<string>\",\n \"areas\": [\n {\n \"poolId\": \"<string>\",\n \"name\": \"<string>\",\n \"units\": [\n {\n \"unitId\": \"<string>\",\n \"seats\": {\n \"min\": 2,\n \"max\": 2\n },\n \"label\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ]\n }\n ],\n \"combinations\": [\n {\n \"unitIds\": [\n \"<string>\"\n ],\n \"seats\": {\n \"min\": 2,\n \"max\": 2\n }\n }\n ]\n }\n ],\n \"turnBands\": [\n {\n \"minutes\": 2,\n \"minGuests\": 2,\n \"maxGuests\": 2\n }\n ],\n \"shifts\": [\n {\n \"start\": \"<string>\",\n \"end\": \"<string>\"\n }\n ],\n \"pacing\": {\n \"intervalMinutes\": 2,\n \"maxCovers\": 2\n },\n \"bookingPolicy\": {\n \"minLeadMinutes\": 1,\n \"maxHorizonDays\": 2,\n \"autoConfirm\": true\n },\n \"cancellationPolicy\": {\n \"requiresCardOnFile\": true,\n \"tiers\": [\n {\n \"withinHoursBeforeStart\": 1,\n \"flatAmountMinor\": 1,\n \"percentBps\": 5000\n }\n ],\n \"rescheduleCutoffHours\": 123,\n \"policyText\": \"<string>\"\n },\n \"closedDates\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"timeZone": "<string>",
"currency": "<string>",
"areas": [
{
"poolId": "<string>",
"name": "<string>",
"units": [
{
"unitId": "<string>",
"seats": {
"min": 2,
"max": 2
},
"label": "<string>",
"tags": [
"<string>"
]
}
],
"kind": "seat",
"combinations": [
{
"unitIds": [
"<string>"
],
"seats": {
"min": 2,
"max": 2
}
}
]
}
],
"turnBands": [
{
"minutes": 2,
"minGuests": 2,
"maxGuests": 2
}
],
"shifts": [
{
"day": "MON",
"start": "<string>",
"end": "<string>"
}
],
"object": "booking_configuration",
"location_id": "<string>",
"version_id": "<string>",
"published_at": "<string>",
"livemode": true,
"pacing": {
"intervalMinutes": 2,
"maxCovers": 2,
"enforcement": "hard"
},
"bookingPolicy": {
"minLeadMinutes": 1,
"maxHorizonDays": 2,
"slotAlignment": "service_duration",
"autoConfirm": true
},
"cancellationPolicy": {
"requiresCardOnFile": true,
"tiers": [
{
"withinHoursBeforeStart": 1,
"basis": "flat",
"flatAmountMinor": 1,
"percentBps": 5000
}
],
"rescheduleCutoffHours": 123,
"policyText": "<string>"
},
"closedDates": [
"<string>"
]
}{
"_tag": "DeveloperApiBadRequest",
"message": "<string>",
"code": "<string>"
}{
"_tag": "DeveloperApiUnauthorized",
"message": "<string>"
}{
"_tag": "DeveloperApiForbidden",
"code": "insufficient_scope",
"message": "<string>"
}{
"_tag": "DeveloperApiNotFound",
"message": "<string>"
}{
"_tag": "DeveloperApiUnprocessable",
"code": "<string>",
"message": "<string>",
"details": {}
}{
"_tag": "DeveloperApiRateLimited",
"message": "<string>",
"retry_after": 123
}