curl --request POST \
--url https://api.clinikehr.com/v1/clinics/{clinic_id}/coverages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"patient_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"member_id": "<string>",
"group_number": "<string>",
"group_name": "<string>",
"plan_name": "<string>",
"subscriber_first_name": "<string>",
"subscriber_last_name": "<string>",
"subscriber_date_of_birth": "2023-12-25",
"subscriber_member_id": "<string>",
"subscriber_address_line1": "<string>",
"subscriber_address_city": "<string>",
"subscriber_address_state": "<string>",
"subscriber_address_zip": "<string>",
"coverage_active": true,
"effective_date": "2023-12-25",
"termination_date": "2023-12-25",
"copay_amount": 1,
"coinsurance_percent": 50,
"deductible_amount": 1,
"out_of_pocket_max": 1,
"pre_authorization_required": true,
"is_primary": true,
"origin_assistant_name": "<string>"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
patient_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
payer_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
member_id: '<string>',
group_number: '<string>',
group_name: '<string>',
plan_name: '<string>',
subscriber_first_name: '<string>',
subscriber_last_name: '<string>',
subscriber_date_of_birth: '2023-12-25',
subscriber_member_id: '<string>',
subscriber_address_line1: '<string>',
subscriber_address_city: '<string>',
subscriber_address_state: '<string>',
subscriber_address_zip: '<string>',
coverage_active: true,
effective_date: '2023-12-25',
termination_date: '2023-12-25',
copay_amount: 1,
coinsurance_percent: 50,
deductible_amount: 1,
out_of_pocket_max: 1,
pre_authorization_required: true,
is_primary: true,
origin_assistant_name: '<string>'
})
};
fetch('https://api.clinikehr.com/v1/clinics/{clinic_id}/coverages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.clinikehr.com/v1/clinics/{clinic_id}/coverages"
payload = {
"patient_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"member_id": "<string>",
"group_number": "<string>",
"group_name": "<string>",
"plan_name": "<string>",
"subscriber_first_name": "<string>",
"subscriber_last_name": "<string>",
"subscriber_date_of_birth": "2023-12-25",
"subscriber_member_id": "<string>",
"subscriber_address_line1": "<string>",
"subscriber_address_city": "<string>",
"subscriber_address_state": "<string>",
"subscriber_address_zip": "<string>",
"coverage_active": True,
"effective_date": "2023-12-25",
"termination_date": "2023-12-25",
"copay_amount": 1,
"coinsurance_percent": 50,
"deductible_amount": 1,
"out_of_pocket_max": 1,
"pre_authorization_required": True,
"is_primary": True,
"origin_assistant_name": "<string>"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"patient_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"coverage_active": true,
"verification_status": "confirmed",
"source": "clinic",
"payer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"display_name": "<string>"
},
"member_id": "<string>",
"group_number": "<string>",
"group_name": "<string>",
"plan_name": "<string>",
"coverage_type": "medical",
"payment_responsibility": "P",
"relationship_to_subscriber": "self",
"subscriber": {
"first_name": "<string>",
"last_name": "<string>",
"date_of_birth": "2023-12-25",
"gender": "M",
"member_id": "<string>"
},
"is_primary": true,
"effective_date": "2023-12-25",
"termination_date": "2023-12-25",
"copay_amount": 123,
"coinsurance_percent": 123,
"deductible_amount": 123,
"out_of_pocket_max": 123,
"pre_authorization_required": true,
"network_status": "in_network",
"eligibility": {
"status": "<string>",
"checked_at": "2023-11-07T05:31:56Z"
},
"origin_assistant_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"idempotent_replay": true
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}Create a coverage
Permission: coverage:write
Record a patient’s insurance coverage.
The coverage is saved and visible straight away, answers 201 Created with the coverage, and is unconfirmed with coverage_active: false until clinic staff confirm the payer match. The payer must be one the clinic has enabled (payer_not_enabled otherwise). A patient can hold one coverage per payer (coverage_exists). The Idempotency-Key header is REQUIRED — a retry with the same key returns the original coverage, never a second one. Send JSON; a FHIR Coverage body is refused.
curl --request POST \
--url https://api.clinikehr.com/v1/clinics/{clinic_id}/coverages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"patient_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"member_id": "<string>",
"group_number": "<string>",
"group_name": "<string>",
"plan_name": "<string>",
"subscriber_first_name": "<string>",
"subscriber_last_name": "<string>",
"subscriber_date_of_birth": "2023-12-25",
"subscriber_member_id": "<string>",
"subscriber_address_line1": "<string>",
"subscriber_address_city": "<string>",
"subscriber_address_state": "<string>",
"subscriber_address_zip": "<string>",
"coverage_active": true,
"effective_date": "2023-12-25",
"termination_date": "2023-12-25",
"copay_amount": 1,
"coinsurance_percent": 50,
"deductible_amount": 1,
"out_of_pocket_max": 1,
"pre_authorization_required": true,
"is_primary": true,
"origin_assistant_name": "<string>"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
patient_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
payer_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
member_id: '<string>',
group_number: '<string>',
group_name: '<string>',
plan_name: '<string>',
subscriber_first_name: '<string>',
subscriber_last_name: '<string>',
subscriber_date_of_birth: '2023-12-25',
subscriber_member_id: '<string>',
subscriber_address_line1: '<string>',
subscriber_address_city: '<string>',
subscriber_address_state: '<string>',
subscriber_address_zip: '<string>',
coverage_active: true,
effective_date: '2023-12-25',
termination_date: '2023-12-25',
copay_amount: 1,
coinsurance_percent: 50,
deductible_amount: 1,
out_of_pocket_max: 1,
pre_authorization_required: true,
is_primary: true,
origin_assistant_name: '<string>'
})
};
fetch('https://api.clinikehr.com/v1/clinics/{clinic_id}/coverages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.clinikehr.com/v1/clinics/{clinic_id}/coverages"
payload = {
"patient_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"member_id": "<string>",
"group_number": "<string>",
"group_name": "<string>",
"plan_name": "<string>",
"subscriber_first_name": "<string>",
"subscriber_last_name": "<string>",
"subscriber_date_of_birth": "2023-12-25",
"subscriber_member_id": "<string>",
"subscriber_address_line1": "<string>",
"subscriber_address_city": "<string>",
"subscriber_address_state": "<string>",
"subscriber_address_zip": "<string>",
"coverage_active": True,
"effective_date": "2023-12-25",
"termination_date": "2023-12-25",
"copay_amount": 1,
"coinsurance_percent": 50,
"deductible_amount": 1,
"out_of_pocket_max": 1,
"pre_authorization_required": True,
"is_primary": True,
"origin_assistant_name": "<string>"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"patient_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"coverage_active": true,
"verification_status": "confirmed",
"source": "clinic",
"payer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"display_name": "<string>"
},
"member_id": "<string>",
"group_number": "<string>",
"group_name": "<string>",
"plan_name": "<string>",
"coverage_type": "medical",
"payment_responsibility": "P",
"relationship_to_subscriber": "self",
"subscriber": {
"first_name": "<string>",
"last_name": "<string>",
"date_of_birth": "2023-12-25",
"gender": "M",
"member_id": "<string>"
},
"is_primary": true,
"effective_date": "2023-12-25",
"termination_date": "2023-12-25",
"copay_amount": 123,
"coinsurance_percent": 123,
"deductible_amount": 123,
"out_of_pocket_max": 123,
"pre_authorization_required": true,
"network_status": "in_network",
"eligibility": {
"status": "<string>",
"checked_at": "2023-11-07T05:31:56Z"
},
"origin_assistant_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"idempotent_replay": true
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
A unique value you choose for this request, such as a UUID. Sending the same key again returns the first answer instead of doing the work twice, so a timed-out request is safe to retry. Reusing a key for a different request is refused with 409 idempotency_key_conflict, and retrying while the first request is still running with 409 idempotency_key_reused. See Retries and idempotency.
1Path Parameters
Body
A coverage to record for a patient. It is saved straight away, but as unconfirmed with coverage_active: false; clinic staff confirm the payer match before it counts. payer_id must be a payer the clinic has enabled in Settings → Insurance (see GET …/payers), otherwise payer_not_enabled; a patient can hold one coverage per payer (coverage_exists). coverage_active: true is refused with activation_requires_staff. The clinic's notes, the deductible and out-of-pocket amounts met and every eligibility field cannot be sent. The Idempotency-Key header is REQUIRED. Send JSON; a FHIR Coverage body is not accepted.
200200200200medical, dental, vision, behavioral_health, other P, S, T self, spouse, child, other, employee, organ_donor, cadaver_donor, life_partner 200200M, F, U 200200200200200Send false or omit it. true is refused: only clinic staff activate a coverage.
x >= 00 <= x <= 100x >= 0x >= 0in_network, out_of_network, unknown 200Response
Created — saved, unconfirmed and inactive until staff confirm it.
A patient's insurance coverage — the exposed-field allow-list, field by field. A coverage that came in through the API is saved straight away and visible here, but it is unconfirmed and coverage_active is false until clinic staff confirm the payer match; the clinic's own coverages are confirmed. Eligibility figures, the clinic's notes and the policy holder's address are never exposed.
Show child attributes
Show child attributes
Present and true when this Idempotency-Key was already used and the original coverage is returned.