curl --request POST \
--url https://{partner_host}/registered_url_for_ipd_admissions_estimates_events \
--header 'Content-Type: application/json' \
--data '
{
"service": "ipd",
"event": "ipd_admissions_estimates.created",
"event_time": 1782812696,
"timestamp": 1782812696,
"business_id": "7175620245483777",
"data": {
"id": "8c2c435c-fa95-4556-9d6e-400ea2f2433d",
"name": "test",
"service_id": "2961-500-7175620245483777-68ad85d786ddd9001d409348",
"added_by": "175620245502842",
"created_at": "2026-06-30 09:44:49.434000+00:00",
"date": "2026-06-30 09:44:48.238000+00:00",
"discount": {
"category": "percentage",
"value": 0
},
"quantity": 1,
"rate": 500,
"remarks": "",
"updated_at": "2026-06-30 09:44:49.434000+00:00"
},
"transaction_id": "8c2c435c-fa95-4556-9d6e-400ea2f2433d",
"client_id": "EC_1777984421469"
}
'import requests
url = "https://{partner_host}/registered_url_for_ipd_admissions_estimates_events"
payload = {
"service": "ipd",
"event": "ipd_admissions_estimates.created",
"event_time": 1782812696,
"timestamp": 1782812696,
"business_id": "7175620245483777",
"data": {
"id": "8c2c435c-fa95-4556-9d6e-400ea2f2433d",
"name": "test",
"service_id": "2961-500-7175620245483777-68ad85d786ddd9001d409348",
"added_by": "175620245502842",
"created_at": "2026-06-30 09:44:49.434000+00:00",
"date": "2026-06-30 09:44:48.238000+00:00",
"discount": {
"category": "percentage",
"value": 0
},
"quantity": 1,
"rate": 500,
"remarks": "",
"updated_at": "2026-06-30 09:44:49.434000+00:00"
},
"transaction_id": "8c2c435c-fa95-4556-9d6e-400ea2f2433d",
"client_id": "EC_1777984421469"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
service: 'ipd',
event: 'ipd_admissions_estimates.created',
event_time: 1782812696,
timestamp: 1782812696,
business_id: '7175620245483777',
data: {
id: '8c2c435c-fa95-4556-9d6e-400ea2f2433d',
name: 'test',
service_id: '2961-500-7175620245483777-68ad85d786ddd9001d409348',
added_by: '175620245502842',
created_at: '2026-06-30 09:44:49.434000+00:00',
date: '2026-06-30 09:44:48.238000+00:00',
discount: {category: 'percentage', value: 0},
quantity: 1,
rate: 500,
remarks: '',
updated_at: '2026-06-30 09:44:49.434000+00:00'
},
transaction_id: '8c2c435c-fa95-4556-9d6e-400ea2f2433d',
client_id: 'EC_1777984421469'
})
};
fetch('https://{partner_host}/registered_url_for_ipd_admissions_estimates_events', 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://{partner_host}/registered_url_for_ipd_admissions_estimates_events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'service' => 'ipd',
'event' => 'ipd_admissions_estimates.created',
'event_time' => 1782812696,
'timestamp' => 1782812696,
'business_id' => '7175620245483777',
'data' => [
'id' => '8c2c435c-fa95-4556-9d6e-400ea2f2433d',
'name' => 'test',
'service_id' => '2961-500-7175620245483777-68ad85d786ddd9001d409348',
'added_by' => '175620245502842',
'created_at' => '2026-06-30 09:44:49.434000+00:00',
'date' => '2026-06-30 09:44:48.238000+00:00',
'discount' => [
'category' => 'percentage',
'value' => 0
],
'quantity' => 1,
'rate' => 500,
'remarks' => '',
'updated_at' => '2026-06-30 09:44:49.434000+00:00'
],
'transaction_id' => '8c2c435c-fa95-4556-9d6e-400ea2f2433d',
'client_id' => 'EC_1777984421469'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{partner_host}/registered_url_for_ipd_admissions_estimates_events"
payload := strings.NewReader("{\n \"service\": \"ipd\",\n \"event\": \"ipd_admissions_estimates.created\",\n \"event_time\": 1782812696,\n \"timestamp\": 1782812696,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"id\": \"8c2c435c-fa95-4556-9d6e-400ea2f2433d\",\n \"name\": \"test\",\n \"service_id\": \"2961-500-7175620245483777-68ad85d786ddd9001d409348\",\n \"added_by\": \"175620245502842\",\n \"created_at\": \"2026-06-30 09:44:49.434000+00:00\",\n \"date\": \"2026-06-30 09:44:48.238000+00:00\",\n \"discount\": {\n \"category\": \"percentage\",\n \"value\": 0\n },\n \"quantity\": 1,\n \"rate\": 500,\n \"remarks\": \"\",\n \"updated_at\": \"2026-06-30 09:44:49.434000+00:00\"\n },\n \"transaction_id\": \"8c2c435c-fa95-4556-9d6e-400ea2f2433d\",\n \"client_id\": \"EC_1777984421469\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{partner_host}/registered_url_for_ipd_admissions_estimates_events")
.header("Content-Type", "application/json")
.body("{\n \"service\": \"ipd\",\n \"event\": \"ipd_admissions_estimates.created\",\n \"event_time\": 1782812696,\n \"timestamp\": 1782812696,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"id\": \"8c2c435c-fa95-4556-9d6e-400ea2f2433d\",\n \"name\": \"test\",\n \"service_id\": \"2961-500-7175620245483777-68ad85d786ddd9001d409348\",\n \"added_by\": \"175620245502842\",\n \"created_at\": \"2026-06-30 09:44:49.434000+00:00\",\n \"date\": \"2026-06-30 09:44:48.238000+00:00\",\n \"discount\": {\n \"category\": \"percentage\",\n \"value\": 0\n },\n \"quantity\": 1,\n \"rate\": 500,\n \"remarks\": \"\",\n \"updated_at\": \"2026-06-30 09:44:49.434000+00:00\"\n },\n \"transaction_id\": \"8c2c435c-fa95-4556-9d6e-400ea2f2433d\",\n \"client_id\": \"EC_1777984421469\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{partner_host}/registered_url_for_ipd_admissions_estimates_events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"service\": \"ipd\",\n \"event\": \"ipd_admissions_estimates.created\",\n \"event_time\": 1782812696,\n \"timestamp\": 1782812696,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"id\": \"8c2c435c-fa95-4556-9d6e-400ea2f2433d\",\n \"name\": \"test\",\n \"service_id\": \"2961-500-7175620245483777-68ad85d786ddd9001d409348\",\n \"added_by\": \"175620245502842\",\n \"created_at\": \"2026-06-30 09:44:49.434000+00:00\",\n \"date\": \"2026-06-30 09:44:48.238000+00:00\",\n \"discount\": {\n \"category\": \"percentage\",\n \"value\": 0\n },\n \"quantity\": 1,\n \"rate\": 500,\n \"remarks\": \"\",\n \"updated_at\": \"2026-06-30 09:44:49.434000+00:00\"\n },\n \"transaction_id\": \"8c2c435c-fa95-4556-9d6e-400ea2f2433d\",\n \"client_id\": \"EC_1777984421469\"\n}"
response = http.request(request)
puts response.read_bodyIPD Admission Estimate
When a cost estimate line item is created or updated against an IPD admission, a webhook event is sent to registered webhooks with the estimate details, including the service, rate, quantity and any discount applied.
Field Definitions
• service: string - The type of service. For IPD events, this will be ipd.
• event: string - The type of event. This will be ipd_admissions_estimates.created or ipd_admissions_estimates.updated.
• event_time: integer - Event occurrence timestamp (epoch seconds).
• transaction_id: string - Unique transaction identifier for the event.
• timestamp: integer - Timestamp of the event (epoch seconds).
• business_id: string - The eka ID of the business.
• client_id: string - Client ID associated with the event.
• data: object - Contains details about the estimate line item.
• name / service_id: The estimate item name and the service identifier it refers to.
• rate / quantity / discount: Pricing details for the estimate line item.
Example Webhook Request
Endpoint: https://your-registered-webhook-url.com
Method: POST
curl --request POST \
--url https://{partner_host}/registered_url_for_ipd_admissions_estimates_events \
--header 'Content-Type: application/json' \
--data '
{
"service": "ipd",
"event": "ipd_admissions_estimates.created",
"event_time": 1782812696,
"timestamp": 1782812696,
"business_id": "7175620245483777",
"data": {
"id": "8c2c435c-fa95-4556-9d6e-400ea2f2433d",
"name": "test",
"service_id": "2961-500-7175620245483777-68ad85d786ddd9001d409348",
"added_by": "175620245502842",
"created_at": "2026-06-30 09:44:49.434000+00:00",
"date": "2026-06-30 09:44:48.238000+00:00",
"discount": {
"category": "percentage",
"value": 0
},
"quantity": 1,
"rate": 500,
"remarks": "",
"updated_at": "2026-06-30 09:44:49.434000+00:00"
},
"transaction_id": "8c2c435c-fa95-4556-9d6e-400ea2f2433d",
"client_id": "EC_1777984421469"
}
'import requests
url = "https://{partner_host}/registered_url_for_ipd_admissions_estimates_events"
payload = {
"service": "ipd",
"event": "ipd_admissions_estimates.created",
"event_time": 1782812696,
"timestamp": 1782812696,
"business_id": "7175620245483777",
"data": {
"id": "8c2c435c-fa95-4556-9d6e-400ea2f2433d",
"name": "test",
"service_id": "2961-500-7175620245483777-68ad85d786ddd9001d409348",
"added_by": "175620245502842",
"created_at": "2026-06-30 09:44:49.434000+00:00",
"date": "2026-06-30 09:44:48.238000+00:00",
"discount": {
"category": "percentage",
"value": 0
},
"quantity": 1,
"rate": 500,
"remarks": "",
"updated_at": "2026-06-30 09:44:49.434000+00:00"
},
"transaction_id": "8c2c435c-fa95-4556-9d6e-400ea2f2433d",
"client_id": "EC_1777984421469"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
service: 'ipd',
event: 'ipd_admissions_estimates.created',
event_time: 1782812696,
timestamp: 1782812696,
business_id: '7175620245483777',
data: {
id: '8c2c435c-fa95-4556-9d6e-400ea2f2433d',
name: 'test',
service_id: '2961-500-7175620245483777-68ad85d786ddd9001d409348',
added_by: '175620245502842',
created_at: '2026-06-30 09:44:49.434000+00:00',
date: '2026-06-30 09:44:48.238000+00:00',
discount: {category: 'percentage', value: 0},
quantity: 1,
rate: 500,
remarks: '',
updated_at: '2026-06-30 09:44:49.434000+00:00'
},
transaction_id: '8c2c435c-fa95-4556-9d6e-400ea2f2433d',
client_id: 'EC_1777984421469'
})
};
fetch('https://{partner_host}/registered_url_for_ipd_admissions_estimates_events', 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://{partner_host}/registered_url_for_ipd_admissions_estimates_events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'service' => 'ipd',
'event' => 'ipd_admissions_estimates.created',
'event_time' => 1782812696,
'timestamp' => 1782812696,
'business_id' => '7175620245483777',
'data' => [
'id' => '8c2c435c-fa95-4556-9d6e-400ea2f2433d',
'name' => 'test',
'service_id' => '2961-500-7175620245483777-68ad85d786ddd9001d409348',
'added_by' => '175620245502842',
'created_at' => '2026-06-30 09:44:49.434000+00:00',
'date' => '2026-06-30 09:44:48.238000+00:00',
'discount' => [
'category' => 'percentage',
'value' => 0
],
'quantity' => 1,
'rate' => 500,
'remarks' => '',
'updated_at' => '2026-06-30 09:44:49.434000+00:00'
],
'transaction_id' => '8c2c435c-fa95-4556-9d6e-400ea2f2433d',
'client_id' => 'EC_1777984421469'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{partner_host}/registered_url_for_ipd_admissions_estimates_events"
payload := strings.NewReader("{\n \"service\": \"ipd\",\n \"event\": \"ipd_admissions_estimates.created\",\n \"event_time\": 1782812696,\n \"timestamp\": 1782812696,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"id\": \"8c2c435c-fa95-4556-9d6e-400ea2f2433d\",\n \"name\": \"test\",\n \"service_id\": \"2961-500-7175620245483777-68ad85d786ddd9001d409348\",\n \"added_by\": \"175620245502842\",\n \"created_at\": \"2026-06-30 09:44:49.434000+00:00\",\n \"date\": \"2026-06-30 09:44:48.238000+00:00\",\n \"discount\": {\n \"category\": \"percentage\",\n \"value\": 0\n },\n \"quantity\": 1,\n \"rate\": 500,\n \"remarks\": \"\",\n \"updated_at\": \"2026-06-30 09:44:49.434000+00:00\"\n },\n \"transaction_id\": \"8c2c435c-fa95-4556-9d6e-400ea2f2433d\",\n \"client_id\": \"EC_1777984421469\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{partner_host}/registered_url_for_ipd_admissions_estimates_events")
.header("Content-Type", "application/json")
.body("{\n \"service\": \"ipd\",\n \"event\": \"ipd_admissions_estimates.created\",\n \"event_time\": 1782812696,\n \"timestamp\": 1782812696,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"id\": \"8c2c435c-fa95-4556-9d6e-400ea2f2433d\",\n \"name\": \"test\",\n \"service_id\": \"2961-500-7175620245483777-68ad85d786ddd9001d409348\",\n \"added_by\": \"175620245502842\",\n \"created_at\": \"2026-06-30 09:44:49.434000+00:00\",\n \"date\": \"2026-06-30 09:44:48.238000+00:00\",\n \"discount\": {\n \"category\": \"percentage\",\n \"value\": 0\n },\n \"quantity\": 1,\n \"rate\": 500,\n \"remarks\": \"\",\n \"updated_at\": \"2026-06-30 09:44:49.434000+00:00\"\n },\n \"transaction_id\": \"8c2c435c-fa95-4556-9d6e-400ea2f2433d\",\n \"client_id\": \"EC_1777984421469\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{partner_host}/registered_url_for_ipd_admissions_estimates_events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"service\": \"ipd\",\n \"event\": \"ipd_admissions_estimates.created\",\n \"event_time\": 1782812696,\n \"timestamp\": 1782812696,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"id\": \"8c2c435c-fa95-4556-9d6e-400ea2f2433d\",\n \"name\": \"test\",\n \"service_id\": \"2961-500-7175620245483777-68ad85d786ddd9001d409348\",\n \"added_by\": \"175620245502842\",\n \"created_at\": \"2026-06-30 09:44:49.434000+00:00\",\n \"date\": \"2026-06-30 09:44:48.238000+00:00\",\n \"discount\": {\n \"category\": \"percentage\",\n \"value\": 0\n },\n \"quantity\": 1,\n \"rate\": 500,\n \"remarks\": \"\",\n \"updated_at\": \"2026-06-30 09:44:49.434000+00:00\"\n },\n \"transaction_id\": \"8c2c435c-fa95-4556-9d6e-400ea2f2433d\",\n \"client_id\": \"EC_1777984421469\"\n}"
response = http.request(request)
puts response.read_bodyBody
Type of service
"ipd"
Type of event
ipd_admissions_estimates.created, ipd_admissions_estimates.updated "ipd_admissions_estimates.created"
Event occurred timestamp
1782812696
Timestamp of the event
1782812696
Business ID for the admission
"7175620245483777"
Show child attributes
Show child attributes
Unique transaction identifier for the event
"8c2c435c-fa95-4556-9d6e-400ea2f2433d"
Client ID for the admission
"EC_1777984421469"
Response
Was this page helpful?

