Get Admission Estimate
curl --request GET \
--url https://api.eka.care/ipd/v1/service/admissions/{admission_id}/estimate \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/v1/service/admissions/{admission_id}/estimate"
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/admissions/{admission_id}/estimate', 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/admissions/{admission_id}/estimate",
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/admissions/{admission_id}/estimate"
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/admissions/{admission_id}/estimate")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/v1/service/admissions/{admission_id}/estimate")
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": {
"totalBilled": 7545,
"totalPaid": 5000,
"items": [
{
"id": "66f1c6f0e4b0a1b2c3d4e904",
"name": "Standard ICU/night",
"rate": 2500,
"quantity": 3,
"date": "2026-10-05T10:30:00.000Z"
},
{
"name": "Pharmacy order",
"rate": 45,
"quantity": 1
}
],
"receipts": [
{
"receipt_id": 90210,
"receipt_url": "https://example.com/receipts/90210.pdf",
"net_amount": 5000,
"created_at": "2026-10-05T11:00:00.000Z",
"remarks": "Advance",
"aid": "visit-12345"
}
]
}
}{
"success": false,
"error": "Admission not found"
}{
"message": "<string>"
}Admissions
Get Admission Estimate
Overview
This API returns the bill estimate of an IPD admission of your workspace: the estimate lines, the billing totals, and the receipts of the admission’s visits.
The first item is always the rate plan line: its rate is the sum of the rate plan’s inclusions (per night), quantity is the admission duration (or 1), and name is <rate plan name>/night. When the admission has no rate plan, this line is a placeholder with rate and quantity of 0 and name of -. The remaining items are the admission’s estimate lines.
Estimate line ids are not included in this response.
Returns 400 with Admission not found when the admission does not exist in your workspace.
GET
/
ipd
/
v1
/
service
/
admissions
/
{admission_id}
/
estimate
Get Admission Estimate
curl --request GET \
--url https://api.eka.care/ipd/v1/service/admissions/{admission_id}/estimate \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/ipd/v1/service/admissions/{admission_id}/estimate"
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/admissions/{admission_id}/estimate', 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/admissions/{admission_id}/estimate",
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/admissions/{admission_id}/estimate"
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/admissions/{admission_id}/estimate")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/ipd/v1/service/admissions/{admission_id}/estimate")
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": {
"totalBilled": 7545,
"totalPaid": 5000,
"items": [
{
"id": "66f1c6f0e4b0a1b2c3d4e904",
"name": "Standard ICU/night",
"rate": 2500,
"quantity": 3,
"date": "2026-10-05T10:30:00.000Z"
},
{
"name": "Pharmacy order",
"rate": 45,
"quantity": 1
}
],
"receipts": [
{
"receipt_id": 90210,
"receipt_url": "https://example.com/receipts/90210.pdf",
"net_amount": 5000,
"created_at": "2026-10-05T11:00:00.000Z",
"remarks": "Advance",
"aid": "visit-12345"
}
]
}
}{
"success": false,
"error": "Admission not found"
}{
"message": "<string>"
}Was this page helpful?

