List of billiard tables
To get tables of a specific billiard room you need to make a GET call to the following url:
https://p.bb-crm.com/api/listtables
Result example
[
{
"table": 16,
"title": "№1 пул"
},
{
"table": 17,
"title": "№2 пул"
},
]
QUERY PARAMETERS
Field | Type | Description |
---|---|---|
api_token | String | Your API key. |
Answer PARAMETERS
Field | Type | Description |
---|---|---|
table | Number | ID Table |
title | String | Table name |
Receiving the booked tables for the next 7 days
To get the list of tables, you need to make a GET call to the following URL:
https://p.bb-crm.com/api/busytables
Result example succes :
{
"error": [],
"succes": [
{
"date_start": "2020-10-01 15:00:00",
"date_end": "2020-10-01 16:00:00",
"table": 17
},
{
"date_start": "2020-10-01 15:00:00",
"date_end": "2020-10-01 16:00:00",
"table": 17
}
]
}
QUERY PARAMETERS
Field | Type | Description |
---|---|---|
api_token | String | Your API key. |
Field | Type | Description |
---|---|---|
error | Array | Parameter not specified |
succes | Array |
"date_start": "2020-10-01 15:00:00", - table start "date_end": "2020-10-01 16:00:00", - table end "table": 17 - id table |
Table reservation
To book a table, you need to make a POST call to the following url:
https://p.bb-crm.com/api/tobooktables
Result example not error: { "error":[], "succes":41 }
Result example with error: {"error": { "date_start":false, "date_end":false, "phone":false, "table":false, }, "succes":[] }
QUERY PARAMETERS
Field | Type | Description |
---|---|---|
api_token | String | Your API key. |
date_start | String (2020-09-28 15:00) | Start booking |
date_end | String (2020-09-28 15:00) | End of booking |
phone | String (0678855393) | Phone |
String | ||
table | Number | Table number |
status | Number |
2- paid 1 - not paid |
Answer PARAMETERS
Field | Type | Description |
---|---|---|
succes | Number | ID Armor |
error | Array | Array containing blank data |