The API endpoint can be used to get business slots details. slashQ API platform is expecting an api_key
and date in the request. You will get date-specific slot details such as slot start time, slot end time, and slot percentage filled information on a successful query.
{warning} All requests are passed to the
slashq.io
host URL. You can append corresponding API endpoints to the host URL depending on your requirement.
Method | URI | Description |
---|---|---|
GET | /api/slots |
Get business slots |
api_key=API_KEY&date=2020-06-30&business_unit_id=342
NULL
{info} The
API_KEY
is the token that the server needs in order to auth the request.
{success} Success Response
Code 200
Content
{
"status": "success",
"message": "Slots fetched successfully",
"data": [
{
"from": "18:30",
"to": "19:30",
"percentage_filled": 0
},
{
"from": "19:30",
"to": "20:30",
"percentage_filled": 30
}
]
}
{warning} Unauthorized request
Code 401
Content
{
"status": "failure",
"message": "Unauthorized request"
}
{danger} Not found
Code 404
Content
{
"status": "failure",
"message": "Not found"
}