Create Bill
Create a new bill.
curl --request POST \
--url https://sandbox.elationemr.com/api/2.0/bills/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cpts": [
{
"cpt": "<string>",
"dxs": [
{
"icd10_code": "<string>",
"icd9_codes": [
"<string>"
]
}
],
"unit_charge": "<string>",
"units": "<string>",
"modifier_1": "<string>",
"modifier_2": "<string>",
"modifier_3": "<string>",
"modifier_4": "<string>",
"ndc": "<string>",
"ndc_dose": "<string>"
}
],
"patient": 123,
"physician": 123,
"practice": 123,
"service_location": 123,
"visit_note": 123,
"billing_provider": 123,
"notes": "",
"payment": 123,
"payment_amount": "0.00",
"prior_authorization": "<string>",
"rendering_provider": 123,
"show_dual_coding": false,
"supervising_provider": 123
}
'import requests
url = "https://sandbox.elationemr.com/api/2.0/bills/"
payload = {
"cpts": [
{
"cpt": "<string>",
"dxs": [
{
"icd10_code": "<string>",
"icd9_codes": ["<string>"]
}
],
"unit_charge": "<string>",
"units": "<string>",
"modifier_1": "<string>",
"modifier_2": "<string>",
"modifier_3": "<string>",
"modifier_4": "<string>",
"ndc": "<string>",
"ndc_dose": "<string>"
}
],
"patient": 123,
"physician": 123,
"practice": 123,
"service_location": 123,
"visit_note": 123,
"billing_provider": 123,
"notes": "",
"payment": 123,
"payment_amount": "0.00",
"prior_authorization": "<string>",
"rendering_provider": 123,
"show_dual_coding": False,
"supervising_provider": 123
}
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({
cpts: [
{
cpt: '<string>',
dxs: [{icd10_code: '<string>', icd9_codes: ['<string>']}],
unit_charge: '<string>',
units: '<string>',
modifier_1: '<string>',
modifier_2: '<string>',
modifier_3: '<string>',
modifier_4: '<string>',
ndc: '<string>',
ndc_dose: '<string>'
}
],
patient: 123,
physician: 123,
practice: 123,
service_location: 123,
visit_note: 123,
billing_provider: 123,
notes: '',
payment: 123,
payment_amount: '0.00',
prior_authorization: '<string>',
rendering_provider: 123,
show_dual_coding: false,
supervising_provider: 123
})
};
fetch('https://sandbox.elationemr.com/api/2.0/bills/', 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://sandbox.elationemr.com/api/2.0/bills/",
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([
'cpts' => [
[
'cpt' => '<string>',
'dxs' => [
[
'icd10_code' => '<string>',
'icd9_codes' => [
'<string>'
]
]
],
'unit_charge' => '<string>',
'units' => '<string>',
'modifier_1' => '<string>',
'modifier_2' => '<string>',
'modifier_3' => '<string>',
'modifier_4' => '<string>',
'ndc' => '<string>',
'ndc_dose' => '<string>'
]
],
'patient' => 123,
'physician' => 123,
'practice' => 123,
'service_location' => 123,
'visit_note' => 123,
'billing_provider' => 123,
'notes' => '',
'payment' => 123,
'payment_amount' => '0.00',
'prior_authorization' => '<string>',
'rendering_provider' => 123,
'show_dual_coding' => false,
'supervising_provider' => 123
]),
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://sandbox.elationemr.com/api/2.0/bills/"
payload := strings.NewReader("{\n \"cpts\": [\n {\n \"cpt\": \"<string>\",\n \"dxs\": [\n {\n \"icd10_code\": \"<string>\",\n \"icd9_codes\": [\n \"<string>\"\n ]\n }\n ],\n \"unit_charge\": \"<string>\",\n \"units\": \"<string>\",\n \"modifier_1\": \"<string>\",\n \"modifier_2\": \"<string>\",\n \"modifier_3\": \"<string>\",\n \"modifier_4\": \"<string>\",\n \"ndc\": \"<string>\",\n \"ndc_dose\": \"<string>\"\n }\n ],\n \"patient\": 123,\n \"physician\": 123,\n \"practice\": 123,\n \"service_location\": 123,\n \"visit_note\": 123,\n \"billing_provider\": 123,\n \"notes\": \"\",\n \"payment\": 123,\n \"payment_amount\": \"0.00\",\n \"prior_authorization\": \"<string>\",\n \"rendering_provider\": 123,\n \"show_dual_coding\": false,\n \"supervising_provider\": 123\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://sandbox.elationemr.com/api/2.0/bills/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cpts\": [\n {\n \"cpt\": \"<string>\",\n \"dxs\": [\n {\n \"icd10_code\": \"<string>\",\n \"icd9_codes\": [\n \"<string>\"\n ]\n }\n ],\n \"unit_charge\": \"<string>\",\n \"units\": \"<string>\",\n \"modifier_1\": \"<string>\",\n \"modifier_2\": \"<string>\",\n \"modifier_3\": \"<string>\",\n \"modifier_4\": \"<string>\",\n \"ndc\": \"<string>\",\n \"ndc_dose\": \"<string>\"\n }\n ],\n \"patient\": 123,\n \"physician\": 123,\n \"practice\": 123,\n \"service_location\": 123,\n \"visit_note\": 123,\n \"billing_provider\": 123,\n \"notes\": \"\",\n \"payment\": 123,\n \"payment_amount\": \"0.00\",\n \"prior_authorization\": \"<string>\",\n \"rendering_provider\": 123,\n \"show_dual_coding\": false,\n \"supervising_provider\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.elationemr.com/api/2.0/bills/")
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 \"cpts\": [\n {\n \"cpt\": \"<string>\",\n \"dxs\": [\n {\n \"icd10_code\": \"<string>\",\n \"icd9_codes\": [\n \"<string>\"\n ]\n }\n ],\n \"unit_charge\": \"<string>\",\n \"units\": \"<string>\",\n \"modifier_1\": \"<string>\",\n \"modifier_2\": \"<string>\",\n \"modifier_3\": \"<string>\",\n \"modifier_4\": \"<string>\",\n \"ndc\": \"<string>\",\n \"ndc_dose\": \"<string>\"\n }\n ],\n \"patient\": 123,\n \"physician\": 123,\n \"practice\": 123,\n \"service_location\": 123,\n \"visit_note\": 123,\n \"billing_provider\": 123,\n \"notes\": \"\",\n \"payment\": 123,\n \"payment_amount\": \"0.00\",\n \"prior_authorization\": \"<string>\",\n \"rendering_provider\": 123,\n \"show_dual_coding\": false,\n \"supervising_provider\": 123\n}"
response = http.request(request)
puts response.read_body{
"cpts": [
{
"cpt": "<string>",
"dxs": [
{
"icd10_code": "<string>",
"icd9_codes": [
"<string>"
]
}
],
"unit_charge": "<string>",
"units": "<string>",
"modifier_1": "<string>",
"modifier_2": "<string>",
"modifier_3": "<string>",
"modifier_4": "<string>",
"ndc": "<string>",
"ndc_dose": "<string>"
}
],
"patient": 123,
"physician": 123,
"practice": 123,
"service_location": 123,
"visit_note": 123,
"billing_provider": 123,
"id": 123,
"notes": "",
"ordering_provider": {
"name": "<string>",
"state": "<string>",
"npi": "<string>"
},
"payment": 123,
"payment_amount": "0.00",
"prior_authorization": "<string>",
"referring_provider": {
"name": "<string>",
"state": "<string>",
"npi": "<string>"
},
"rendering_provider": 123,
"show_dual_coding": false,
"supervising_provider": 123
}Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
Show child attributes
Show child attributes
The id of the service location the bill is associated with.
Additional billing notes.
1000The id of the provider who orders non-physician services for the patient.
Show child attributes
Show child attributes
Dollar amount of the patient payment.
^-?\d{0,8}(?:\.\d{0,2})?$50Show child attributes
Show child attributes
The id of the provider who has undertaken primary responsibility for the patient's health.
Response
Show child attributes
Show child attributes
The id of the service location the bill is associated with.
Additional billing notes.
1000The id of the provider who orders non-physician services for the patient.
Show child attributes
Show child attributes
Dollar amount of the patient payment.
^-?\d{0,8}(?:\.\d{0,2})?$50Show child attributes
Show child attributes
The id of the provider who has undertaken primary responsibility for the patient's health.
Was this page helpful?
curl --request POST \
--url https://sandbox.elationemr.com/api/2.0/bills/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cpts": [
{
"cpt": "<string>",
"dxs": [
{
"icd10_code": "<string>",
"icd9_codes": [
"<string>"
]
}
],
"unit_charge": "<string>",
"units": "<string>",
"modifier_1": "<string>",
"modifier_2": "<string>",
"modifier_3": "<string>",
"modifier_4": "<string>",
"ndc": "<string>",
"ndc_dose": "<string>"
}
],
"patient": 123,
"physician": 123,
"practice": 123,
"service_location": 123,
"visit_note": 123,
"billing_provider": 123,
"notes": "",
"payment": 123,
"payment_amount": "0.00",
"prior_authorization": "<string>",
"rendering_provider": 123,
"show_dual_coding": false,
"supervising_provider": 123
}
'import requests
url = "https://sandbox.elationemr.com/api/2.0/bills/"
payload = {
"cpts": [
{
"cpt": "<string>",
"dxs": [
{
"icd10_code": "<string>",
"icd9_codes": ["<string>"]
}
],
"unit_charge": "<string>",
"units": "<string>",
"modifier_1": "<string>",
"modifier_2": "<string>",
"modifier_3": "<string>",
"modifier_4": "<string>",
"ndc": "<string>",
"ndc_dose": "<string>"
}
],
"patient": 123,
"physician": 123,
"practice": 123,
"service_location": 123,
"visit_note": 123,
"billing_provider": 123,
"notes": "",
"payment": 123,
"payment_amount": "0.00",
"prior_authorization": "<string>",
"rendering_provider": 123,
"show_dual_coding": False,
"supervising_provider": 123
}
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({
cpts: [
{
cpt: '<string>',
dxs: [{icd10_code: '<string>', icd9_codes: ['<string>']}],
unit_charge: '<string>',
units: '<string>',
modifier_1: '<string>',
modifier_2: '<string>',
modifier_3: '<string>',
modifier_4: '<string>',
ndc: '<string>',
ndc_dose: '<string>'
}
],
patient: 123,
physician: 123,
practice: 123,
service_location: 123,
visit_note: 123,
billing_provider: 123,
notes: '',
payment: 123,
payment_amount: '0.00',
prior_authorization: '<string>',
rendering_provider: 123,
show_dual_coding: false,
supervising_provider: 123
})
};
fetch('https://sandbox.elationemr.com/api/2.0/bills/', 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://sandbox.elationemr.com/api/2.0/bills/",
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([
'cpts' => [
[
'cpt' => '<string>',
'dxs' => [
[
'icd10_code' => '<string>',
'icd9_codes' => [
'<string>'
]
]
],
'unit_charge' => '<string>',
'units' => '<string>',
'modifier_1' => '<string>',
'modifier_2' => '<string>',
'modifier_3' => '<string>',
'modifier_4' => '<string>',
'ndc' => '<string>',
'ndc_dose' => '<string>'
]
],
'patient' => 123,
'physician' => 123,
'practice' => 123,
'service_location' => 123,
'visit_note' => 123,
'billing_provider' => 123,
'notes' => '',
'payment' => 123,
'payment_amount' => '0.00',
'prior_authorization' => '<string>',
'rendering_provider' => 123,
'show_dual_coding' => false,
'supervising_provider' => 123
]),
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://sandbox.elationemr.com/api/2.0/bills/"
payload := strings.NewReader("{\n \"cpts\": [\n {\n \"cpt\": \"<string>\",\n \"dxs\": [\n {\n \"icd10_code\": \"<string>\",\n \"icd9_codes\": [\n \"<string>\"\n ]\n }\n ],\n \"unit_charge\": \"<string>\",\n \"units\": \"<string>\",\n \"modifier_1\": \"<string>\",\n \"modifier_2\": \"<string>\",\n \"modifier_3\": \"<string>\",\n \"modifier_4\": \"<string>\",\n \"ndc\": \"<string>\",\n \"ndc_dose\": \"<string>\"\n }\n ],\n \"patient\": 123,\n \"physician\": 123,\n \"practice\": 123,\n \"service_location\": 123,\n \"visit_note\": 123,\n \"billing_provider\": 123,\n \"notes\": \"\",\n \"payment\": 123,\n \"payment_amount\": \"0.00\",\n \"prior_authorization\": \"<string>\",\n \"rendering_provider\": 123,\n \"show_dual_coding\": false,\n \"supervising_provider\": 123\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://sandbox.elationemr.com/api/2.0/bills/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cpts\": [\n {\n \"cpt\": \"<string>\",\n \"dxs\": [\n {\n \"icd10_code\": \"<string>\",\n \"icd9_codes\": [\n \"<string>\"\n ]\n }\n ],\n \"unit_charge\": \"<string>\",\n \"units\": \"<string>\",\n \"modifier_1\": \"<string>\",\n \"modifier_2\": \"<string>\",\n \"modifier_3\": \"<string>\",\n \"modifier_4\": \"<string>\",\n \"ndc\": \"<string>\",\n \"ndc_dose\": \"<string>\"\n }\n ],\n \"patient\": 123,\n \"physician\": 123,\n \"practice\": 123,\n \"service_location\": 123,\n \"visit_note\": 123,\n \"billing_provider\": 123,\n \"notes\": \"\",\n \"payment\": 123,\n \"payment_amount\": \"0.00\",\n \"prior_authorization\": \"<string>\",\n \"rendering_provider\": 123,\n \"show_dual_coding\": false,\n \"supervising_provider\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.elationemr.com/api/2.0/bills/")
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 \"cpts\": [\n {\n \"cpt\": \"<string>\",\n \"dxs\": [\n {\n \"icd10_code\": \"<string>\",\n \"icd9_codes\": [\n \"<string>\"\n ]\n }\n ],\n \"unit_charge\": \"<string>\",\n \"units\": \"<string>\",\n \"modifier_1\": \"<string>\",\n \"modifier_2\": \"<string>\",\n \"modifier_3\": \"<string>\",\n \"modifier_4\": \"<string>\",\n \"ndc\": \"<string>\",\n \"ndc_dose\": \"<string>\"\n }\n ],\n \"patient\": 123,\n \"physician\": 123,\n \"practice\": 123,\n \"service_location\": 123,\n \"visit_note\": 123,\n \"billing_provider\": 123,\n \"notes\": \"\",\n \"payment\": 123,\n \"payment_amount\": \"0.00\",\n \"prior_authorization\": \"<string>\",\n \"rendering_provider\": 123,\n \"show_dual_coding\": false,\n \"supervising_provider\": 123\n}"
response = http.request(request)
puts response.read_body{
"cpts": [
{
"cpt": "<string>",
"dxs": [
{
"icd10_code": "<string>",
"icd9_codes": [
"<string>"
]
}
],
"unit_charge": "<string>",
"units": "<string>",
"modifier_1": "<string>",
"modifier_2": "<string>",
"modifier_3": "<string>",
"modifier_4": "<string>",
"ndc": "<string>",
"ndc_dose": "<string>"
}
],
"patient": 123,
"physician": 123,
"practice": 123,
"service_location": 123,
"visit_note": 123,
"billing_provider": 123,
"id": 123,
"notes": "",
"ordering_provider": {
"name": "<string>",
"state": "<string>",
"npi": "<string>"
},
"payment": 123,
"payment_amount": "0.00",
"prior_authorization": "<string>",
"referring_provider": {
"name": "<string>",
"state": "<string>",
"npi": "<string>"
},
"rendering_provider": 123,
"show_dual_coding": false,
"supervising_provider": 123
}