Fetch Date Time Slots
This api is used to fetch date time slots for test_ids
which would be conducted at the requested pin_code
and city
, for a particular lab_id
.
::: requestmodel
Property | Type? | Required? |
---|---|---|
test_ids | List (Integer) | Required |
pincode | String | Required |
city | String | Required |
lab_id | Integer | Required |
date | String | Optional Format - "%B %d,%Y" Example - "September 28,2023" The default value is current date. |
product_category | String | Optional Refers to the test category Choices - pathology , radiology |
address_id | Integer | Optional |
address_data | String | Optional |
address_data.state | String | Required |
address_data.city | String | Required |
address_data.street1 | String | Required |
address_data.street2 | String | Optional |
address_data.street3 | String | Optional |
address_data.landmark | String | Optional |
address_data.locality | String | Optional |
address_data.country | String | Optional |
slot_type | String | Optional Choices - regular, covid |
patient_type | String | Optional |
hide_slot_charge | Boolean | Optional |
patients | List | Optional |
Header Parameters
- Content-Type stringExample: application/json
- x-access-key stringExample: 1mg_client_public_access_key
- X-Authorization stringExample: {{X-Authorization}}
- application/json
Request Body
- object
Responses
- 200
OK
Response Headers
Date string
Content-Type string
Transfer-Encoding string
Connection string
vary string
x-request-id string
set-cookie string
visitor-id string
x-visitor-id string
access-control-allow-methods string
access-control-allow-headers string
access-control-allow-origin string
CF-Cache-Status string
Server string
CF-RAY string
Content-Encoding string
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"data": {
"days_array": [
{
"epoch_slot": 23092023,
"date_time_format": "%d%m%Y",
"is_selected": true
},
{
"epoch_slot": 24092023,
"date_time_format": "%d%m%Y",
"is_selected": false
},
{
"epoch_slot": 25092023,
"date_time_format": "%d%m%Y",
"is_selected": false
},
{
"epoch_slot": 26092023,
"date_time_format": "%d%m%Y",
"is_selected": false
},
{
"epoch_slot": 27092023,
"date_time_format": "%d%m%Y",
"is_selected": false
},
{
"epoch_slot": 28092023,
"date_time_format": "%d%m%Y",
"is_selected": false
},
{
"epoch_slot": 29092023,
"date_time_format": "%d%m%Y",
"is_selected": false
}
],
"time_slot_data": {
"23092023": [
{
"slot_id": null,
"label": "6:00 am - 7:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695429000
},
{
"slot_id": null,
"label": "7:00 am - 8:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695432600
},
{
"slot_id": null,
"label": "8:00 am - 9:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695436200
},
{
"slot_id": null,
"label": "9:00 am - 10:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695439800
},
{
"slot_id": null,
"label": "10:00 am - 11:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695443400
},
{
"slot_id": null,
"label": "11:00 am - 12:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695447000
},
{
"slot_id": null,
"label": "12:00 pm - 01:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695450600
},
{
"slot_id": null,
"label": "01:00 pm - 02:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695454200
},
{
"slot_id": null,
"label": "02:00 pm - 03:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695457800
},
{
"slot_id": null,
"label": "03:00 pm - 04:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695461400
},
{
"slot_id": null,
"label": "04:00 pm - 05:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695465000
},
{
"slot_id": null,
"label": "05:00 pm - 06:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695468600
},
{
"slot_id": null,
"label": "06:00 pm - 07:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695472200
},
{
"slot_id": null,
"label": "07:00 pm - 08:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695475800
},
{
"slot_id": null,
"label": "08:00 pm - 09:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695479400
},
{
"slot_id": null,
"label": "09:00 pm - 10:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695483000
}
],
"24092023": [
{
"slot_id": null,
"label": "5:00 am - 6:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695511800
},
{
"slot_id": null,
"label": "6:00 am - 7:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695515400
},
{
"slot_id": null,
"label": "7:00 am - 8:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695519000
},
{
"slot_id": null,
"label": "8:00 am - 9:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695522600
},
{
"slot_id": null,
"label": "9:00 am - 10:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695526200
},
{
"slot_id": null,
"label": "10:00 am - 11:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695529800
},
{
"slot_id": null,
"label": "11:00 am - 12:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695533400
},
{
"slot_id": null,
"label": "12:00 pm - 01:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695537000
},
{
"slot_id": null,
"label": "01:00 pm - 02:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695540600
},
{
"slot_id": null,
"label": "02:00 pm - 03:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695544200
},
{
"slot_id": null,
"label": "03:00 pm - 04:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695547800
},
{
"slot_id": null,
"label": "04:00 pm - 05:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695551400
},
{
"slot_id": null,
"label": "05:00 pm - 06:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695555000
},
{
"slot_id": null,
"label": "06:00 pm - 07:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695558600
},
{
"slot_id": null,
"label": "07:00 pm - 08:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695562200
},
{
"slot_id": null,
"label": "08:00 pm - 09:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695565800
},
{
"slot_id": null,
"label": "09:00 pm - 10:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695569400
}
],
"25092023": [
{
"slot_id": null,
"label": "5:00 am - 6:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695598200
},
{
"slot_id": null,
"label": "6:00 am - 7:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695601800
},
{
"slot_id": null,
"label": "7:00 am - 8:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695605400
},
{
"slot_id": null,
"label": "8:00 am - 9:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695609000
},
{
"slot_id": null,
"label": "9:00 am - 10:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695612600
},
{
"slot_id": null,
"label": "10:00 am - 11:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695616200
},
{
"slot_id": null,
"label": "11:00 am - 12:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695619800
},
{
"slot_id": null,
"label": "12:00 pm - 01:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695623400
},
{
"slot_id": null,
"label": "01:00 pm - 02:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695627000
},
{
"slot_id": null,
"label": "02:00 pm - 03:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695630600
},
{
"slot_id": null,
"label": "03:00 pm - 04:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695634200
},
{
"slot_id": null,
"label": "04:00 pm - 05:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695637800
},
{
"slot_id": null,
"label": "05:00 pm - 06:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695641400
},
{
"slot_id": null,
"label": "06:00 pm - 07:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695645000
},
{
"slot_id": null,
"label": "07:00 pm - 08:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695648600
},
{
"slot_id": null,
"label": "08:00 pm - 09:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695652200
},
{
"slot_id": null,
"label": "09:00 pm - 10:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695655800
}
],
"26092023": [
{
"slot_id": null,
"label": "5:00 am - 6:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695684600
},
{
"slot_id": null,
"label": "6:00 am - 7:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695688200
},
{
"slot_id": null,
"label": "7:00 am - 8:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695691800
},
{
"slot_id": null,
"label": "8:00 am - 9:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695695400
},
{
"slot_id": null,
"label": "9:00 am - 10:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695699000
},
{
"slot_id": null,
"label": "10:00 am - 11:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695702600
},
{
"slot_id": null,
"label": "11:00 am - 12:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695706200
},
{
"slot_id": null,
"label": "12:00 pm - 01:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695709800
},
{
"slot_id": null,
"label": "01:00 pm - 02:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695713400
},
{
"slot_id": null,
"label": "02:00 pm - 03:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695717000
},
{
"slot_id": null,
"label": "03:00 pm - 04:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695720600
},
{
"slot_id": null,
"label": "04:00 pm - 05:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695724200
},
{
"slot_id": null,
"label": "05:00 pm - 06:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695727800
},
{
"slot_id": null,
"label": "06:00 pm - 07:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695731400
},
{
"slot_id": null,
"label": "07:00 pm - 08:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695735000
},
{
"slot_id": null,
"label": "08:00 pm - 09:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695738600
},
{
"slot_id": null,
"label": "09:00 pm - 10:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695742200
}
],
"27092023": [
{
"slot_id": null,
"label": "5:00 am - 6:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695771000
},
{
"slot_id": null,
"label": "6:00 am - 7:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695774600
},
{
"slot_id": null,
"label": "7:00 am - 8:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695778200
},
{
"slot_id": null,
"label": "8:00 am - 9:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695781800
},
{
"slot_id": null,
"label": "9:00 am - 10:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695785400
},
{
"slot_id": null,
"label": "10:00 am - 11:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695789000
},
{
"slot_id": null,
"label": "11:00 am - 12:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695792600
},
{
"slot_id": null,
"label": "12:00 pm - 01:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695796200
},
{
"slot_id": null,
"label": "01:00 pm - 02:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695799800
},
{
"slot_id": null,
"label": "02:00 pm - 03:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695803400
},
{
"slot_id": null,
"label": "03:00 pm - 04:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695807000
},
{
"slot_id": null,
"label": "04:00 pm - 05:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695810600
},
{
"slot_id": null,
"label": "05:00 pm - 06:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695814200
},
{
"slot_id": null,
"label": "06:00 pm - 07:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695817800
},
{
"slot_id": null,
"label": "07:00 pm - 08:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695821400
},
{
"slot_id": null,
"label": "08:00 pm - 09:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695825000
},
{
"slot_id": null,
"label": "09:00 pm - 10:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695828600
}
],
"28092023": [
{
"slot_id": null,
"label": "5:00 am - 6:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695857400
},
{
"slot_id": null,
"label": "6:00 am - 7:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695861000
},
{
"slot_id": null,
"label": "7:00 am - 8:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695864600
},
{
"slot_id": null,
"label": "8:00 am - 9:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695868200
},
{
"slot_id": null,
"label": "9:00 am - 10:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695871800
},
{
"slot_id": null,
"label": "10:00 am - 11:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695875400
},
{
"slot_id": null,
"label": "11:00 am - 12:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695879000
},
{
"slot_id": null,
"label": "12:00 pm - 01:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695882600
},
{
"slot_id": null,
"label": "01:00 pm - 02:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695886200
},
{
"slot_id": null,
"label": "02:00 pm - 03:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695889800
},
{
"slot_id": null,
"label": "03:00 pm - 04:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695893400
},
{
"slot_id": null,
"label": "04:00 pm - 05:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695897000
},
{
"slot_id": null,
"label": "05:00 pm - 06:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695900600
},
{
"slot_id": null,
"label": "06:00 pm - 07:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695904200
},
{
"slot_id": null,
"label": "07:00 pm - 08:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695907800
},
{
"slot_id": null,
"label": "08:00 pm - 09:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695911400
},
{
"slot_id": null,
"label": "09:00 pm - 10:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695915000
}
],
"29092023": [
{
"slot_id": null,
"label": "5:00 am - 6:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695943800
},
{
"slot_id": null,
"label": "6:00 am - 7:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695947400
},
{
"slot_id": null,
"label": "7:00 am - 8:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695951000
},
{
"slot_id": null,
"label": "8:00 am - 9:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695954600
},
{
"slot_id": null,
"label": "9:00 am - 10:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695958200
},
{
"slot_id": null,
"label": "10:00 am - 11:00 am",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695961800
},
{
"slot_id": null,
"label": "11:00 am - 12:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695965400
},
{
"slot_id": null,
"label": "12:00 pm - 01:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695969000
},
{
"slot_id": null,
"label": "01:00 pm - 02:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695972600
},
{
"slot_id": null,
"label": "02:00 pm - 03:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695976200
},
{
"slot_id": null,
"label": "03:00 pm - 04:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695979800
},
{
"slot_id": null,
"label": "04:00 pm - 05:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695983400
},
{
"slot_id": null,
"label": "05:00 pm - 06:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695987000
},
{
"slot_id": null,
"label": "06:00 pm - 07:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695990600
},
{
"slot_id": null,
"label": "07:00 pm - 08:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695994200
},
{
"slot_id": null,
"label": "08:00 pm - 09:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1695997800
},
{
"slot_id": null,
"label": "09:00 pm - 10:00 pm",
"charge": 0,
"is_selected": false,
"epoch_slot": 1696001400
}
]
},
"time_slot_difference": 60,
"premium_vas": []
},
"partial_complete": false,
"is_success": true,
"status_code": 200
}
Loading...