Save Draft
curl --request PUT \
--url https://api.eka.care/abdm/nhcx/v1/claims/{claimId}/draft \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"base_updated_at": "<string>",
"supporting_docs": [
{
"category": "<string>",
"code": "<string>",
"content": "<string>",
"content_type": "<string>",
"doc_id": "<string>",
"slot_key": "<string>",
"title": "<string>"
}
]
}
'import requests
url = "https://api.eka.care/abdm/nhcx/v1/claims/{claimId}/draft"
payload = {
"base_updated_at": "<string>",
"supporting_docs": [
{
"category": "<string>",
"code": "<string>",
"content": "<string>",
"content_type": "<string>",
"doc_id": "<string>",
"slot_key": "<string>",
"title": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
base_updated_at: '<string>',
supporting_docs: [
{
category: '<string>',
code: '<string>',
content: '<string>',
content_type: '<string>',
doc_id: '<string>',
slot_key: '<string>',
title: '<string>'
}
]
})
};
fetch('https://api.eka.care/abdm/nhcx/v1/claims/{claimId}/draft', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.put("https://api.eka.care/abdm/nhcx/v1/claims/{claimId}/draft")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"base_updated_at\": \"<string>\",\n \"supporting_docs\": [\n {\n \"category\": \"<string>\",\n \"code\": \"<string>\",\n \"content\": \"<string>\",\n \"content_type\": \"<string>\",\n \"doc_id\": \"<string>\",\n \"slot_key\": \"<string>\",\n \"title\": \"<string>\"\n }\n ]\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/abdm/nhcx/v1/claims/{claimId}/draft");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"base_updated_at\": \"<string>\",\n \"supporting_docs\": [\n {\n \"category\": \"<string>\",\n \"code\": \"<string>\",\n \"content\": \"<string>\",\n \"content_type\": \"<string>\",\n \"doc_id\": \"<string>\",\n \"slot_key\": \"<string>\",\n \"title\": \"<string>\"\n }\n ]\n}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/abdm/nhcx/v1/claims/{claimId}/draft")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"base_updated_at\": \"<string>\",\n \"supporting_docs\": [\n {\n \"category\": \"<string>\",\n \"code\": \"<string>\",\n \"content\": \"<string>\",\n \"content_type\": \"<string>\",\n \"doc_id\": \"<string>\",\n \"slot_key\": \"<string>\",\n \"title\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"documents": [
{
"category": "<string>",
"code": "<string>",
"content_type": "<string>",
"doc_id": "<string>",
"slot_key": "<string>",
"title": "<string>"
}
],
"updated_at": "<string>"
}{
"error": "<string>",
"issues": [
"<string>"
],
"updated_at": "<string>"
}{
"error": "<string>",
"issues": [
"<string>"
],
"updated_at": "<string>"
}Claims
Save Draft
Saves a partly filled pre-auth or claim form without submitting it. The body is the same one the stage’s submit takes, stored as sent. Read it back with Get Claim Request using correlation id draft:Preauth or draft:Claim.
PUT
/
abdm
/
nhcx
/
v1
/
claims
/
{claimId}
/
draft
Save Draft
curl --request PUT \
--url https://api.eka.care/abdm/nhcx/v1/claims/{claimId}/draft \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"base_updated_at": "<string>",
"supporting_docs": [
{
"category": "<string>",
"code": "<string>",
"content": "<string>",
"content_type": "<string>",
"doc_id": "<string>",
"slot_key": "<string>",
"title": "<string>"
}
]
}
'import requests
url = "https://api.eka.care/abdm/nhcx/v1/claims/{claimId}/draft"
payload = {
"base_updated_at": "<string>",
"supporting_docs": [
{
"category": "<string>",
"code": "<string>",
"content": "<string>",
"content_type": "<string>",
"doc_id": "<string>",
"slot_key": "<string>",
"title": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
base_updated_at: '<string>',
supporting_docs: [
{
category: '<string>',
code: '<string>',
content: '<string>',
content_type: '<string>',
doc_id: '<string>',
slot_key: '<string>',
title: '<string>'
}
]
})
};
fetch('https://api.eka.care/abdm/nhcx/v1/claims/{claimId}/draft', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.put("https://api.eka.care/abdm/nhcx/v1/claims/{claimId}/draft")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"base_updated_at\": \"<string>\",\n \"supporting_docs\": [\n {\n \"category\": \"<string>\",\n \"code\": \"<string>\",\n \"content\": \"<string>\",\n \"content_type\": \"<string>\",\n \"doc_id\": \"<string>\",\n \"slot_key\": \"<string>\",\n \"title\": \"<string>\"\n }\n ]\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/abdm/nhcx/v1/claims/{claimId}/draft");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"base_updated_at\": \"<string>\",\n \"supporting_docs\": [\n {\n \"category\": \"<string>\",\n \"code\": \"<string>\",\n \"content\": \"<string>\",\n \"content_type\": \"<string>\",\n \"doc_id\": \"<string>\",\n \"slot_key\": \"<string>\",\n \"title\": \"<string>\"\n }\n ]\n}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/abdm/nhcx/v1/claims/{claimId}/draft")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"base_updated_at\": \"<string>\",\n \"supporting_docs\": [\n {\n \"category\": \"<string>\",\n \"code\": \"<string>\",\n \"content\": \"<string>\",\n \"content_type\": \"<string>\",\n \"doc_id\": \"<string>\",\n \"slot_key\": \"<string>\",\n \"title\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"documents": [
{
"category": "<string>",
"code": "<string>",
"content_type": "<string>",
"doc_id": "<string>",
"slot_key": "<string>",
"title": "<string>"
}
],
"updated_at": "<string>"
}{
"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
Path Parameters
claim_id returned by Create Claim
Required range:
x >= 0Query Parameters
Available options:
Preauth, Claim Body
application/json
Was this page helpful?

