City Serviceable API:
This API basically tells us about the serviceability of our services(like pharmacy and OTC) in that city.
Query Parameters
- city stringExample: Noida
Header Parameters
- X-Access-Key string
Default value:
1mg_client_access_key
Responses
- 200
- 400
OK
Response Headers
Date string
Content-Type string
Transfer-Encoding string
Connection string
Vary string
X-Request-ID string
VISITOR-ID string
X-VISITOR-ID string
Server string
Access-Control-Allow-Methods string
Access-Control-Allow-Headers string
Access-Control-Allow-Origin string
Content-Encoding string
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"data": {
"serviceable": true,
"otc_available": true,
"pharma_available": true,
"city": "New Delhi"
},
"status_code": 200
}
Bad Request
Response Headers
Date string
Content-Type string
Content-Length integer
Connection string
X-Request-ID string
VISITOR-ID string
X-VISITOR-ID string
Server string
Access-Control-Allow-Methods string
Access-Control-Allow-Headers string
Access-Control-Allow-Origin string
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"is_success": false,
"status_code": 400,
"error": {
"message": "Invalid request",
"errors": [
{
"message": "Invalid request"
}
]
}
}
Loading...