curl --request GET \
--url https://api.eka.care/ipd/v1/service/dawakhana/orders \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/v1/service/dawakhana/orders"
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/dawakhana/orders', 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/dawakhana/orders",
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/dawakhana/orders"
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/dawakhana/orders")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/v1/service/dawakhana/orders")
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": "CREATED",
"createdBy": "161467756044203",
"createdByName": "Vivek Sharma",
"isCollected": false,
"provider": "dawakhana",
"patientName": "Ravi Kumar",
"createdAt": "2026-10-07T12:10:00.000Z",
"updatedAt": "2026-10-07T12:10:00.000Z",
"lines": [
{
"id": "66f1cd07e4b0a1b2c3d4ef0b",
"medicineId": "med-paracetamol-500",
"name": "Paracetamol 500mg Tablet",
"genericName": "Paracetamol",
"orderedQty": 10,
"directions": "1 tablet every 6 hours",
"lineStatus": "PENDING"
}
]
}
]
}{
"success": false,
"error": "Invalid \"from\" date: yesterday"
}{
"message": "<string>"
}List Dawakhana Orders
Overview
This API lists the in-house pharmacy (Dawakhana) orders of your workspace, newest first, each with its order lines. It is the pharmacist’s work list: lines carry the ordered quantity and, once dispatched, the fulfilled quantity and rate.
All filters are optional:
status— repeat the parameter to match several statuses (for examplestatus=RETURNED&status=PARTIALLY_RETURNED).from/to— creation date range, as an ISO-8601 date or epoch milliseconds. Ignored whenadmissionIdis set, so all orders of an admission are returned regardless of date.
Results are paged with limit (default 50) and skip (default 0).
curl --request GET \
--url https://api.eka.care/ipd/v1/service/dawakhana/orders \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/v1/service/dawakhana/orders"
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/dawakhana/orders', 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/dawakhana/orders",
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/dawakhana/orders"
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/dawakhana/orders")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/v1/service/dawakhana/orders")
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": "CREATED",
"createdBy": "161467756044203",
"createdByName": "Vivek Sharma",
"isCollected": false,
"provider": "dawakhana",
"patientName": "Ravi Kumar",
"createdAt": "2026-10-07T12:10:00.000Z",
"updatedAt": "2026-10-07T12:10:00.000Z",
"lines": [
{
"id": "66f1cd07e4b0a1b2c3d4ef0b",
"medicineId": "med-paracetamol-500",
"name": "Paracetamol 500mg Tablet",
"genericName": "Paracetamol",
"orderedQty": 10,
"directions": "1 tablet every 6 hours",
"lineStatus": "PENDING"
}
]
}
]
}{
"success": false,
"error": "Invalid \"from\" date: yesterday"
}{
"message": "<string>"
}Headers
Query Parameters
Only orders in these statuses. Repeat the parameter for more than one.
CREATED, DISPATCHED, CANCELLED, RETURNED, PARTIALLY_RETURNED Only orders created on or after this time (ISO-8601 date or epoch milliseconds). Ignored with admissionId.
Only orders created on or before this time (ISO-8601 date or epoch milliseconds). Ignored with admissionId.
Only orders of this IPD admission (all dates).
Maximum number of orders to return. Defaults to 50.
Number of orders to skip (for paging). Defaults to 0.
Was this page helpful?

