Businesses Tables
Return all tables for specific business.
Parameters
idpath integerRequired
Return all tables by the specific business
id
. You can retrieve thisid
from ...includequery string
Include associations (delimited with comma). Available associations: business
pagequery integer
Page offset to fetch.
per_pagequery integer
Number of results to return per page.
{
const res = await fetch(`${BASE_URL}/api/v1/businesses/${id}/tables`, {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}});
const data = await res.json();
}
{
"data": [
{
"id": "d13fc44c-7757-42f7-b872-f187fad12d10",
"type": "tables",
"links": {
"self": "/tables/d13fc44c-7757-42f7-b872-f187fad12d10"
},
"attributes": {
"number": "1",
"number-of-seats": 2
},
"relationships": {
"business": {
"links": {
"self": "/tables/d13fc44c-7757-42f7-b872-f187fad12d10/relationships/business",
"related": "/tables/d13fc44c-7757-42f7-b872-f187fad12d10/business"
}
}
}
}
],
"meta": {
"total-count": 1,
"total-pages": 1
}
}