curl --request POST \
--url https://{partner_host}/registered_url_for_ipd_admissions_events \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"service": "ipd",
"event": "ipd_admissions.created",
"event_time": 1782804321,
"timestamp": 1782804321,
"business_id": "7175620245483777",
"data": {
"docid": "175620245502842",
"facilityid": "68ad85d786ddd9001d409348",
"id": "a9f54d1a-4080-4eec-9db1-ccbfc1771a5d",
"ipid": "IPD84",
"pid": "177805765470391",
"stage": "AD",
"status": "BED_ASSIGNED",
"actor_oid": "175620245502842",
"admission_date": "2026-06-30 07:24:21.985000+00:00",
"attendee": {
"id": "attendee-id",
"name": "Sachin New",
"phone": {
"c": "+91",
"n": "8765434565"
},
"relation": {
"id": "sm-1034094231",
"label": "Father"
}
},
"bed": "6a42477e282b241a943db696",
"bid": "7175620245483777",
"category": {
"id": "68e7622e24b43838dd2e7af2",
"name": "VIP"
},
"created_at": "2026-06-30 07:25:18.779000+00:00",
"custom_attributes": {},
"date": "2026-06-30 07:24:21.985000+00:00",
"department": {
"id": "surgery",
"name": "Surgery"
},
"doc": {
"id": "175620245502842",
"name": "Imtiyaz's m,"
},
"duration": {
"unit": "days",
"value": 5
},
"facility": {
"id": "68ad85d786ddd9001d409348",
"name": "Imtiyaz"
},
"insurance": {
"coverage_type": [
"ipd"
],
"payment_type": "cash",
"pre_approved": false,
"pre_approved_amount": 0,
"type": "None"
},
"medico_legal_case": false,
"patient": {
"formData": [],
"id": "177805765470391",
"poid": "",
"profile": {
"personal": {
"age": {
"dob": "2004-05-06T00:00:00.000Z"
},
"gender": "Male",
"name": "sachin Jaiswal",
"phone": {
"c": "+91",
"n": "9131157898"
}
}
},
"uuid": "CS-7175620245483777-177805765470391"
},
"procedures": [],
"rateplan": {
"id": "698b01130bc0d53ade702618",
"inclusions": [
{
"id": "698b0147996ddf4a5dff7790",
"name": "Operation Charge, OT Charges, Nursing Charges, ICU Charges, Room Rent, Misc.",
"rate": 50000
}
],
"name": "Full Treatment Package - ₹50000"
},
"refer": {
"id": "",
"name": ""
},
"totalbilled": 0,
"totalbilled_updated_at": "2026-06-30 07:25:18.779000+00:00",
"totalpaid": 0,
"totalpaid_updated_at": "2026-06-30 07:25:18.779000+00:00",
"updated_at": "2026-06-30 07:25:18.779000+00:00"
},
"transaction_id": "a9f54d1a-4080-4eec-9db1-ccbfc1771a5d",
"client_id": "EC_1777984421469"
}
EOFimport requests
url = "https://{partner_host}/registered_url_for_ipd_admissions_events"
payload = {
"service": "ipd",
"event": "ipd_admissions.created",
"event_time": 1782804321,
"timestamp": 1782804321,
"business_id": "7175620245483777",
"data": {
"docid": "175620245502842",
"facilityid": "68ad85d786ddd9001d409348",
"id": "a9f54d1a-4080-4eec-9db1-ccbfc1771a5d",
"ipid": "IPD84",
"pid": "177805765470391",
"stage": "AD",
"status": "BED_ASSIGNED",
"actor_oid": "175620245502842",
"admission_date": "2026-06-30 07:24:21.985000+00:00",
"attendee": {
"id": "attendee-id",
"name": "Sachin New",
"phone": {
"c": "+91",
"n": "8765434565"
},
"relation": {
"id": "sm-1034094231",
"label": "Father"
}
},
"bed": "6a42477e282b241a943db696",
"bid": "7175620245483777",
"category": {
"id": "68e7622e24b43838dd2e7af2",
"name": "VIP"
},
"created_at": "2026-06-30 07:25:18.779000+00:00",
"custom_attributes": {},
"date": "2026-06-30 07:24:21.985000+00:00",
"department": {
"id": "surgery",
"name": "Surgery"
},
"doc": {
"id": "175620245502842",
"name": "Imtiyaz's m,"
},
"duration": {
"unit": "days",
"value": 5
},
"facility": {
"id": "68ad85d786ddd9001d409348",
"name": "Imtiyaz"
},
"insurance": {
"coverage_type": ["ipd"],
"payment_type": "cash",
"pre_approved": False,
"pre_approved_amount": 0,
"type": "None"
},
"medico_legal_case": False,
"patient": {
"formData": [],
"id": "177805765470391",
"poid": "",
"profile": { "personal": {
"age": { "dob": "2004-05-06T00:00:00.000Z" },
"gender": "Male",
"name": "sachin Jaiswal",
"phone": {
"c": "+91",
"n": "9131157898"
}
} },
"uuid": "CS-7175620245483777-177805765470391"
},
"procedures": [],
"rateplan": {
"id": "698b01130bc0d53ade702618",
"inclusions": [
{
"id": "698b0147996ddf4a5dff7790",
"name": "Operation Charge, OT Charges, Nursing Charges, ICU Charges, Room Rent, Misc.",
"rate": 50000
}
],
"name": "Full Treatment Package - ₹50000"
},
"refer": {
"id": "",
"name": ""
},
"totalbilled": 0,
"totalbilled_updated_at": "2026-06-30 07:25:18.779000+00:00",
"totalpaid": 0,
"totalpaid_updated_at": "2026-06-30 07:25:18.779000+00:00",
"updated_at": "2026-06-30 07:25:18.779000+00:00"
},
"transaction_id": "a9f54d1a-4080-4eec-9db1-ccbfc1771a5d",
"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.created',
event_time: 1782804321,
timestamp: 1782804321,
business_id: '7175620245483777',
data: {
docid: '175620245502842',
facilityid: '68ad85d786ddd9001d409348',
id: 'a9f54d1a-4080-4eec-9db1-ccbfc1771a5d',
ipid: 'IPD84',
pid: '177805765470391',
stage: 'AD',
status: 'BED_ASSIGNED',
actor_oid: '175620245502842',
admission_date: '2026-06-30 07:24:21.985000+00:00',
attendee: {
id: 'attendee-id',
name: 'Sachin New',
phone: {c: '+91', n: '8765434565'},
relation: {id: 'sm-1034094231', label: 'Father'}
},
bed: '6a42477e282b241a943db696',
bid: '7175620245483777',
category: {id: '68e7622e24b43838dd2e7af2', name: 'VIP'},
created_at: '2026-06-30 07:25:18.779000+00:00',
custom_attributes: {},
date: '2026-06-30 07:24:21.985000+00:00',
department: {id: 'surgery', name: 'Surgery'},
doc: {id: '175620245502842', name: 'Imtiyaz\'s m,'},
duration: {unit: 'days', value: 5},
facility: {id: '68ad85d786ddd9001d409348', name: 'Imtiyaz'},
insurance: {
coverage_type: ['ipd'],
payment_type: 'cash',
pre_approved: false,
pre_approved_amount: 0,
type: 'None'
},
medico_legal_case: false,
patient: {
formData: [],
id: '177805765470391',
poid: '',
profile: {
personal: {
age: {dob: '2004-05-06T00:00:00.000Z'},
gender: 'Male',
name: 'sachin Jaiswal',
phone: {c: '+91', n: '9131157898'}
}
},
uuid: 'CS-7175620245483777-177805765470391'
},
procedures: [],
rateplan: {
id: '698b01130bc0d53ade702618',
inclusions: [
{
id: '698b0147996ddf4a5dff7790',
name: 'Operation Charge, OT Charges, Nursing Charges, ICU Charges, Room Rent, Misc.',
rate: 50000
}
],
name: 'Full Treatment Package - ₹50000'
},
refer: {id: '', name: ''},
totalbilled: 0,
totalbilled_updated_at: '2026-06-30 07:25:18.779000+00:00',
totalpaid: 0,
totalpaid_updated_at: '2026-06-30 07:25:18.779000+00:00',
updated_at: '2026-06-30 07:25:18.779000+00:00'
},
transaction_id: 'a9f54d1a-4080-4eec-9db1-ccbfc1771a5d',
client_id: 'EC_1777984421469'
})
};
fetch('https://{partner_host}/registered_url_for_ipd_admissions_events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://{partner_host}/registered_url_for_ipd_admissions_events")
.header("Content-Type", "application/json")
.body("{\n \"service\": \"ipd\",\n \"event\": \"ipd_admissions.created\",\n \"event_time\": 1782804321,\n \"timestamp\": 1782804321,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"docid\": \"175620245502842\",\n \"facilityid\": \"68ad85d786ddd9001d409348\",\n \"id\": \"a9f54d1a-4080-4eec-9db1-ccbfc1771a5d\",\n \"ipid\": \"IPD84\",\n \"pid\": \"177805765470391\",\n \"stage\": \"AD\",\n \"status\": \"BED_ASSIGNED\",\n \"actor_oid\": \"175620245502842\",\n \"admission_date\": \"2026-06-30 07:24:21.985000+00:00\",\n \"attendee\": {\n \"id\": \"attendee-id\",\n \"name\": \"Sachin New\",\n \"phone\": {\n \"c\": \"+91\",\n \"n\": \"8765434565\"\n },\n \"relation\": {\n \"id\": \"sm-1034094231\",\n \"label\": \"Father\"\n }\n },\n \"bed\": \"6a42477e282b241a943db696\",\n \"bid\": \"7175620245483777\",\n \"category\": {\n \"id\": \"68e7622e24b43838dd2e7af2\",\n \"name\": \"VIP\"\n },\n \"created_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"custom_attributes\": {},\n \"date\": \"2026-06-30 07:24:21.985000+00:00\",\n \"department\": {\n \"id\": \"surgery\",\n \"name\": \"Surgery\"\n },\n \"doc\": {\n \"id\": \"175620245502842\",\n \"name\": \"Imtiyaz's m,\"\n },\n \"duration\": {\n \"unit\": \"days\",\n \"value\": 5\n },\n \"facility\": {\n \"id\": \"68ad85d786ddd9001d409348\",\n \"name\": \"Imtiyaz\"\n },\n \"insurance\": {\n \"coverage_type\": [\n \"ipd\"\n ],\n \"payment_type\": \"cash\",\n \"pre_approved\": false,\n \"pre_approved_amount\": 0,\n \"type\": \"None\"\n },\n \"medico_legal_case\": false,\n \"patient\": {\n \"formData\": [],\n \"id\": \"177805765470391\",\n \"poid\": \"\",\n \"profile\": {\n \"personal\": {\n \"age\": {\n \"dob\": \"2004-05-06T00:00:00.000Z\"\n },\n \"gender\": \"Male\",\n \"name\": \"sachin Jaiswal\",\n \"phone\": {\n \"c\": \"+91\",\n \"n\": \"9131157898\"\n }\n }\n },\n \"uuid\": \"CS-7175620245483777-177805765470391\"\n },\n \"procedures\": [],\n \"rateplan\": {\n \"id\": \"698b01130bc0d53ade702618\",\n \"inclusions\": [\n {\n \"id\": \"698b0147996ddf4a5dff7790\",\n \"name\": \"Operation Charge, OT Charges, Nursing Charges, ICU Charges, Room Rent, Misc.\",\n \"rate\": 50000\n }\n ],\n \"name\": \"Full Treatment Package - ₹50000\"\n },\n \"refer\": {\n \"id\": \"\",\n \"name\": \"\"\n },\n \"totalbilled\": 0,\n \"totalbilled_updated_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"totalpaid\": 0,\n \"totalpaid_updated_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"updated_at\": \"2026-06-30 07:25:18.779000+00:00\"\n },\n \"transaction_id\": \"a9f54d1a-4080-4eec-9db1-ccbfc1771a5d\",\n \"client_id\": \"EC_1777984421469\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://{partner_host}/registered_url_for_ipd_admissions_events");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"service\": \"ipd\",\n \"event\": \"ipd_admissions.created\",\n \"event_time\": 1782804321,\n \"timestamp\": 1782804321,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"docid\": \"175620245502842\",\n \"facilityid\": \"68ad85d786ddd9001d409348\",\n \"id\": \"a9f54d1a-4080-4eec-9db1-ccbfc1771a5d\",\n \"ipid\": \"IPD84\",\n \"pid\": \"177805765470391\",\n \"stage\": \"AD\",\n \"status\": \"BED_ASSIGNED\",\n \"actor_oid\": \"175620245502842\",\n \"admission_date\": \"2026-06-30 07:24:21.985000+00:00\",\n \"attendee\": {\n \"id\": \"attendee-id\",\n \"name\": \"Sachin New\",\n \"phone\": {\n \"c\": \"+91\",\n \"n\": \"8765434565\"\n },\n \"relation\": {\n \"id\": \"sm-1034094231\",\n \"label\": \"Father\"\n }\n },\n \"bed\": \"6a42477e282b241a943db696\",\n \"bid\": \"7175620245483777\",\n \"category\": {\n \"id\": \"68e7622e24b43838dd2e7af2\",\n \"name\": \"VIP\"\n },\n \"created_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"custom_attributes\": {},\n \"date\": \"2026-06-30 07:24:21.985000+00:00\",\n \"department\": {\n \"id\": \"surgery\",\n \"name\": \"Surgery\"\n },\n \"doc\": {\n \"id\": \"175620245502842\",\n \"name\": \"Imtiyaz's m,\"\n },\n \"duration\": {\n \"unit\": \"days\",\n \"value\": 5\n },\n \"facility\": {\n \"id\": \"68ad85d786ddd9001d409348\",\n \"name\": \"Imtiyaz\"\n },\n \"insurance\": {\n \"coverage_type\": [\n \"ipd\"\n ],\n \"payment_type\": \"cash\",\n \"pre_approved\": false,\n \"pre_approved_amount\": 0,\n \"type\": \"None\"\n },\n \"medico_legal_case\": false,\n \"patient\": {\n \"formData\": [],\n \"id\": \"177805765470391\",\n \"poid\": \"\",\n \"profile\": {\n \"personal\": {\n \"age\": {\n \"dob\": \"2004-05-06T00:00:00.000Z\"\n },\n \"gender\": \"Male\",\n \"name\": \"sachin Jaiswal\",\n \"phone\": {\n \"c\": \"+91\",\n \"n\": \"9131157898\"\n }\n }\n },\n \"uuid\": \"CS-7175620245483777-177805765470391\"\n },\n \"procedures\": [],\n \"rateplan\": {\n \"id\": \"698b01130bc0d53ade702618\",\n \"inclusions\": [\n {\n \"id\": \"698b0147996ddf4a5dff7790\",\n \"name\": \"Operation Charge, OT Charges, Nursing Charges, ICU Charges, Room Rent, Misc.\",\n \"rate\": 50000\n }\n ],\n \"name\": \"Full Treatment Package - ₹50000\"\n },\n \"refer\": {\n \"id\": \"\",\n \"name\": \"\"\n },\n \"totalbilled\": 0,\n \"totalbilled_updated_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"totalpaid\": 0,\n \"totalpaid_updated_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"updated_at\": \"2026-06-30 07:25:18.779000+00:00\"\n },\n \"transaction_id\": \"a9f54d1a-4080-4eec-9db1-ccbfc1771a5d\",\n \"client_id\": \"EC_1777984421469\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://{partner_host}/registered_url_for_ipd_admissions_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.created\",\n \"event_time\": 1782804321,\n \"timestamp\": 1782804321,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"docid\": \"175620245502842\",\n \"facilityid\": \"68ad85d786ddd9001d409348\",\n \"id\": \"a9f54d1a-4080-4eec-9db1-ccbfc1771a5d\",\n \"ipid\": \"IPD84\",\n \"pid\": \"177805765470391\",\n \"stage\": \"AD\",\n \"status\": \"BED_ASSIGNED\",\n \"actor_oid\": \"175620245502842\",\n \"admission_date\": \"2026-06-30 07:24:21.985000+00:00\",\n \"attendee\": {\n \"id\": \"attendee-id\",\n \"name\": \"Sachin New\",\n \"phone\": {\n \"c\": \"+91\",\n \"n\": \"8765434565\"\n },\n \"relation\": {\n \"id\": \"sm-1034094231\",\n \"label\": \"Father\"\n }\n },\n \"bed\": \"6a42477e282b241a943db696\",\n \"bid\": \"7175620245483777\",\n \"category\": {\n \"id\": \"68e7622e24b43838dd2e7af2\",\n \"name\": \"VIP\"\n },\n \"created_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"custom_attributes\": {},\n \"date\": \"2026-06-30 07:24:21.985000+00:00\",\n \"department\": {\n \"id\": \"surgery\",\n \"name\": \"Surgery\"\n },\n \"doc\": {\n \"id\": \"175620245502842\",\n \"name\": \"Imtiyaz's m,\"\n },\n \"duration\": {\n \"unit\": \"days\",\n \"value\": 5\n },\n \"facility\": {\n \"id\": \"68ad85d786ddd9001d409348\",\n \"name\": \"Imtiyaz\"\n },\n \"insurance\": {\n \"coverage_type\": [\n \"ipd\"\n ],\n \"payment_type\": \"cash\",\n \"pre_approved\": false,\n \"pre_approved_amount\": 0,\n \"type\": \"None\"\n },\n \"medico_legal_case\": false,\n \"patient\": {\n \"formData\": [],\n \"id\": \"177805765470391\",\n \"poid\": \"\",\n \"profile\": {\n \"personal\": {\n \"age\": {\n \"dob\": \"2004-05-06T00:00:00.000Z\"\n },\n \"gender\": \"Male\",\n \"name\": \"sachin Jaiswal\",\n \"phone\": {\n \"c\": \"+91\",\n \"n\": \"9131157898\"\n }\n }\n },\n \"uuid\": \"CS-7175620245483777-177805765470391\"\n },\n \"procedures\": [],\n \"rateplan\": {\n \"id\": \"698b01130bc0d53ade702618\",\n \"inclusions\": [\n {\n \"id\": \"698b0147996ddf4a5dff7790\",\n \"name\": \"Operation Charge, OT Charges, Nursing Charges, ICU Charges, Room Rent, Misc.\",\n \"rate\": 50000\n }\n ],\n \"name\": \"Full Treatment Package - ₹50000\"\n },\n \"refer\": {\n \"id\": \"\",\n \"name\": \"\"\n },\n \"totalbilled\": 0,\n \"totalbilled_updated_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"totalpaid\": 0,\n \"totalpaid_updated_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"updated_at\": \"2026-06-30 07:25:18.779000+00:00\"\n },\n \"transaction_id\": \"a9f54d1a-4080-4eec-9db1-ccbfc1771a5d\",\n \"client_id\": \"EC_1777984421469\"\n}"
response = http.request(request)
puts response.read_bodyIPD Admission
When an IPD (In-Patient Department) admission is created or updated, a webhook event is sent to registered webhooks with the full admission details, including the patient, attending doctor, facility, department, bed, category, rate plan, insurance and billing information.
Field Definitions
• service: string - The type of service. For IPD events, this will be ipd.
• event: string - The type of event. For admissions, this will be ipd_admissions.created or ipd_admissions.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 detailed information about the admission.
• id / ipid: string - Unique identifiers for the admission.
• stage / status: string - Current stage and status of the admission (e.g. AD, BED_ASSIGNED).
• patient / doc / attendee: object - Patient, attending doctor and attendee details.
• facility / department / bed / category: Location and allocation details for the admission.
• rateplan / insurance / totalbilled / totalpaid: Billing, package and insurance details.
Example Webhook Request
Endpoint: https://your-registered-webhook-url.com
Method: POST
curl --request POST \
--url https://{partner_host}/registered_url_for_ipd_admissions_events \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"service": "ipd",
"event": "ipd_admissions.created",
"event_time": 1782804321,
"timestamp": 1782804321,
"business_id": "7175620245483777",
"data": {
"docid": "175620245502842",
"facilityid": "68ad85d786ddd9001d409348",
"id": "a9f54d1a-4080-4eec-9db1-ccbfc1771a5d",
"ipid": "IPD84",
"pid": "177805765470391",
"stage": "AD",
"status": "BED_ASSIGNED",
"actor_oid": "175620245502842",
"admission_date": "2026-06-30 07:24:21.985000+00:00",
"attendee": {
"id": "attendee-id",
"name": "Sachin New",
"phone": {
"c": "+91",
"n": "8765434565"
},
"relation": {
"id": "sm-1034094231",
"label": "Father"
}
},
"bed": "6a42477e282b241a943db696",
"bid": "7175620245483777",
"category": {
"id": "68e7622e24b43838dd2e7af2",
"name": "VIP"
},
"created_at": "2026-06-30 07:25:18.779000+00:00",
"custom_attributes": {},
"date": "2026-06-30 07:24:21.985000+00:00",
"department": {
"id": "surgery",
"name": "Surgery"
},
"doc": {
"id": "175620245502842",
"name": "Imtiyaz's m,"
},
"duration": {
"unit": "days",
"value": 5
},
"facility": {
"id": "68ad85d786ddd9001d409348",
"name": "Imtiyaz"
},
"insurance": {
"coverage_type": [
"ipd"
],
"payment_type": "cash",
"pre_approved": false,
"pre_approved_amount": 0,
"type": "None"
},
"medico_legal_case": false,
"patient": {
"formData": [],
"id": "177805765470391",
"poid": "",
"profile": {
"personal": {
"age": {
"dob": "2004-05-06T00:00:00.000Z"
},
"gender": "Male",
"name": "sachin Jaiswal",
"phone": {
"c": "+91",
"n": "9131157898"
}
}
},
"uuid": "CS-7175620245483777-177805765470391"
},
"procedures": [],
"rateplan": {
"id": "698b01130bc0d53ade702618",
"inclusions": [
{
"id": "698b0147996ddf4a5dff7790",
"name": "Operation Charge, OT Charges, Nursing Charges, ICU Charges, Room Rent, Misc.",
"rate": 50000
}
],
"name": "Full Treatment Package - ₹50000"
},
"refer": {
"id": "",
"name": ""
},
"totalbilled": 0,
"totalbilled_updated_at": "2026-06-30 07:25:18.779000+00:00",
"totalpaid": 0,
"totalpaid_updated_at": "2026-06-30 07:25:18.779000+00:00",
"updated_at": "2026-06-30 07:25:18.779000+00:00"
},
"transaction_id": "a9f54d1a-4080-4eec-9db1-ccbfc1771a5d",
"client_id": "EC_1777984421469"
}
EOFimport requests
url = "https://{partner_host}/registered_url_for_ipd_admissions_events"
payload = {
"service": "ipd",
"event": "ipd_admissions.created",
"event_time": 1782804321,
"timestamp": 1782804321,
"business_id": "7175620245483777",
"data": {
"docid": "175620245502842",
"facilityid": "68ad85d786ddd9001d409348",
"id": "a9f54d1a-4080-4eec-9db1-ccbfc1771a5d",
"ipid": "IPD84",
"pid": "177805765470391",
"stage": "AD",
"status": "BED_ASSIGNED",
"actor_oid": "175620245502842",
"admission_date": "2026-06-30 07:24:21.985000+00:00",
"attendee": {
"id": "attendee-id",
"name": "Sachin New",
"phone": {
"c": "+91",
"n": "8765434565"
},
"relation": {
"id": "sm-1034094231",
"label": "Father"
}
},
"bed": "6a42477e282b241a943db696",
"bid": "7175620245483777",
"category": {
"id": "68e7622e24b43838dd2e7af2",
"name": "VIP"
},
"created_at": "2026-06-30 07:25:18.779000+00:00",
"custom_attributes": {},
"date": "2026-06-30 07:24:21.985000+00:00",
"department": {
"id": "surgery",
"name": "Surgery"
},
"doc": {
"id": "175620245502842",
"name": "Imtiyaz's m,"
},
"duration": {
"unit": "days",
"value": 5
},
"facility": {
"id": "68ad85d786ddd9001d409348",
"name": "Imtiyaz"
},
"insurance": {
"coverage_type": ["ipd"],
"payment_type": "cash",
"pre_approved": False,
"pre_approved_amount": 0,
"type": "None"
},
"medico_legal_case": False,
"patient": {
"formData": [],
"id": "177805765470391",
"poid": "",
"profile": { "personal": {
"age": { "dob": "2004-05-06T00:00:00.000Z" },
"gender": "Male",
"name": "sachin Jaiswal",
"phone": {
"c": "+91",
"n": "9131157898"
}
} },
"uuid": "CS-7175620245483777-177805765470391"
},
"procedures": [],
"rateplan": {
"id": "698b01130bc0d53ade702618",
"inclusions": [
{
"id": "698b0147996ddf4a5dff7790",
"name": "Operation Charge, OT Charges, Nursing Charges, ICU Charges, Room Rent, Misc.",
"rate": 50000
}
],
"name": "Full Treatment Package - ₹50000"
},
"refer": {
"id": "",
"name": ""
},
"totalbilled": 0,
"totalbilled_updated_at": "2026-06-30 07:25:18.779000+00:00",
"totalpaid": 0,
"totalpaid_updated_at": "2026-06-30 07:25:18.779000+00:00",
"updated_at": "2026-06-30 07:25:18.779000+00:00"
},
"transaction_id": "a9f54d1a-4080-4eec-9db1-ccbfc1771a5d",
"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.created',
event_time: 1782804321,
timestamp: 1782804321,
business_id: '7175620245483777',
data: {
docid: '175620245502842',
facilityid: '68ad85d786ddd9001d409348',
id: 'a9f54d1a-4080-4eec-9db1-ccbfc1771a5d',
ipid: 'IPD84',
pid: '177805765470391',
stage: 'AD',
status: 'BED_ASSIGNED',
actor_oid: '175620245502842',
admission_date: '2026-06-30 07:24:21.985000+00:00',
attendee: {
id: 'attendee-id',
name: 'Sachin New',
phone: {c: '+91', n: '8765434565'},
relation: {id: 'sm-1034094231', label: 'Father'}
},
bed: '6a42477e282b241a943db696',
bid: '7175620245483777',
category: {id: '68e7622e24b43838dd2e7af2', name: 'VIP'},
created_at: '2026-06-30 07:25:18.779000+00:00',
custom_attributes: {},
date: '2026-06-30 07:24:21.985000+00:00',
department: {id: 'surgery', name: 'Surgery'},
doc: {id: '175620245502842', name: 'Imtiyaz\'s m,'},
duration: {unit: 'days', value: 5},
facility: {id: '68ad85d786ddd9001d409348', name: 'Imtiyaz'},
insurance: {
coverage_type: ['ipd'],
payment_type: 'cash',
pre_approved: false,
pre_approved_amount: 0,
type: 'None'
},
medico_legal_case: false,
patient: {
formData: [],
id: '177805765470391',
poid: '',
profile: {
personal: {
age: {dob: '2004-05-06T00:00:00.000Z'},
gender: 'Male',
name: 'sachin Jaiswal',
phone: {c: '+91', n: '9131157898'}
}
},
uuid: 'CS-7175620245483777-177805765470391'
},
procedures: [],
rateplan: {
id: '698b01130bc0d53ade702618',
inclusions: [
{
id: '698b0147996ddf4a5dff7790',
name: 'Operation Charge, OT Charges, Nursing Charges, ICU Charges, Room Rent, Misc.',
rate: 50000
}
],
name: 'Full Treatment Package - ₹50000'
},
refer: {id: '', name: ''},
totalbilled: 0,
totalbilled_updated_at: '2026-06-30 07:25:18.779000+00:00',
totalpaid: 0,
totalpaid_updated_at: '2026-06-30 07:25:18.779000+00:00',
updated_at: '2026-06-30 07:25:18.779000+00:00'
},
transaction_id: 'a9f54d1a-4080-4eec-9db1-ccbfc1771a5d',
client_id: 'EC_1777984421469'
})
};
fetch('https://{partner_host}/registered_url_for_ipd_admissions_events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://{partner_host}/registered_url_for_ipd_admissions_events")
.header("Content-Type", "application/json")
.body("{\n \"service\": \"ipd\",\n \"event\": \"ipd_admissions.created\",\n \"event_time\": 1782804321,\n \"timestamp\": 1782804321,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"docid\": \"175620245502842\",\n \"facilityid\": \"68ad85d786ddd9001d409348\",\n \"id\": \"a9f54d1a-4080-4eec-9db1-ccbfc1771a5d\",\n \"ipid\": \"IPD84\",\n \"pid\": \"177805765470391\",\n \"stage\": \"AD\",\n \"status\": \"BED_ASSIGNED\",\n \"actor_oid\": \"175620245502842\",\n \"admission_date\": \"2026-06-30 07:24:21.985000+00:00\",\n \"attendee\": {\n \"id\": \"attendee-id\",\n \"name\": \"Sachin New\",\n \"phone\": {\n \"c\": \"+91\",\n \"n\": \"8765434565\"\n },\n \"relation\": {\n \"id\": \"sm-1034094231\",\n \"label\": \"Father\"\n }\n },\n \"bed\": \"6a42477e282b241a943db696\",\n \"bid\": \"7175620245483777\",\n \"category\": {\n \"id\": \"68e7622e24b43838dd2e7af2\",\n \"name\": \"VIP\"\n },\n \"created_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"custom_attributes\": {},\n \"date\": \"2026-06-30 07:24:21.985000+00:00\",\n \"department\": {\n \"id\": \"surgery\",\n \"name\": \"Surgery\"\n },\n \"doc\": {\n \"id\": \"175620245502842\",\n \"name\": \"Imtiyaz's m,\"\n },\n \"duration\": {\n \"unit\": \"days\",\n \"value\": 5\n },\n \"facility\": {\n \"id\": \"68ad85d786ddd9001d409348\",\n \"name\": \"Imtiyaz\"\n },\n \"insurance\": {\n \"coverage_type\": [\n \"ipd\"\n ],\n \"payment_type\": \"cash\",\n \"pre_approved\": false,\n \"pre_approved_amount\": 0,\n \"type\": \"None\"\n },\n \"medico_legal_case\": false,\n \"patient\": {\n \"formData\": [],\n \"id\": \"177805765470391\",\n \"poid\": \"\",\n \"profile\": {\n \"personal\": {\n \"age\": {\n \"dob\": \"2004-05-06T00:00:00.000Z\"\n },\n \"gender\": \"Male\",\n \"name\": \"sachin Jaiswal\",\n \"phone\": {\n \"c\": \"+91\",\n \"n\": \"9131157898\"\n }\n }\n },\n \"uuid\": \"CS-7175620245483777-177805765470391\"\n },\n \"procedures\": [],\n \"rateplan\": {\n \"id\": \"698b01130bc0d53ade702618\",\n \"inclusions\": [\n {\n \"id\": \"698b0147996ddf4a5dff7790\",\n \"name\": \"Operation Charge, OT Charges, Nursing Charges, ICU Charges, Room Rent, Misc.\",\n \"rate\": 50000\n }\n ],\n \"name\": \"Full Treatment Package - ₹50000\"\n },\n \"refer\": {\n \"id\": \"\",\n \"name\": \"\"\n },\n \"totalbilled\": 0,\n \"totalbilled_updated_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"totalpaid\": 0,\n \"totalpaid_updated_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"updated_at\": \"2026-06-30 07:25:18.779000+00:00\"\n },\n \"transaction_id\": \"a9f54d1a-4080-4eec-9db1-ccbfc1771a5d\",\n \"client_id\": \"EC_1777984421469\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://{partner_host}/registered_url_for_ipd_admissions_events");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"service\": \"ipd\",\n \"event\": \"ipd_admissions.created\",\n \"event_time\": 1782804321,\n \"timestamp\": 1782804321,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"docid\": \"175620245502842\",\n \"facilityid\": \"68ad85d786ddd9001d409348\",\n \"id\": \"a9f54d1a-4080-4eec-9db1-ccbfc1771a5d\",\n \"ipid\": \"IPD84\",\n \"pid\": \"177805765470391\",\n \"stage\": \"AD\",\n \"status\": \"BED_ASSIGNED\",\n \"actor_oid\": \"175620245502842\",\n \"admission_date\": \"2026-06-30 07:24:21.985000+00:00\",\n \"attendee\": {\n \"id\": \"attendee-id\",\n \"name\": \"Sachin New\",\n \"phone\": {\n \"c\": \"+91\",\n \"n\": \"8765434565\"\n },\n \"relation\": {\n \"id\": \"sm-1034094231\",\n \"label\": \"Father\"\n }\n },\n \"bed\": \"6a42477e282b241a943db696\",\n \"bid\": \"7175620245483777\",\n \"category\": {\n \"id\": \"68e7622e24b43838dd2e7af2\",\n \"name\": \"VIP\"\n },\n \"created_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"custom_attributes\": {},\n \"date\": \"2026-06-30 07:24:21.985000+00:00\",\n \"department\": {\n \"id\": \"surgery\",\n \"name\": \"Surgery\"\n },\n \"doc\": {\n \"id\": \"175620245502842\",\n \"name\": \"Imtiyaz's m,\"\n },\n \"duration\": {\n \"unit\": \"days\",\n \"value\": 5\n },\n \"facility\": {\n \"id\": \"68ad85d786ddd9001d409348\",\n \"name\": \"Imtiyaz\"\n },\n \"insurance\": {\n \"coverage_type\": [\n \"ipd\"\n ],\n \"payment_type\": \"cash\",\n \"pre_approved\": false,\n \"pre_approved_amount\": 0,\n \"type\": \"None\"\n },\n \"medico_legal_case\": false,\n \"patient\": {\n \"formData\": [],\n \"id\": \"177805765470391\",\n \"poid\": \"\",\n \"profile\": {\n \"personal\": {\n \"age\": {\n \"dob\": \"2004-05-06T00:00:00.000Z\"\n },\n \"gender\": \"Male\",\n \"name\": \"sachin Jaiswal\",\n \"phone\": {\n \"c\": \"+91\",\n \"n\": \"9131157898\"\n }\n }\n },\n \"uuid\": \"CS-7175620245483777-177805765470391\"\n },\n \"procedures\": [],\n \"rateplan\": {\n \"id\": \"698b01130bc0d53ade702618\",\n \"inclusions\": [\n {\n \"id\": \"698b0147996ddf4a5dff7790\",\n \"name\": \"Operation Charge, OT Charges, Nursing Charges, ICU Charges, Room Rent, Misc.\",\n \"rate\": 50000\n }\n ],\n \"name\": \"Full Treatment Package - ₹50000\"\n },\n \"refer\": {\n \"id\": \"\",\n \"name\": \"\"\n },\n \"totalbilled\": 0,\n \"totalbilled_updated_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"totalpaid\": 0,\n \"totalpaid_updated_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"updated_at\": \"2026-06-30 07:25:18.779000+00:00\"\n },\n \"transaction_id\": \"a9f54d1a-4080-4eec-9db1-ccbfc1771a5d\",\n \"client_id\": \"EC_1777984421469\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://{partner_host}/registered_url_for_ipd_admissions_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.created\",\n \"event_time\": 1782804321,\n \"timestamp\": 1782804321,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"docid\": \"175620245502842\",\n \"facilityid\": \"68ad85d786ddd9001d409348\",\n \"id\": \"a9f54d1a-4080-4eec-9db1-ccbfc1771a5d\",\n \"ipid\": \"IPD84\",\n \"pid\": \"177805765470391\",\n \"stage\": \"AD\",\n \"status\": \"BED_ASSIGNED\",\n \"actor_oid\": \"175620245502842\",\n \"admission_date\": \"2026-06-30 07:24:21.985000+00:00\",\n \"attendee\": {\n \"id\": \"attendee-id\",\n \"name\": \"Sachin New\",\n \"phone\": {\n \"c\": \"+91\",\n \"n\": \"8765434565\"\n },\n \"relation\": {\n \"id\": \"sm-1034094231\",\n \"label\": \"Father\"\n }\n },\n \"bed\": \"6a42477e282b241a943db696\",\n \"bid\": \"7175620245483777\",\n \"category\": {\n \"id\": \"68e7622e24b43838dd2e7af2\",\n \"name\": \"VIP\"\n },\n \"created_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"custom_attributes\": {},\n \"date\": \"2026-06-30 07:24:21.985000+00:00\",\n \"department\": {\n \"id\": \"surgery\",\n \"name\": \"Surgery\"\n },\n \"doc\": {\n \"id\": \"175620245502842\",\n \"name\": \"Imtiyaz's m,\"\n },\n \"duration\": {\n \"unit\": \"days\",\n \"value\": 5\n },\n \"facility\": {\n \"id\": \"68ad85d786ddd9001d409348\",\n \"name\": \"Imtiyaz\"\n },\n \"insurance\": {\n \"coverage_type\": [\n \"ipd\"\n ],\n \"payment_type\": \"cash\",\n \"pre_approved\": false,\n \"pre_approved_amount\": 0,\n \"type\": \"None\"\n },\n \"medico_legal_case\": false,\n \"patient\": {\n \"formData\": [],\n \"id\": \"177805765470391\",\n \"poid\": \"\",\n \"profile\": {\n \"personal\": {\n \"age\": {\n \"dob\": \"2004-05-06T00:00:00.000Z\"\n },\n \"gender\": \"Male\",\n \"name\": \"sachin Jaiswal\",\n \"phone\": {\n \"c\": \"+91\",\n \"n\": \"9131157898\"\n }\n }\n },\n \"uuid\": \"CS-7175620245483777-177805765470391\"\n },\n \"procedures\": [],\n \"rateplan\": {\n \"id\": \"698b01130bc0d53ade702618\",\n \"inclusions\": [\n {\n \"id\": \"698b0147996ddf4a5dff7790\",\n \"name\": \"Operation Charge, OT Charges, Nursing Charges, ICU Charges, Room Rent, Misc.\",\n \"rate\": 50000\n }\n ],\n \"name\": \"Full Treatment Package - ₹50000\"\n },\n \"refer\": {\n \"id\": \"\",\n \"name\": \"\"\n },\n \"totalbilled\": 0,\n \"totalbilled_updated_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"totalpaid\": 0,\n \"totalpaid_updated_at\": \"2026-06-30 07:25:18.779000+00:00\",\n \"updated_at\": \"2026-06-30 07:25:18.779000+00:00\"\n },\n \"transaction_id\": \"a9f54d1a-4080-4eec-9db1-ccbfc1771a5d\",\n \"client_id\": \"EC_1777984421469\"\n}"
response = http.request(request)
puts response.read_bodyBody
Response
Was this page helpful?

