Patient Select
curl --request POST \
--url https://api.eka.care/abdm/v1/profile/scan-and-pay/patient-select \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"intent": "<string>",
"procedures": [
{
"category": "<string>",
"services": [
{
"amount": 123,
"description": "<string>",
"name": "<string>",
"serviceId": "<string>"
}
]
}
],
"request_id": "<string>"
}
'import requests
url = "https://api.eka.care/abdm/v1/profile/scan-and-pay/patient-select"
payload = {
"intent": "<string>",
"procedures": [
{
"category": "<string>",
"services": [
{
"amount": 123,
"description": "<string>",
"name": "<string>",
"serviceId": "<string>"
}
]
}
],
"request_id": "<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({
intent: '<string>',
procedures: [
{
category: '<string>',
services: [
{amount: 123, description: '<string>', name: '<string>', serviceId: '<string>'}
]
}
],
request_id: '<string>'
})
};
fetch('https://api.eka.care/abdm/v1/profile/scan-and-pay/patient-select', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/abdm/v1/profile/scan-and-pay/patient-select")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"intent\": \"<string>\",\n \"procedures\": [\n {\n \"category\": \"<string>\",\n \"services\": [\n {\n \"amount\": 123,\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"serviceId\": \"<string>\"\n }\n ]\n }\n ],\n \"request_id\": \"<string>\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/abdm/v1/profile/scan-and-pay/patient-select");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"intent\": \"<string>\",\n \"procedures\": [\n {\n \"category\": \"<string>\",\n \"services\": [\n {\n \"amount\": 123,\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"serviceId\": \"<string>\"\n }\n ]\n }\n ],\n \"request_id\": \"<string>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/abdm/v1/profile/scan-and-pay/patient-select")
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 \"intent\": \"<string>\",\n \"procedures\": [\n {\n \"category\": \"<string>\",\n \"services\": [\n {\n \"amount\": 123,\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"serviceId\": \"<string>\"\n }\n ]\n }\n ],\n \"request_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"request_id": "<string>",
"status": "REQUESTED_PATIENT_SELECT"
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}Scan & Pay
Patient Select
To get payment link for selected Open Order with intent - ‘PAYMENT_ORDER’
POST
/
abdm
/
v1
/
profile
/
scan-and-pay
/
patient-select
Patient Select
curl --request POST \
--url https://api.eka.care/abdm/v1/profile/scan-and-pay/patient-select \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"intent": "<string>",
"procedures": [
{
"category": "<string>",
"services": [
{
"amount": 123,
"description": "<string>",
"name": "<string>",
"serviceId": "<string>"
}
]
}
],
"request_id": "<string>"
}
'import requests
url = "https://api.eka.care/abdm/v1/profile/scan-and-pay/patient-select"
payload = {
"intent": "<string>",
"procedures": [
{
"category": "<string>",
"services": [
{
"amount": 123,
"description": "<string>",
"name": "<string>",
"serviceId": "<string>"
}
]
}
],
"request_id": "<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({
intent: '<string>',
procedures: [
{
category: '<string>',
services: [
{amount: 123, description: '<string>', name: '<string>', serviceId: '<string>'}
]
}
],
request_id: '<string>'
})
};
fetch('https://api.eka.care/abdm/v1/profile/scan-and-pay/patient-select', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/abdm/v1/profile/scan-and-pay/patient-select")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"intent\": \"<string>\",\n \"procedures\": [\n {\n \"category\": \"<string>\",\n \"services\": [\n {\n \"amount\": 123,\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"serviceId\": \"<string>\"\n }\n ]\n }\n ],\n \"request_id\": \"<string>\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/abdm/v1/profile/scan-and-pay/patient-select");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"intent\": \"<string>\",\n \"procedures\": [\n {\n \"category\": \"<string>\",\n \"services\": [\n {\n \"amount\": 123,\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"serviceId\": \"<string>\"\n }\n ]\n }\n ],\n \"request_id\": \"<string>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/abdm/v1/profile/scan-and-pay/patient-select")
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 \"intent\": \"<string>\",\n \"procedures\": [\n {\n \"category\": \"<string>\",\n \"services\": [\n {\n \"amount\": 123,\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"serviceId\": \"<string>\"\n }\n ]\n }\n ],\n \"request_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"request_id": "<string>",
"status": "REQUESTED_PATIENT_SELECT"
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}{
"code": 123,
"error": "<string>",
"source_error": {
"code": "<string>",
"message": "<string>"
}
}Used in
Authorizations
The API requires a Bearer token (JWT) for authentication.
Headers
Eka User ID (OID)
Partner User ID
Partner HIP ID
Body
application/json
Was this page helpful?

