- Auth
- ForgotPassword
- Profile
- Family Members
- Address
- Languages
- Products
- Permissions
- Config
- Appointment Schedule
- Test Tags
- Test Parameters
- Category
- Device
- File
- Appointment
- Reports
- Staff
- Patient
- Notifications
Get Appointment Slots
Developing
POST
/api/service/v1/appointment/slots
Request
Header Params
Accept
string
optional
Example:
application/json
Content-Type
string
optional
Example:
application/json
practice-code
string
optional
Example:
DEFAULT
Authorization
string
optional
Example:
{{token}}
Body Params application/json
date
string
required
products
array[string]
required
gender_pref
string
required
Example
{
"products" : ["67b44ee4e1c5fa73ee81bcd6", "67b44a90e1c5fa73ee81bb09"],
"gender_pref": "male",
"timezone" : "Asia/Calcutta"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://afyahealth.doctodoor.com:5600/api/service/v1/appointment/slots' \
--header 'Accept: application/json' \
--header 'practice-code: DEFAULT' \
--header 'Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImVtYWlsIjoiZGVlcC5tYXJzb25pYUBwbGVuYXJ0ZWNoLmNvbSIsInN1YiI6IjY3YjJkZmZlNWJmMjdlMzk1NTUzMjE0MyIsImlhdCI6MTc0MTc4MjA4NCwiZXhwIjoxNzQ5NTU4MDg0fQ.KAMsweSbJPDxpLijKdjgp3YEFauw8KYLLumCBpqQfAA' \
--header 'Content-Type: application/json' \
--data-raw '{
"products" : ["67b44ee4e1c5fa73ee81bcd6", "67b44a90e1c5fa73ee81bb09"],
"gender_pref": "male",
"timezone" : "Asia/Calcutta"
}'
Responses
🟢200Success
application/json
Body
error
boolean
required
status_code
integer
required
message
string
required
data
array [object {4}]
required
start
string
required
end
string
required
technician_id
string
required
date
string
required
Example
{
"error": false,
"status_code": 200,
"message": "",
"data": {
"slots": [
{
"start": "16:30",
"end": "17:00",
"technician_id": "67c00b6d3242793608643e71",
"gender": "male",
"services": [
"67b449d2e1c5fa73ee81b9fb"
],
"timezone": "Asia/Calcutta",
"date": "2025-02-27"
},
{
"start": "17:00",
"end": "17:30",
"technician_id": "67c00b6d3242793608643e71",
"gender": "male",
"services": [
"67b449d2e1c5fa73ee81b9fb"
],
"timezone": "Asia/Calcutta",
"date": "2025-02-27"
},
{
"start": "17:30",
"end": "18:00",
"technician_id": "67c00b6d3242793608643e71",
"gender": "male",
"services": [
"67b449d2e1c5fa73ee81b9fb"
],
"timezone": "Asia/Calcutta",
"date": "2025-02-27"
},
{
"start": "18:00",
"end": "18:30",
"technician_id": "67c00b6d3242793608643e71",
"gender": "male",
"services": [
"67b449d2e1c5fa73ee81b9fb"
],
"timezone": "Asia/Calcutta",
"date": "2025-02-27"
},
{
"start": "18:30",
"end": "19:00",
"technician_id": "67c00b6d3242793608643e71",
"gender": "male",
"services": [
"67b449d2e1c5fa73ee81b9fb"
],
"timezone": "Asia/Calcutta",
"date": "2025-02-27"
},
{
"start": "19:00",
"end": "19:30",
"technician_id": "67c00b6d3242793608643e71",
"gender": "male",
"services": [
"67b449d2e1c5fa73ee81b9fb"
],
"timezone": "Asia/Calcutta",
"date": "2025-02-27"
},
{
"start": "19:30",
"end": "20:00",
"technician_id": "67c00b6d3242793608643e71",
"gender": "male",
"services": [
"67b449d2e1c5fa73ee81b9fb"
],
"timezone": "Asia/Calcutta",
"date": "2025-02-27"
}
],
"slots_updated_at": "2025-02-27T10:49:40.217Z"
}
}