Consultation¶
2 endpoint(s).
| Endpoint | Method | Summary | Auth |
|---|---|---|---|
/api/v1/consult/booking/{order_id} |
GET |
Booking status by order id | |
/api/v1/consult/slots |
GET |
Available consultation slots |
GET /api/v1/consult/booking/{order_id}¶
Booking status by order id
Look up a confirmed booking by Razorpay order id (for the confirmation page).
| Param | In | Type | Required | Description |
|---|---|---|---|---|
order_id |
path | string | yes |
Response 200 — VedicApiResponse
Example
curl -X GET 'https://api.example.com/api/v1/consult/booking/${order_id}' \
-H 'Authorization: Bearer <API_KEY>'
GET /api/v1/consult/slots¶
Available consultation slots
Open appointment slots for the next days, fitting a duration-minute call.
| Param | In | Type | Required | Description |
|---|---|---|---|---|
duration |
query | integer | no | |
days |
query | integer | no |
Response 200 — VedicApiResponse
Example
curl -X GET 'https://api.example.com/api/v1/consult/slots' \
-H 'Authorization: Bearer <API_KEY>'