Book an appointment

Customer appointments can be booked using this API endpoint. The post API is expecting data params such as api_key, customer email address, phone number, country code, date, slot from time, and slot to time. On successful API execution, slot booking details will be communicated to the customer email address and phone number(based on business SMS plan subscription)


Endpoint

{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
POST /api/appointments Book an appointment

URL Params

NULL

Data Params

{
  "api_key": "{API_KEY}",
  "email": "samplemail@gmail.com",
  "business_unit_id": 5898,
  "country_code": "91",
  "phone": "9999999999",
  "date": "2020-06-12",
  "from": "17:00",
  "to": "18:00"
}

{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": "Slot booked successfully"
}

{warning} Unauthorized request

Code 401

Content

{
  "status": "failure",
  "message": "Unauthorized request"
}

{danger} Not found

Code 404

Content

{
  "status": "failure",
  "message": "Not found"
}