curl --request POST \
--url https://api.eka.care/abdm/nhcx/v1/preauth/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"abha_number": "<string>",
"member_id": "<string>",
"payer_id": "<string>",
"request_type": "<string>",
"accident_info": {
"date": "2023-11-07T05:31:56Z",
"description": "<string>",
"type": "<string>"
},
"admission_type": "<string>",
"auth_type": "<string>",
"case_number": "<string>",
"clinical_notes": "<string>",
"consent": {
"answers": [
{
"answer": "<unknown>",
"link_id": "<string>",
"question": "<string>",
"questionnaire_url": "<string>"
}
],
"questionnaire_url": "<string>"
},
"diagnosis": [
{
"code": "<string>",
"display": "<string>",
"system": "<string>"
}
],
"documents": [
{
"content_type": "<string>",
"type": "<string>",
"content": "<string>",
"creation_date": "<string>",
"description": "<string>",
"title": "<string>",
"url": "<string>"
}
],
"estimated_amount": 123,
"hfr_facility_id": "<string>",
"hospital_address": "<string>",
"hospital_name": "<string>",
"items": [
{
"claim_amount": 123,
"procedure_code": "<string>",
"procedure_name": "<string>",
"quantity": 123,
"questionnaire_answers": [
{
"answer": "<unknown>",
"link_id": "<string>",
"question": "<string>",
"questionnaire_url": "<string>"
}
],
"speciality_code": "<string>",
"speciality_name": "<string>",
"strat_code": "<string>",
"strat_display": "<string>",
"supporting_docs": [
{
"content": "<string>",
"content_type": "<string>",
"creation": "<string>",
"doc_id": "<string>",
"mand_code": "<string>",
"title": "<string>",
"url": "<string>"
}
]
}
],
"participant_id": "<string>",
"planned_end_date": "2023-11-07T05:31:56Z",
"planned_start_date": "2023-11-07T05:31:56Z",
"priority": "<string>",
"procedure_codes": [
"<string>"
],
"product_id": "<string>",
"product_name": "<string>",
"provider_id": "<string>",
"provider_name": "<string>",
"remarks": "<string>",
"service_breakdown": [
{
"service_code": "<string>",
"description": "<string>",
"net_amount": 123,
"quantity": 123,
"unit_price": 123
}
],
"service_codes": [
"<string>"
],
"user_token": "<string>"
}
'import requests
url = "https://api.eka.care/abdm/nhcx/v1/preauth/preview"
payload = {
"abha_number": "<string>",
"member_id": "<string>",
"payer_id": "<string>",
"request_type": "<string>",
"accident_info": {
"date": "2023-11-07T05:31:56Z",
"description": "<string>",
"type": "<string>"
},
"admission_type": "<string>",
"auth_type": "<string>",
"case_number": "<string>",
"clinical_notes": "<string>",
"consent": {
"answers": [
{
"answer": "<unknown>",
"link_id": "<string>",
"question": "<string>",
"questionnaire_url": "<string>"
}
],
"questionnaire_url": "<string>"
},
"diagnosis": [
{
"code": "<string>",
"display": "<string>",
"system": "<string>"
}
],
"documents": [
{
"content_type": "<string>",
"type": "<string>",
"content": "<string>",
"creation_date": "<string>",
"description": "<string>",
"title": "<string>",
"url": "<string>"
}
],
"estimated_amount": 123,
"hfr_facility_id": "<string>",
"hospital_address": "<string>",
"hospital_name": "<string>",
"items": [
{
"claim_amount": 123,
"procedure_code": "<string>",
"procedure_name": "<string>",
"quantity": 123,
"questionnaire_answers": [
{
"answer": "<unknown>",
"link_id": "<string>",
"question": "<string>",
"questionnaire_url": "<string>"
}
],
"speciality_code": "<string>",
"speciality_name": "<string>",
"strat_code": "<string>",
"strat_display": "<string>",
"supporting_docs": [
{
"content": "<string>",
"content_type": "<string>",
"creation": "<string>",
"doc_id": "<string>",
"mand_code": "<string>",
"title": "<string>",
"url": "<string>"
}
]
}
],
"participant_id": "<string>",
"planned_end_date": "2023-11-07T05:31:56Z",
"planned_start_date": "2023-11-07T05:31:56Z",
"priority": "<string>",
"procedure_codes": ["<string>"],
"product_id": "<string>",
"product_name": "<string>",
"provider_id": "<string>",
"provider_name": "<string>",
"remarks": "<string>",
"service_breakdown": [
{
"service_code": "<string>",
"description": "<string>",
"net_amount": 123,
"quantity": 123,
"unit_price": 123
}
],
"service_codes": ["<string>"],
"user_token": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
abha_number: '<string>',
member_id: '<string>',
payer_id: '<string>',
request_type: '<string>',
accident_info: {date: '2023-11-07T05:31:56Z', description: '<string>', type: '<string>'},
admission_type: '<string>',
auth_type: '<string>',
case_number: '<string>',
clinical_notes: '<string>',
consent: {
answers: [
{
answer: '<unknown>',
link_id: '<string>',
question: '<string>',
questionnaire_url: '<string>'
}
],
questionnaire_url: '<string>'
},
diagnosis: [{code: '<string>', display: '<string>', system: '<string>'}],
documents: [
{
content_type: '<string>',
type: '<string>',
content: '<string>',
creation_date: '<string>',
description: '<string>',
title: '<string>',
url: '<string>'
}
],
estimated_amount: 123,
hfr_facility_id: '<string>',
hospital_address: '<string>',
hospital_name: '<string>',
items: [
{
claim_amount: 123,
procedure_code: '<string>',
procedure_name: '<string>',
quantity: 123,
questionnaire_answers: [
{
answer: '<unknown>',
link_id: '<string>',
question: '<string>',
questionnaire_url: '<string>'
}
],
speciality_code: '<string>',
speciality_name: '<string>',
strat_code: '<string>',
strat_display: '<string>',
supporting_docs: [
{
content: '<string>',
content_type: '<string>',
creation: '<string>',
doc_id: '<string>',
mand_code: '<string>',
title: '<string>',
url: '<string>'
}
]
}
],
participant_id: '<string>',
planned_end_date: '2023-11-07T05:31:56Z',
planned_start_date: '2023-11-07T05:31:56Z',
priority: '<string>',
procedure_codes: ['<string>'],
product_id: '<string>',
product_name: '<string>',
provider_id: '<string>',
provider_name: '<string>',
remarks: '<string>',
service_breakdown: [
{
service_code: '<string>',
description: '<string>',
net_amount: 123,
quantity: 123,
unit_price: 123
}
],
service_codes: ['<string>'],
user_token: '<string>'
})
};
fetch('https://api.eka.care/abdm/nhcx/v1/preauth/preview', 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/abdm/nhcx/v1/preauth/preview",
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([
'abha_number' => '<string>',
'member_id' => '<string>',
'payer_id' => '<string>',
'request_type' => '<string>',
'accident_info' => [
'date' => '2023-11-07T05:31:56Z',
'description' => '<string>',
'type' => '<string>'
],
'admission_type' => '<string>',
'auth_type' => '<string>',
'case_number' => '<string>',
'clinical_notes' => '<string>',
'consent' => [
'answers' => [
[
'answer' => '<unknown>',
'link_id' => '<string>',
'question' => '<string>',
'questionnaire_url' => '<string>'
]
],
'questionnaire_url' => '<string>'
],
'diagnosis' => [
[
'code' => '<string>',
'display' => '<string>',
'system' => '<string>'
]
],
'documents' => [
[
'content_type' => '<string>',
'type' => '<string>',
'content' => '<string>',
'creation_date' => '<string>',
'description' => '<string>',
'title' => '<string>',
'url' => '<string>'
]
],
'estimated_amount' => 123,
'hfr_facility_id' => '<string>',
'hospital_address' => '<string>',
'hospital_name' => '<string>',
'items' => [
[
'claim_amount' => 123,
'procedure_code' => '<string>',
'procedure_name' => '<string>',
'quantity' => 123,
'questionnaire_answers' => [
[
'answer' => '<unknown>',
'link_id' => '<string>',
'question' => '<string>',
'questionnaire_url' => '<string>'
]
],
'speciality_code' => '<string>',
'speciality_name' => '<string>',
'strat_code' => '<string>',
'strat_display' => '<string>',
'supporting_docs' => [
[
'content' => '<string>',
'content_type' => '<string>',
'creation' => '<string>',
'doc_id' => '<string>',
'mand_code' => '<string>',
'title' => '<string>',
'url' => '<string>'
]
]
]
],
'participant_id' => '<string>',
'planned_end_date' => '2023-11-07T05:31:56Z',
'planned_start_date' => '2023-11-07T05:31:56Z',
'priority' => '<string>',
'procedure_codes' => [
'<string>'
],
'product_id' => '<string>',
'product_name' => '<string>',
'provider_id' => '<string>',
'provider_name' => '<string>',
'remarks' => '<string>',
'service_breakdown' => [
[
'service_code' => '<string>',
'description' => '<string>',
'net_amount' => 123,
'quantity' => 123,
'unit_price' => 123
]
],
'service_codes' => [
'<string>'
],
'user_token' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.eka.care/abdm/nhcx/v1/preauth/preview"
payload := strings.NewReader("{\n \"abha_number\": \"<string>\",\n \"member_id\": \"<string>\",\n \"payer_id\": \"<string>\",\n \"request_type\": \"<string>\",\n \"accident_info\": {\n \"date\": \"2023-11-07T05:31:56Z\",\n \"description\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"admission_type\": \"<string>\",\n \"auth_type\": \"<string>\",\n \"case_number\": \"<string>\",\n \"clinical_notes\": \"<string>\",\n \"consent\": {\n \"answers\": [\n {\n \"answer\": \"<unknown>\",\n \"link_id\": \"<string>\",\n \"question\": \"<string>\",\n \"questionnaire_url\": \"<string>\"\n }\n ],\n \"questionnaire_url\": \"<string>\"\n },\n \"diagnosis\": [\n {\n \"code\": \"<string>\",\n \"display\": \"<string>\",\n \"system\": \"<string>\"\n }\n ],\n \"documents\": [\n {\n \"content_type\": \"<string>\",\n \"type\": \"<string>\",\n \"content\": \"<string>\",\n \"creation_date\": \"<string>\",\n \"description\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"estimated_amount\": 123,\n \"hfr_facility_id\": \"<string>\",\n \"hospital_address\": \"<string>\",\n \"hospital_name\": \"<string>\",\n \"items\": [\n {\n \"claim_amount\": 123,\n \"procedure_code\": \"<string>\",\n \"procedure_name\": \"<string>\",\n \"quantity\": 123,\n \"questionnaire_answers\": [\n {\n \"answer\": \"<unknown>\",\n \"link_id\": \"<string>\",\n \"question\": \"<string>\",\n \"questionnaire_url\": \"<string>\"\n }\n ],\n \"speciality_code\": \"<string>\",\n \"speciality_name\": \"<string>\",\n \"strat_code\": \"<string>\",\n \"strat_display\": \"<string>\",\n \"supporting_docs\": [\n {\n \"content\": \"<string>\",\n \"content_type\": \"<string>\",\n \"creation\": \"<string>\",\n \"doc_id\": \"<string>\",\n \"mand_code\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ]\n }\n ],\n \"participant_id\": \"<string>\",\n \"planned_end_date\": \"2023-11-07T05:31:56Z\",\n \"planned_start_date\": \"2023-11-07T05:31:56Z\",\n \"priority\": \"<string>\",\n \"procedure_codes\": [\n \"<string>\"\n ],\n \"product_id\": \"<string>\",\n \"product_name\": \"<string>\",\n \"provider_id\": \"<string>\",\n \"provider_name\": \"<string>\",\n \"remarks\": \"<string>\",\n \"service_breakdown\": [\n {\n \"service_code\": \"<string>\",\n \"description\": \"<string>\",\n \"net_amount\": 123,\n \"quantity\": 123,\n \"unit_price\": 123\n }\n ],\n \"service_codes\": [\n \"<string>\"\n ],\n \"user_token\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.eka.care/abdm/nhcx/v1/preauth/preview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"abha_number\": \"<string>\",\n \"member_id\": \"<string>\",\n \"payer_id\": \"<string>\",\n \"request_type\": \"<string>\",\n \"accident_info\": {\n \"date\": \"2023-11-07T05:31:56Z\",\n \"description\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"admission_type\": \"<string>\",\n \"auth_type\": \"<string>\",\n \"case_number\": \"<string>\",\n \"clinical_notes\": \"<string>\",\n \"consent\": {\n \"answers\": [\n {\n \"answer\": \"<unknown>\",\n \"link_id\": \"<string>\",\n \"question\": \"<string>\",\n \"questionnaire_url\": \"<string>\"\n }\n ],\n \"questionnaire_url\": \"<string>\"\n },\n \"diagnosis\": [\n {\n \"code\": \"<string>\",\n \"display\": \"<string>\",\n \"system\": \"<string>\"\n }\n ],\n \"documents\": [\n {\n \"content_type\": \"<string>\",\n \"type\": \"<string>\",\n \"content\": \"<string>\",\n \"creation_date\": \"<string>\",\n \"description\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"estimated_amount\": 123,\n \"hfr_facility_id\": \"<string>\",\n \"hospital_address\": \"<string>\",\n \"hospital_name\": \"<string>\",\n \"items\": [\n {\n \"claim_amount\": 123,\n \"procedure_code\": \"<string>\",\n \"procedure_name\": \"<string>\",\n \"quantity\": 123,\n \"questionnaire_answers\": [\n {\n \"answer\": \"<unknown>\",\n \"link_id\": \"<string>\",\n \"question\": \"<string>\",\n \"questionnaire_url\": \"<string>\"\n }\n ],\n \"speciality_code\": \"<string>\",\n \"speciality_name\": \"<string>\",\n \"strat_code\": \"<string>\",\n \"strat_display\": \"<string>\",\n \"supporting_docs\": [\n {\n \"content\": \"<string>\",\n \"content_type\": \"<string>\",\n \"creation\": \"<string>\",\n \"doc_id\": \"<string>\",\n \"mand_code\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ]\n }\n ],\n \"participant_id\": \"<string>\",\n \"planned_end_date\": \"2023-11-07T05:31:56Z\",\n \"planned_start_date\": \"2023-11-07T05:31:56Z\",\n \"priority\": \"<string>\",\n \"procedure_codes\": [\n \"<string>\"\n ],\n \"product_id\": \"<string>\",\n \"product_name\": \"<string>\",\n \"provider_id\": \"<string>\",\n \"provider_name\": \"<string>\",\n \"remarks\": \"<string>\",\n \"service_breakdown\": [\n {\n \"service_code\": \"<string>\",\n \"description\": \"<string>\",\n \"net_amount\": 123,\n \"quantity\": 123,\n \"unit_price\": 123\n }\n ],\n \"service_codes\": [\n \"<string>\"\n ],\n \"user_token\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/abdm/nhcx/v1/preauth/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"abha_number\": \"<string>\",\n \"member_id\": \"<string>\",\n \"payer_id\": \"<string>\",\n \"request_type\": \"<string>\",\n \"accident_info\": {\n \"date\": \"2023-11-07T05:31:56Z\",\n \"description\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"admission_type\": \"<string>\",\n \"auth_type\": \"<string>\",\n \"case_number\": \"<string>\",\n \"clinical_notes\": \"<string>\",\n \"consent\": {\n \"answers\": [\n {\n \"answer\": \"<unknown>\",\n \"link_id\": \"<string>\",\n \"question\": \"<string>\",\n \"questionnaire_url\": \"<string>\"\n }\n ],\n \"questionnaire_url\": \"<string>\"\n },\n \"diagnosis\": [\n {\n \"code\": \"<string>\",\n \"display\": \"<string>\",\n \"system\": \"<string>\"\n }\n ],\n \"documents\": [\n {\n \"content_type\": \"<string>\",\n \"type\": \"<string>\",\n \"content\": \"<string>\",\n \"creation_date\": \"<string>\",\n \"description\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"estimated_amount\": 123,\n \"hfr_facility_id\": \"<string>\",\n \"hospital_address\": \"<string>\",\n \"hospital_name\": \"<string>\",\n \"items\": [\n {\n \"claim_amount\": 123,\n \"procedure_code\": \"<string>\",\n \"procedure_name\": \"<string>\",\n \"quantity\": 123,\n \"questionnaire_answers\": [\n {\n \"answer\": \"<unknown>\",\n \"link_id\": \"<string>\",\n \"question\": \"<string>\",\n \"questionnaire_url\": \"<string>\"\n }\n ],\n \"speciality_code\": \"<string>\",\n \"speciality_name\": \"<string>\",\n \"strat_code\": \"<string>\",\n \"strat_display\": \"<string>\",\n \"supporting_docs\": [\n {\n \"content\": \"<string>\",\n \"content_type\": \"<string>\",\n \"creation\": \"<string>\",\n \"doc_id\": \"<string>\",\n \"mand_code\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ]\n }\n ],\n \"participant_id\": \"<string>\",\n \"planned_end_date\": \"2023-11-07T05:31:56Z\",\n \"planned_start_date\": \"2023-11-07T05:31:56Z\",\n \"priority\": \"<string>\",\n \"procedure_codes\": [\n \"<string>\"\n ],\n \"product_id\": \"<string>\",\n \"product_name\": \"<string>\",\n \"provider_id\": \"<string>\",\n \"provider_name\": \"<string>\",\n \"remarks\": \"<string>\",\n \"service_breakdown\": [\n {\n \"service_code\": \"<string>\",\n \"description\": \"<string>\",\n \"net_amount\": 123,\n \"quantity\": 123,\n \"unit_price\": 123\n }\n ],\n \"service_codes\": [\n \"<string>\"\n ],\n \"user_token\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"error": "<string>",
"issues": [
"<string>"
],
"updated_at": "<string>"
}{
"error": "<string>",
"issues": [
"<string>"
],
"updated_at": "<string>"
}Preview Pre-auth Bundle
Builds the pre-auth FHIR bundle from a full request without sending it.
curl --request POST \
--url https://api.eka.care/abdm/nhcx/v1/preauth/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"abha_number": "<string>",
"member_id": "<string>",
"payer_id": "<string>",
"request_type": "<string>",
"accident_info": {
"date": "2023-11-07T05:31:56Z",
"description": "<string>",
"type": "<string>"
},
"admission_type": "<string>",
"auth_type": "<string>",
"case_number": "<string>",
"clinical_notes": "<string>",
"consent": {
"answers": [
{
"answer": "<unknown>",
"link_id": "<string>",
"question": "<string>",
"questionnaire_url": "<string>"
}
],
"questionnaire_url": "<string>"
},
"diagnosis": [
{
"code": "<string>",
"display": "<string>",
"system": "<string>"
}
],
"documents": [
{
"content_type": "<string>",
"type": "<string>",
"content": "<string>",
"creation_date": "<string>",
"description": "<string>",
"title": "<string>",
"url": "<string>"
}
],
"estimated_amount": 123,
"hfr_facility_id": "<string>",
"hospital_address": "<string>",
"hospital_name": "<string>",
"items": [
{
"claim_amount": 123,
"procedure_code": "<string>",
"procedure_name": "<string>",
"quantity": 123,
"questionnaire_answers": [
{
"answer": "<unknown>",
"link_id": "<string>",
"question": "<string>",
"questionnaire_url": "<string>"
}
],
"speciality_code": "<string>",
"speciality_name": "<string>",
"strat_code": "<string>",
"strat_display": "<string>",
"supporting_docs": [
{
"content": "<string>",
"content_type": "<string>",
"creation": "<string>",
"doc_id": "<string>",
"mand_code": "<string>",
"title": "<string>",
"url": "<string>"
}
]
}
],
"participant_id": "<string>",
"planned_end_date": "2023-11-07T05:31:56Z",
"planned_start_date": "2023-11-07T05:31:56Z",
"priority": "<string>",
"procedure_codes": [
"<string>"
],
"product_id": "<string>",
"product_name": "<string>",
"provider_id": "<string>",
"provider_name": "<string>",
"remarks": "<string>",
"service_breakdown": [
{
"service_code": "<string>",
"description": "<string>",
"net_amount": 123,
"quantity": 123,
"unit_price": 123
}
],
"service_codes": [
"<string>"
],
"user_token": "<string>"
}
'import requests
url = "https://api.eka.care/abdm/nhcx/v1/preauth/preview"
payload = {
"abha_number": "<string>",
"member_id": "<string>",
"payer_id": "<string>",
"request_type": "<string>",
"accident_info": {
"date": "2023-11-07T05:31:56Z",
"description": "<string>",
"type": "<string>"
},
"admission_type": "<string>",
"auth_type": "<string>",
"case_number": "<string>",
"clinical_notes": "<string>",
"consent": {
"answers": [
{
"answer": "<unknown>",
"link_id": "<string>",
"question": "<string>",
"questionnaire_url": "<string>"
}
],
"questionnaire_url": "<string>"
},
"diagnosis": [
{
"code": "<string>",
"display": "<string>",
"system": "<string>"
}
],
"documents": [
{
"content_type": "<string>",
"type": "<string>",
"content": "<string>",
"creation_date": "<string>",
"description": "<string>",
"title": "<string>",
"url": "<string>"
}
],
"estimated_amount": 123,
"hfr_facility_id": "<string>",
"hospital_address": "<string>",
"hospital_name": "<string>",
"items": [
{
"claim_amount": 123,
"procedure_code": "<string>",
"procedure_name": "<string>",
"quantity": 123,
"questionnaire_answers": [
{
"answer": "<unknown>",
"link_id": "<string>",
"question": "<string>",
"questionnaire_url": "<string>"
}
],
"speciality_code": "<string>",
"speciality_name": "<string>",
"strat_code": "<string>",
"strat_display": "<string>",
"supporting_docs": [
{
"content": "<string>",
"content_type": "<string>",
"creation": "<string>",
"doc_id": "<string>",
"mand_code": "<string>",
"title": "<string>",
"url": "<string>"
}
]
}
],
"participant_id": "<string>",
"planned_end_date": "2023-11-07T05:31:56Z",
"planned_start_date": "2023-11-07T05:31:56Z",
"priority": "<string>",
"procedure_codes": ["<string>"],
"product_id": "<string>",
"product_name": "<string>",
"provider_id": "<string>",
"provider_name": "<string>",
"remarks": "<string>",
"service_breakdown": [
{
"service_code": "<string>",
"description": "<string>",
"net_amount": 123,
"quantity": 123,
"unit_price": 123
}
],
"service_codes": ["<string>"],
"user_token": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
abha_number: '<string>',
member_id: '<string>',
payer_id: '<string>',
request_type: '<string>',
accident_info: {date: '2023-11-07T05:31:56Z', description: '<string>', type: '<string>'},
admission_type: '<string>',
auth_type: '<string>',
case_number: '<string>',
clinical_notes: '<string>',
consent: {
answers: [
{
answer: '<unknown>',
link_id: '<string>',
question: '<string>',
questionnaire_url: '<string>'
}
],
questionnaire_url: '<string>'
},
diagnosis: [{code: '<string>', display: '<string>', system: '<string>'}],
documents: [
{
content_type: '<string>',
type: '<string>',
content: '<string>',
creation_date: '<string>',
description: '<string>',
title: '<string>',
url: '<string>'
}
],
estimated_amount: 123,
hfr_facility_id: '<string>',
hospital_address: '<string>',
hospital_name: '<string>',
items: [
{
claim_amount: 123,
procedure_code: '<string>',
procedure_name: '<string>',
quantity: 123,
questionnaire_answers: [
{
answer: '<unknown>',
link_id: '<string>',
question: '<string>',
questionnaire_url: '<string>'
}
],
speciality_code: '<string>',
speciality_name: '<string>',
strat_code: '<string>',
strat_display: '<string>',
supporting_docs: [
{
content: '<string>',
content_type: '<string>',
creation: '<string>',
doc_id: '<string>',
mand_code: '<string>',
title: '<string>',
url: '<string>'
}
]
}
],
participant_id: '<string>',
planned_end_date: '2023-11-07T05:31:56Z',
planned_start_date: '2023-11-07T05:31:56Z',
priority: '<string>',
procedure_codes: ['<string>'],
product_id: '<string>',
product_name: '<string>',
provider_id: '<string>',
provider_name: '<string>',
remarks: '<string>',
service_breakdown: [
{
service_code: '<string>',
description: '<string>',
net_amount: 123,
quantity: 123,
unit_price: 123
}
],
service_codes: ['<string>'],
user_token: '<string>'
})
};
fetch('https://api.eka.care/abdm/nhcx/v1/preauth/preview', 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/abdm/nhcx/v1/preauth/preview",
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([
'abha_number' => '<string>',
'member_id' => '<string>',
'payer_id' => '<string>',
'request_type' => '<string>',
'accident_info' => [
'date' => '2023-11-07T05:31:56Z',
'description' => '<string>',
'type' => '<string>'
],
'admission_type' => '<string>',
'auth_type' => '<string>',
'case_number' => '<string>',
'clinical_notes' => '<string>',
'consent' => [
'answers' => [
[
'answer' => '<unknown>',
'link_id' => '<string>',
'question' => '<string>',
'questionnaire_url' => '<string>'
]
],
'questionnaire_url' => '<string>'
],
'diagnosis' => [
[
'code' => '<string>',
'display' => '<string>',
'system' => '<string>'
]
],
'documents' => [
[
'content_type' => '<string>',
'type' => '<string>',
'content' => '<string>',
'creation_date' => '<string>',
'description' => '<string>',
'title' => '<string>',
'url' => '<string>'
]
],
'estimated_amount' => 123,
'hfr_facility_id' => '<string>',
'hospital_address' => '<string>',
'hospital_name' => '<string>',
'items' => [
[
'claim_amount' => 123,
'procedure_code' => '<string>',
'procedure_name' => '<string>',
'quantity' => 123,
'questionnaire_answers' => [
[
'answer' => '<unknown>',
'link_id' => '<string>',
'question' => '<string>',
'questionnaire_url' => '<string>'
]
],
'speciality_code' => '<string>',
'speciality_name' => '<string>',
'strat_code' => '<string>',
'strat_display' => '<string>',
'supporting_docs' => [
[
'content' => '<string>',
'content_type' => '<string>',
'creation' => '<string>',
'doc_id' => '<string>',
'mand_code' => '<string>',
'title' => '<string>',
'url' => '<string>'
]
]
]
],
'participant_id' => '<string>',
'planned_end_date' => '2023-11-07T05:31:56Z',
'planned_start_date' => '2023-11-07T05:31:56Z',
'priority' => '<string>',
'procedure_codes' => [
'<string>'
],
'product_id' => '<string>',
'product_name' => '<string>',
'provider_id' => '<string>',
'provider_name' => '<string>',
'remarks' => '<string>',
'service_breakdown' => [
[
'service_code' => '<string>',
'description' => '<string>',
'net_amount' => 123,
'quantity' => 123,
'unit_price' => 123
]
],
'service_codes' => [
'<string>'
],
'user_token' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.eka.care/abdm/nhcx/v1/preauth/preview"
payload := strings.NewReader("{\n \"abha_number\": \"<string>\",\n \"member_id\": \"<string>\",\n \"payer_id\": \"<string>\",\n \"request_type\": \"<string>\",\n \"accident_info\": {\n \"date\": \"2023-11-07T05:31:56Z\",\n \"description\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"admission_type\": \"<string>\",\n \"auth_type\": \"<string>\",\n \"case_number\": \"<string>\",\n \"clinical_notes\": \"<string>\",\n \"consent\": {\n \"answers\": [\n {\n \"answer\": \"<unknown>\",\n \"link_id\": \"<string>\",\n \"question\": \"<string>\",\n \"questionnaire_url\": \"<string>\"\n }\n ],\n \"questionnaire_url\": \"<string>\"\n },\n \"diagnosis\": [\n {\n \"code\": \"<string>\",\n \"display\": \"<string>\",\n \"system\": \"<string>\"\n }\n ],\n \"documents\": [\n {\n \"content_type\": \"<string>\",\n \"type\": \"<string>\",\n \"content\": \"<string>\",\n \"creation_date\": \"<string>\",\n \"description\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"estimated_amount\": 123,\n \"hfr_facility_id\": \"<string>\",\n \"hospital_address\": \"<string>\",\n \"hospital_name\": \"<string>\",\n \"items\": [\n {\n \"claim_amount\": 123,\n \"procedure_code\": \"<string>\",\n \"procedure_name\": \"<string>\",\n \"quantity\": 123,\n \"questionnaire_answers\": [\n {\n \"answer\": \"<unknown>\",\n \"link_id\": \"<string>\",\n \"question\": \"<string>\",\n \"questionnaire_url\": \"<string>\"\n }\n ],\n \"speciality_code\": \"<string>\",\n \"speciality_name\": \"<string>\",\n \"strat_code\": \"<string>\",\n \"strat_display\": \"<string>\",\n \"supporting_docs\": [\n {\n \"content\": \"<string>\",\n \"content_type\": \"<string>\",\n \"creation\": \"<string>\",\n \"doc_id\": \"<string>\",\n \"mand_code\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ]\n }\n ],\n \"participant_id\": \"<string>\",\n \"planned_end_date\": \"2023-11-07T05:31:56Z\",\n \"planned_start_date\": \"2023-11-07T05:31:56Z\",\n \"priority\": \"<string>\",\n \"procedure_codes\": [\n \"<string>\"\n ],\n \"product_id\": \"<string>\",\n \"product_name\": \"<string>\",\n \"provider_id\": \"<string>\",\n \"provider_name\": \"<string>\",\n \"remarks\": \"<string>\",\n \"service_breakdown\": [\n {\n \"service_code\": \"<string>\",\n \"description\": \"<string>\",\n \"net_amount\": 123,\n \"quantity\": 123,\n \"unit_price\": 123\n }\n ],\n \"service_codes\": [\n \"<string>\"\n ],\n \"user_token\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.eka.care/abdm/nhcx/v1/preauth/preview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"abha_number\": \"<string>\",\n \"member_id\": \"<string>\",\n \"payer_id\": \"<string>\",\n \"request_type\": \"<string>\",\n \"accident_info\": {\n \"date\": \"2023-11-07T05:31:56Z\",\n \"description\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"admission_type\": \"<string>\",\n \"auth_type\": \"<string>\",\n \"case_number\": \"<string>\",\n \"clinical_notes\": \"<string>\",\n \"consent\": {\n \"answers\": [\n {\n \"answer\": \"<unknown>\",\n \"link_id\": \"<string>\",\n \"question\": \"<string>\",\n \"questionnaire_url\": \"<string>\"\n }\n ],\n \"questionnaire_url\": \"<string>\"\n },\n \"diagnosis\": [\n {\n \"code\": \"<string>\",\n \"display\": \"<string>\",\n \"system\": \"<string>\"\n }\n ],\n \"documents\": [\n {\n \"content_type\": \"<string>\",\n \"type\": \"<string>\",\n \"content\": \"<string>\",\n \"creation_date\": \"<string>\",\n \"description\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"estimated_amount\": 123,\n \"hfr_facility_id\": \"<string>\",\n \"hospital_address\": \"<string>\",\n \"hospital_name\": \"<string>\",\n \"items\": [\n {\n \"claim_amount\": 123,\n \"procedure_code\": \"<string>\",\n \"procedure_name\": \"<string>\",\n \"quantity\": 123,\n \"questionnaire_answers\": [\n {\n \"answer\": \"<unknown>\",\n \"link_id\": \"<string>\",\n \"question\": \"<string>\",\n \"questionnaire_url\": \"<string>\"\n }\n ],\n \"speciality_code\": \"<string>\",\n \"speciality_name\": \"<string>\",\n \"strat_code\": \"<string>\",\n \"strat_display\": \"<string>\",\n \"supporting_docs\": [\n {\n \"content\": \"<string>\",\n \"content_type\": \"<string>\",\n \"creation\": \"<string>\",\n \"doc_id\": \"<string>\",\n \"mand_code\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ]\n }\n ],\n \"participant_id\": \"<string>\",\n \"planned_end_date\": \"2023-11-07T05:31:56Z\",\n \"planned_start_date\": \"2023-11-07T05:31:56Z\",\n \"priority\": \"<string>\",\n \"procedure_codes\": [\n \"<string>\"\n ],\n \"product_id\": \"<string>\",\n \"product_name\": \"<string>\",\n \"provider_id\": \"<string>\",\n \"provider_name\": \"<string>\",\n \"remarks\": \"<string>\",\n \"service_breakdown\": [\n {\n \"service_code\": \"<string>\",\n \"description\": \"<string>\",\n \"net_amount\": 123,\n \"quantity\": 123,\n \"unit_price\": 123\n }\n ],\n \"service_codes\": [\n \"<string>\"\n ],\n \"user_token\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/abdm/nhcx/v1/preauth/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"abha_number\": \"<string>\",\n \"member_id\": \"<string>\",\n \"payer_id\": \"<string>\",\n \"request_type\": \"<string>\",\n \"accident_info\": {\n \"date\": \"2023-11-07T05:31:56Z\",\n \"description\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"admission_type\": \"<string>\",\n \"auth_type\": \"<string>\",\n \"case_number\": \"<string>\",\n \"clinical_notes\": \"<string>\",\n \"consent\": {\n \"answers\": [\n {\n \"answer\": \"<unknown>\",\n \"link_id\": \"<string>\",\n \"question\": \"<string>\",\n \"questionnaire_url\": \"<string>\"\n }\n ],\n \"questionnaire_url\": \"<string>\"\n },\n \"diagnosis\": [\n {\n \"code\": \"<string>\",\n \"display\": \"<string>\",\n \"system\": \"<string>\"\n }\n ],\n \"documents\": [\n {\n \"content_type\": \"<string>\",\n \"type\": \"<string>\",\n \"content\": \"<string>\",\n \"creation_date\": \"<string>\",\n \"description\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"estimated_amount\": 123,\n \"hfr_facility_id\": \"<string>\",\n \"hospital_address\": \"<string>\",\n \"hospital_name\": \"<string>\",\n \"items\": [\n {\n \"claim_amount\": 123,\n \"procedure_code\": \"<string>\",\n \"procedure_name\": \"<string>\",\n \"quantity\": 123,\n \"questionnaire_answers\": [\n {\n \"answer\": \"<unknown>\",\n \"link_id\": \"<string>\",\n \"question\": \"<string>\",\n \"questionnaire_url\": \"<string>\"\n }\n ],\n \"speciality_code\": \"<string>\",\n \"speciality_name\": \"<string>\",\n \"strat_code\": \"<string>\",\n \"strat_display\": \"<string>\",\n \"supporting_docs\": [\n {\n \"content\": \"<string>\",\n \"content_type\": \"<string>\",\n \"creation\": \"<string>\",\n \"doc_id\": \"<string>\",\n \"mand_code\": \"<string>\",\n \"title\": \"<string>\",\n \"url\": \"<string>\"\n }\n ]\n }\n ],\n \"participant_id\": \"<string>\",\n \"planned_end_date\": \"2023-11-07T05:31:56Z\",\n \"planned_start_date\": \"2023-11-07T05:31:56Z\",\n \"priority\": \"<string>\",\n \"procedure_codes\": [\n \"<string>\"\n ],\n \"product_id\": \"<string>\",\n \"product_name\": \"<string>\",\n \"provider_id\": \"<string>\",\n \"provider_name\": \"<string>\",\n \"remarks\": \"<string>\",\n \"service_breakdown\": [\n {\n \"service_code\": \"<string>\",\n \"description\": \"<string>\",\n \"net_amount\": 123,\n \"quantity\": 123,\n \"unit_price\": 123\n }\n ],\n \"service_codes\": [\n \"<string>\"\n ],\n \"user_token\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"error": "<string>",
"issues": [
"<string>"
],
"updated_at": "<string>"
}{
"error": "<string>",
"issues": [
"<string>"
],
"updated_at": "<string>"
}Authorizations
The API requires a Bearer token (JWT) for authentication.
Headers
Eka User ID (OID)
Partner User ID
Partner HIP ID
Body
Required identifiers
"InitialRequest" | "FollowUp" | "Enhancement"
Accident details (optional conditional form section)
Show child attributes
Show child attributes
The NDHM claim-type code: "OPD", "IPD", or "EMR". Defaults to "OPD".
Beneficiary authentication. AuthType "consent" (default) sends the Authentication Consent Questionnaire response (Consent) and OMITS the biometric X-Token; "biometric" sends UserToken as the X-Token. The payer requires one or the other.
An OPTIONAL override for the pre-auth case / intimation number sent as Claim.identifier. PMJAY does not issue a case number at eligibility or pre-auth, so this is normally left blank and a random UUID is generated. Provide it only if a specific value must be used (e.g. resubmission/enhancement referencing an earlier pre-auth).
Authentication Consent Questionnaire response
Show child attributes
Show child attributes
Clinical (form inputs)
Show child attributes
Show child attributes
Documents (file uploads from form)
Show child attributes
Show child attributes
NHCX procedure items with stratification (preferred over ServiceCodes in the NHCX flow).
Show child attributes
Show child attributes
set server-side from auth token
Show child attributes
Show child attributes
ISO 8601 — parsed from frontend datetime-local
"normal" | "urgent" | "stat"
NHCX plan identifiers — used to auto-enrich Items from the plan DB.
Provider & patient (auto-populated by SDK from store; optional for backward compat)
Cost estimate (auto-filled from package)
Show child attributes
Show child attributes
Procedure & dates (form inputs)
Care team (form inputs)
Show child attributes
Show child attributes
biometric User Token (30-min), used when AuthType=biometric
Response
OK
Was this page helpful?

