Skip to main content

Check Inventory Availability

This api checks whether the inventory is available for a given city.

If page_number and page_size are not provided, by default, api will return first 30 inventory items in the response.

Various filters like path_search_lab_id, radio_search_lab_id, popular_flag, popular_test_size, pathology_sort_by, radiology_sort_by can be also provided in query params. We can provide values in the query params for the fields - pathology_test[], radiology_test[] and lab[]

This is a paginated api, so the page_number and page_size in the query params accordingly.

The api returns pathology tests, radiology tests and popular tests

Query Parameters
  • city string

    (Required) City Name

    Example: gurgaon
  • pathology_test[] integer

    (Optional) Pathology test id

    Example: 1717
  • radiology_test[] integer

    (Optional) Radiology test id

    Example: 1
  • page_size integer

    (Optional) Page Size

    Example: 1
  • page_number integer

    (Optional) Page Number

    Example: 0
Header Parameters
  • Content-Type string
    Example: application/json
  • x-access-key string
    Example: 1mg_client_public_access_key
  • X-Authorization string
    Example: {{X-Authorization}}
Responses

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

Schema
  • object
Loading...