Get Order
curl --request GET \
--url https://api.eka.care/ipd/v1/service/orders/{order_id} \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/v1/service/orders/{order_id}"
headers = {"auth": "<auth>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/ipd/v1/service/orders/{order_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eka.care/ipd/v1/service/orders/{order_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"auth: <auth>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eka.care/ipd/v1/service/orders/{order_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("auth", "<auth>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eka.care/ipd/v1/service/orders/{order_id}")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/v1/service/orders/{order_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "66f1cd07e4b0a1b2c3d4ef0a",
"admissionId": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"kind": "order",
"orderNumber": "DW-7Q2K9F3M",
"ipdId": "IPD-2026-0042",
"status": "DISPATCHED",
"createdBy": "161467756044203",
"createdByName": "Vivek Sharma",
"isCollected": false,
"provider": "dawakhana",
"patientName": "Ravi Kumar",
"billedTotal": 45,
"fulfilmentType": "FULL",
"dispatchedAt": "2026-10-07T12:40:00.000Z",
"createdAt": "2026-10-07T12:10:00.000Z",
"updatedAt": "2026-10-07T12:40:00.000Z",
"pharmacyName": "In-house Pharmacy",
"lineItems": [
{
"name": "Paracetamol 500mg Tablet",
"genericName": "Paracetamol",
"medicineId": "med-paracetamol-500",
"orderedQty": 10,
"fulfilledQty": 10,
"rate": 4.5,
"amount": 45,
"directions": "1 tablet every 6 hours",
"status": "FULFILLED"
}
],
"returns": []
}
}{
"success": true,
"error": "<string>"
}{
"message": "<string>"
}{
"success": false,
"error": "Order not found"
}Orders
Get Order
Overview
This API returns a single medicine order of your workspace with its full detail. On top of the fields returned by List Orders it includes:
lineItems— the ordered medicines, in the same shape for every provider (for eVital orders these are fetched live from eVital).pharmacyName— the name of the fulfilling pharmacy.returns— for an order (kind: order), the return orders placed against it.
For a return order (kind: return), lineItems lists the returned medicines.
Returns 404 with Order not found when the order_id does not exist or belongs to another workspace.
GET
/
ipd
/
v1
/
service
/
orders
/
{order_id}
Get Order
curl --request GET \
--url https://api.eka.care/ipd/v1/service/orders/{order_id} \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/v1/service/orders/{order_id}"
headers = {"auth": "<auth>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/ipd/v1/service/orders/{order_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eka.care/ipd/v1/service/orders/{order_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"auth: <auth>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eka.care/ipd/v1/service/orders/{order_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("auth", "<auth>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eka.care/ipd/v1/service/orders/{order_id}")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/v1/service/orders/{order_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "66f1cd07e4b0a1b2c3d4ef0a",
"admissionId": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"kind": "order",
"orderNumber": "DW-7Q2K9F3M",
"ipdId": "IPD-2026-0042",
"status": "DISPATCHED",
"createdBy": "161467756044203",
"createdByName": "Vivek Sharma",
"isCollected": false,
"provider": "dawakhana",
"patientName": "Ravi Kumar",
"billedTotal": 45,
"fulfilmentType": "FULL",
"dispatchedAt": "2026-10-07T12:40:00.000Z",
"createdAt": "2026-10-07T12:10:00.000Z",
"updatedAt": "2026-10-07T12:40:00.000Z",
"pharmacyName": "In-house Pharmacy",
"lineItems": [
{
"name": "Paracetamol 500mg Tablet",
"genericName": "Paracetamol",
"medicineId": "med-paracetamol-500",
"orderedQty": 10,
"fulfilledQty": 10,
"rate": 4.5,
"amount": 45,
"directions": "1 tablet every 6 hours",
"status": "FULFILLED"
}
],
"returns": []
}
}{
"success": true,
"error": "<string>"
}{
"message": "<string>"
}{
"success": false,
"error": "Order not found"
}Was this page helpful?

