curl --request POST \
--url https://{partner_host}/registered_url_for_ipd_admissions_events_events \
--header 'Content-Type: application/json' \
--data '
{
"service": "ipd",
"event": "ipd_admissions_events.created",
"event_time": 1782811749,
"timestamp": 1782811749,
"business_id": "7175620245483777",
"data": {
"id": "93cfa0eb-f9af-4391-afd7-7f8409e45c22",
"kind": "CLEARANCE",
"at": "2026-06-30 09:29:02.364000+00:00",
"by": {
"id": "175620245502842",
"name": "Dr Imtiyaz m,"
},
"clearance_type": "pharmacy",
"to": "COMPLETED"
},
"transaction_id": "93cfa0eb-f9af-4391-afd7-7f8409e45c22",
"client_id": "EC_1777984421469"
}
'import requests
url = "https://{partner_host}/registered_url_for_ipd_admissions_events_events"
payload = {
"service": "ipd",
"event": "ipd_admissions_events.created",
"event_time": 1782811749,
"timestamp": 1782811749,
"business_id": "7175620245483777",
"data": {
"id": "93cfa0eb-f9af-4391-afd7-7f8409e45c22",
"kind": "CLEARANCE",
"at": "2026-06-30 09:29:02.364000+00:00",
"by": {
"id": "175620245502842",
"name": "Dr Imtiyaz m,"
},
"clearance_type": "pharmacy",
"to": "COMPLETED"
},
"transaction_id": "93cfa0eb-f9af-4391-afd7-7f8409e45c22",
"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_events.created',
event_time: 1782811749,
timestamp: 1782811749,
business_id: '7175620245483777',
data: {
id: '93cfa0eb-f9af-4391-afd7-7f8409e45c22',
kind: 'CLEARANCE',
at: '2026-06-30 09:29:02.364000+00:00',
by: {id: '175620245502842', name: 'Dr Imtiyaz m,'},
clearance_type: 'pharmacy',
to: 'COMPLETED'
},
transaction_id: '93cfa0eb-f9af-4391-afd7-7f8409e45c22',
client_id: 'EC_1777984421469'
})
};
fetch('https://{partner_host}/registered_url_for_ipd_admissions_events_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_events")
.header("Content-Type", "application/json")
.body("{\n \"service\": \"ipd\",\n \"event\": \"ipd_admissions_events.created\",\n \"event_time\": 1782811749,\n \"timestamp\": 1782811749,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"id\": \"93cfa0eb-f9af-4391-afd7-7f8409e45c22\",\n \"kind\": \"CLEARANCE\",\n \"at\": \"2026-06-30 09:29:02.364000+00:00\",\n \"by\": {\n \"id\": \"175620245502842\",\n \"name\": \"Dr Imtiyaz m,\"\n },\n \"clearance_type\": \"pharmacy\",\n \"to\": \"COMPLETED\"\n },\n \"transaction_id\": \"93cfa0eb-f9af-4391-afd7-7f8409e45c22\",\n \"client_id\": \"EC_1777984421469\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://{partner_host}/registered_url_for_ipd_admissions_events_events");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"service\": \"ipd\",\n \"event\": \"ipd_admissions_events.created\",\n \"event_time\": 1782811749,\n \"timestamp\": 1782811749,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"id\": \"93cfa0eb-f9af-4391-afd7-7f8409e45c22\",\n \"kind\": \"CLEARANCE\",\n \"at\": \"2026-06-30 09:29:02.364000+00:00\",\n \"by\": {\n \"id\": \"175620245502842\",\n \"name\": \"Dr Imtiyaz m,\"\n },\n \"clearance_type\": \"pharmacy\",\n \"to\": \"COMPLETED\"\n },\n \"transaction_id\": \"93cfa0eb-f9af-4391-afd7-7f8409e45c22\",\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_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_events.created\",\n \"event_time\": 1782811749,\n \"timestamp\": 1782811749,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"id\": \"93cfa0eb-f9af-4391-afd7-7f8409e45c22\",\n \"kind\": \"CLEARANCE\",\n \"at\": \"2026-06-30 09:29:02.364000+00:00\",\n \"by\": {\n \"id\": \"175620245502842\",\n \"name\": \"Dr Imtiyaz m,\"\n },\n \"clearance_type\": \"pharmacy\",\n \"to\": \"COMPLETED\"\n },\n \"transaction_id\": \"93cfa0eb-f9af-4391-afd7-7f8409e45c22\",\n \"client_id\": \"EC_1777984421469\"\n}"
response = http.request(request)
puts response.read_bodyIPD Admission Event
When an event occurs against an IPD admission (such as a clearance, stage change or other workflow action), a webhook event is sent to registered webhooks describing the action that was performed.
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_events.created or ipd_admissions_events.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 admission event.
• kind: string - The kind of event (e.g. CLEARANCE).
• by: object - The actor who performed the action.
• to: string - The resulting state of the action (e.g. COMPLETED).
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_events \
--header 'Content-Type: application/json' \
--data '
{
"service": "ipd",
"event": "ipd_admissions_events.created",
"event_time": 1782811749,
"timestamp": 1782811749,
"business_id": "7175620245483777",
"data": {
"id": "93cfa0eb-f9af-4391-afd7-7f8409e45c22",
"kind": "CLEARANCE",
"at": "2026-06-30 09:29:02.364000+00:00",
"by": {
"id": "175620245502842",
"name": "Dr Imtiyaz m,"
},
"clearance_type": "pharmacy",
"to": "COMPLETED"
},
"transaction_id": "93cfa0eb-f9af-4391-afd7-7f8409e45c22",
"client_id": "EC_1777984421469"
}
'import requests
url = "https://{partner_host}/registered_url_for_ipd_admissions_events_events"
payload = {
"service": "ipd",
"event": "ipd_admissions_events.created",
"event_time": 1782811749,
"timestamp": 1782811749,
"business_id": "7175620245483777",
"data": {
"id": "93cfa0eb-f9af-4391-afd7-7f8409e45c22",
"kind": "CLEARANCE",
"at": "2026-06-30 09:29:02.364000+00:00",
"by": {
"id": "175620245502842",
"name": "Dr Imtiyaz m,"
},
"clearance_type": "pharmacy",
"to": "COMPLETED"
},
"transaction_id": "93cfa0eb-f9af-4391-afd7-7f8409e45c22",
"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_events.created',
event_time: 1782811749,
timestamp: 1782811749,
business_id: '7175620245483777',
data: {
id: '93cfa0eb-f9af-4391-afd7-7f8409e45c22',
kind: 'CLEARANCE',
at: '2026-06-30 09:29:02.364000+00:00',
by: {id: '175620245502842', name: 'Dr Imtiyaz m,'},
clearance_type: 'pharmacy',
to: 'COMPLETED'
},
transaction_id: '93cfa0eb-f9af-4391-afd7-7f8409e45c22',
client_id: 'EC_1777984421469'
})
};
fetch('https://{partner_host}/registered_url_for_ipd_admissions_events_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_events")
.header("Content-Type", "application/json")
.body("{\n \"service\": \"ipd\",\n \"event\": \"ipd_admissions_events.created\",\n \"event_time\": 1782811749,\n \"timestamp\": 1782811749,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"id\": \"93cfa0eb-f9af-4391-afd7-7f8409e45c22\",\n \"kind\": \"CLEARANCE\",\n \"at\": \"2026-06-30 09:29:02.364000+00:00\",\n \"by\": {\n \"id\": \"175620245502842\",\n \"name\": \"Dr Imtiyaz m,\"\n },\n \"clearance_type\": \"pharmacy\",\n \"to\": \"COMPLETED\"\n },\n \"transaction_id\": \"93cfa0eb-f9af-4391-afd7-7f8409e45c22\",\n \"client_id\": \"EC_1777984421469\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://{partner_host}/registered_url_for_ipd_admissions_events_events");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"service\": \"ipd\",\n \"event\": \"ipd_admissions_events.created\",\n \"event_time\": 1782811749,\n \"timestamp\": 1782811749,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"id\": \"93cfa0eb-f9af-4391-afd7-7f8409e45c22\",\n \"kind\": \"CLEARANCE\",\n \"at\": \"2026-06-30 09:29:02.364000+00:00\",\n \"by\": {\n \"id\": \"175620245502842\",\n \"name\": \"Dr Imtiyaz m,\"\n },\n \"clearance_type\": \"pharmacy\",\n \"to\": \"COMPLETED\"\n },\n \"transaction_id\": \"93cfa0eb-f9af-4391-afd7-7f8409e45c22\",\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_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_events.created\",\n \"event_time\": 1782811749,\n \"timestamp\": 1782811749,\n \"business_id\": \"7175620245483777\",\n \"data\": {\n \"id\": \"93cfa0eb-f9af-4391-afd7-7f8409e45c22\",\n \"kind\": \"CLEARANCE\",\n \"at\": \"2026-06-30 09:29:02.364000+00:00\",\n \"by\": {\n \"id\": \"175620245502842\",\n \"name\": \"Dr Imtiyaz m,\"\n },\n \"clearance_type\": \"pharmacy\",\n \"to\": \"COMPLETED\"\n },\n \"transaction_id\": \"93cfa0eb-f9af-4391-afd7-7f8409e45c22\",\n \"client_id\": \"EC_1777984421469\"\n}"
response = http.request(request)
puts response.read_bodyBody
Response
Was this page helpful?

