Fetch Order Details
This api is used to fetch order details for an order group id. Order group id is passed as a path param in the path. For example, here the order group id is SO3277723609-878
Order group id is generated in the response of Create booking api, in the key data[0]._order_group_id
If multiple bookings are created in the same api, they will have the same Order group id
Header Parameters
- Content-Type stringExample: application/json
- x-access-key stringExample: 1mg_client_public_access_key
- X-Authorization stringExample: {{X-Authorization}}
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": {
"order_id": "SO3277723609-878",
"phelbo_out_for_collection": null,
"phone_no": "8920856405",
"user_paid": null,
"merchant_paid": null,
"patient": {
"id": null,
"name": "Tony Stark",
"age": 30,
"gender": "male",
"mobile_number": "8920856405"
},
"email": "[email protected]",
"category": "PATHOLOGY",
"super_order_id": "SO3277723609-878",
"address": {
"pincode": null,
"city": "GURGAON",
"state": "DL",
"landmark": null,
"street": "5 TARAK DUTTA ROAD, 1ST FLOOR, BESIDE KARAYA POLICE STATION",
"street1": null,
"street2": null,
"locality": null,
"city_id": null
},
"reports": null,
"bookings": [
{
"referral": "EXAMPLE_VENDOR_API",
"reports": null,
"delivery_time": null,
"create_time": "09-22-2023, 04:16:13",
"cancel_time": null,
"reporting_tat": 24,
"status": "booked",
"cancel_reason": null,
"coupon_code": null,
"is_cancellable": true,
"sample_collection_time": "07-23-2024 16:12:53",
"test": {
"name": "Complete Haemogram",
"id": 1743
},
"id": "SB1548599800-273"
}
],
"lab": {
"name": "Tata 1mg Labs (Tata 1mg Technologies Private Limited)",
"id": 95
}
},
"partial_complete": false,
"is_success": true,
"status_code": 200
}
Loading...