Submit a claim
curl --request POST \
--url https://api.anagram.care/api/auth/v1/claims/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "draft",
"patient": {
"dob": "1998-02-11",
"first_name": "Max",
"last_name": "Smith",
"type": "child",
"address": {
"line1": "String name",
"city": "City",
"zipcode": "12332",
"state": "CA"
}
},
"primary_member": {
"address": {
"city": "City",
"line1": "String name",
"state": "CA",
"zipcode": "12332"
},
"dob": "1988-10-11",
"first_name": "John",
"insurer_code": "insurer:demo:vision",
"last_name": "Smith",
"member_id": "A123455",
"phone": "0987654321",
"ssn_last_four": "1242"
},
"services": [
{
"codes": [
"S0504"
],
"cost": "12.22",
"date": "2022-02-11",
"quantity": 2,
"diagnosis_codes": [
"H52.10"
]
},
{
"codes": [
"V2781"
],
"cost": "44.21",
"date": "2022-02-11",
"quantity": 1
}
],
"paid_amount": "68.65"
}
'import requests
url = "https://api.anagram.care/api/auth/v1/claims/"
payload = {
"status": "draft",
"patient": {
"dob": "1998-02-11",
"first_name": "Max",
"last_name": "Smith",
"type": "child",
"address": {
"line1": "String name",
"city": "City",
"zipcode": "12332",
"state": "CA"
}
},
"primary_member": {
"address": {
"city": "City",
"line1": "String name",
"state": "CA",
"zipcode": "12332"
},
"dob": "1988-10-11",
"first_name": "John",
"insurer_code": "insurer:demo:vision",
"last_name": "Smith",
"member_id": "A123455",
"phone": "0987654321",
"ssn_last_four": "1242"
},
"services": [
{
"codes": ["S0504"],
"cost": "12.22",
"date": "2022-02-11",
"quantity": 2,
"diagnosis_codes": ["H52.10"]
},
{
"codes": ["V2781"],
"cost": "44.21",
"date": "2022-02-11",
"quantity": 1
}
],
"paid_amount": "68.65"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
status: 'draft',
patient: {
dob: '1998-02-11',
first_name: 'Max',
last_name: 'Smith',
type: 'child',
address: {line1: 'String name', city: 'City', zipcode: '12332', state: 'CA'}
},
primary_member: {
address: {city: 'City', line1: 'String name', state: 'CA', zipcode: '12332'},
dob: '1988-10-11',
first_name: 'John',
insurer_code: 'insurer:demo:vision',
last_name: 'Smith',
member_id: 'A123455',
phone: '0987654321',
ssn_last_four: '1242'
},
services: [
{
codes: ['S0504'],
cost: '12.22',
date: '2022-02-11',
quantity: 2,
diagnosis_codes: ['H52.10']
},
{codes: ['V2781'], cost: '44.21', date: '2022-02-11', quantity: 1}
],
paid_amount: '68.65'
})
};
fetch('https://api.anagram.care/api/auth/v1/claims/', 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.anagram.care/api/auth/v1/claims/",
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([
'status' => 'draft',
'patient' => [
'dob' => '1998-02-11',
'first_name' => 'Max',
'last_name' => 'Smith',
'type' => 'child',
'address' => [
'line1' => 'String name',
'city' => 'City',
'zipcode' => '12332',
'state' => 'CA'
]
],
'primary_member' => [
'address' => [
'city' => 'City',
'line1' => 'String name',
'state' => 'CA',
'zipcode' => '12332'
],
'dob' => '1988-10-11',
'first_name' => 'John',
'insurer_code' => 'insurer:demo:vision',
'last_name' => 'Smith',
'member_id' => 'A123455',
'phone' => '0987654321',
'ssn_last_four' => '1242'
],
'services' => [
[
'codes' => [
'S0504'
],
'cost' => '12.22',
'date' => '2022-02-11',
'quantity' => 2,
'diagnosis_codes' => [
'H52.10'
]
],
[
'codes' => [
'V2781'
],
'cost' => '44.21',
'date' => '2022-02-11',
'quantity' => 1
]
],
'paid_amount' => '68.65'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.anagram.care/api/auth/v1/claims/"
payload := strings.NewReader("{\n \"status\": \"draft\",\n \"patient\": {\n \"dob\": \"1998-02-11\",\n \"first_name\": \"Max\",\n \"last_name\": \"Smith\",\n \"type\": \"child\",\n \"address\": {\n \"line1\": \"String name\",\n \"city\": \"City\",\n \"zipcode\": \"12332\",\n \"state\": \"CA\"\n }\n },\n \"primary_member\": {\n \"address\": {\n \"city\": \"City\",\n \"line1\": \"String name\",\n \"state\": \"CA\",\n \"zipcode\": \"12332\"\n },\n \"dob\": \"1988-10-11\",\n \"first_name\": \"John\",\n \"insurer_code\": \"insurer:demo:vision\",\n \"last_name\": \"Smith\",\n \"member_id\": \"A123455\",\n \"phone\": \"0987654321\",\n \"ssn_last_four\": \"1242\"\n },\n \"services\": [\n {\n \"codes\": [\n \"S0504\"\n ],\n \"cost\": \"12.22\",\n \"date\": \"2022-02-11\",\n \"quantity\": 2,\n \"diagnosis_codes\": [\n \"H52.10\"\n ]\n },\n {\n \"codes\": [\n \"V2781\"\n ],\n \"cost\": \"44.21\",\n \"date\": \"2022-02-11\",\n \"quantity\": 1\n }\n ],\n \"paid_amount\": \"68.65\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.anagram.care/api/auth/v1/claims/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"draft\",\n \"patient\": {\n \"dob\": \"1998-02-11\",\n \"first_name\": \"Max\",\n \"last_name\": \"Smith\",\n \"type\": \"child\",\n \"address\": {\n \"line1\": \"String name\",\n \"city\": \"City\",\n \"zipcode\": \"12332\",\n \"state\": \"CA\"\n }\n },\n \"primary_member\": {\n \"address\": {\n \"city\": \"City\",\n \"line1\": \"String name\",\n \"state\": \"CA\",\n \"zipcode\": \"12332\"\n },\n \"dob\": \"1988-10-11\",\n \"first_name\": \"John\",\n \"insurer_code\": \"insurer:demo:vision\",\n \"last_name\": \"Smith\",\n \"member_id\": \"A123455\",\n \"phone\": \"0987654321\",\n \"ssn_last_four\": \"1242\"\n },\n \"services\": [\n {\n \"codes\": [\n \"S0504\"\n ],\n \"cost\": \"12.22\",\n \"date\": \"2022-02-11\",\n \"quantity\": 2,\n \"diagnosis_codes\": [\n \"H52.10\"\n ]\n },\n {\n \"codes\": [\n \"V2781\"\n ],\n \"cost\": \"44.21\",\n \"date\": \"2022-02-11\",\n \"quantity\": 1\n }\n ],\n \"paid_amount\": \"68.65\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anagram.care/api/auth/v1/claims/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"draft\",\n \"patient\": {\n \"dob\": \"1998-02-11\",\n \"first_name\": \"Max\",\n \"last_name\": \"Smith\",\n \"type\": \"child\",\n \"address\": {\n \"line1\": \"String name\",\n \"city\": \"City\",\n \"zipcode\": \"12332\",\n \"state\": \"CA\"\n }\n },\n \"primary_member\": {\n \"address\": {\n \"city\": \"City\",\n \"line1\": \"String name\",\n \"state\": \"CA\",\n \"zipcode\": \"12332\"\n },\n \"dob\": \"1988-10-11\",\n \"first_name\": \"John\",\n \"insurer_code\": \"insurer:demo:vision\",\n \"last_name\": \"Smith\",\n \"member_id\": \"A123455\",\n \"phone\": \"0987654321\",\n \"ssn_last_four\": \"1242\"\n },\n \"services\": [\n {\n \"codes\": [\n \"S0504\"\n ],\n \"cost\": \"12.22\",\n \"date\": \"2022-02-11\",\n \"quantity\": 2,\n \"diagnosis_codes\": [\n \"H52.10\"\n ]\n },\n {\n \"codes\": [\n \"V2781\"\n ],\n \"cost\": \"44.21\",\n \"date\": \"2022-02-11\",\n \"quantity\": 1\n }\n ],\n \"paid_amount\": \"68.65\"\n}"
response = http.request(request)
puts response.read_body{
"code": "CLM21T",
"patient": {
"address": {
"city": "City",
"line1": "String name",
"line2": null,
"recipient": null,
"state": "CA",
"zipcode": "12332"
},
"dob": "1998-02-11",
"email": null,
"first_name": "Max",
"last_name": "Smith",
"member_id": null,
"phone": null,
"sex": null,
"ssn_last_four": null,
"type": "child"
},
"primary_member": {
"address": {
"city": "City",
"line1": "String name",
"line2": null,
"recipient": null,
"state": "CA",
"zipcode": "12332"
},
"dob": "1988-10-11",
"email": null,
"first_name": "John",
"insurer_code": "insurer:demo:vision",
"last_name": "Smith",
"member_id": "A123455",
"phone": "0987654321",
"sex": null,
"ssn_last_four": "1242"
},
"services": [
{
"codes": [
"S0504"
],
"cost": "12.2200",
"date": "2022-02-11",
"quantity": 2,
"diagnosis_codes": [
"H52.10"
]
},
{
"codes": [
"V2781"
],
"cost": "44.2100",
"date": "2022-02-11",
"quantity": 1,
"diagnosis_codes": []
}
],
"status": "ready",
"paid_amount": "68.6500"
}Authenticated API
Create Claim
Creating and submitting an out-of-network vision claim
POST
/
api
/
auth
/
v1
/
claims
/
Submit a claim
curl --request POST \
--url https://api.anagram.care/api/auth/v1/claims/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "draft",
"patient": {
"dob": "1998-02-11",
"first_name": "Max",
"last_name": "Smith",
"type": "child",
"address": {
"line1": "String name",
"city": "City",
"zipcode": "12332",
"state": "CA"
}
},
"primary_member": {
"address": {
"city": "City",
"line1": "String name",
"state": "CA",
"zipcode": "12332"
},
"dob": "1988-10-11",
"first_name": "John",
"insurer_code": "insurer:demo:vision",
"last_name": "Smith",
"member_id": "A123455",
"phone": "0987654321",
"ssn_last_four": "1242"
},
"services": [
{
"codes": [
"S0504"
],
"cost": "12.22",
"date": "2022-02-11",
"quantity": 2,
"diagnosis_codes": [
"H52.10"
]
},
{
"codes": [
"V2781"
],
"cost": "44.21",
"date": "2022-02-11",
"quantity": 1
}
],
"paid_amount": "68.65"
}
'import requests
url = "https://api.anagram.care/api/auth/v1/claims/"
payload = {
"status": "draft",
"patient": {
"dob": "1998-02-11",
"first_name": "Max",
"last_name": "Smith",
"type": "child",
"address": {
"line1": "String name",
"city": "City",
"zipcode": "12332",
"state": "CA"
}
},
"primary_member": {
"address": {
"city": "City",
"line1": "String name",
"state": "CA",
"zipcode": "12332"
},
"dob": "1988-10-11",
"first_name": "John",
"insurer_code": "insurer:demo:vision",
"last_name": "Smith",
"member_id": "A123455",
"phone": "0987654321",
"ssn_last_four": "1242"
},
"services": [
{
"codes": ["S0504"],
"cost": "12.22",
"date": "2022-02-11",
"quantity": 2,
"diagnosis_codes": ["H52.10"]
},
{
"codes": ["V2781"],
"cost": "44.21",
"date": "2022-02-11",
"quantity": 1
}
],
"paid_amount": "68.65"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
status: 'draft',
patient: {
dob: '1998-02-11',
first_name: 'Max',
last_name: 'Smith',
type: 'child',
address: {line1: 'String name', city: 'City', zipcode: '12332', state: 'CA'}
},
primary_member: {
address: {city: 'City', line1: 'String name', state: 'CA', zipcode: '12332'},
dob: '1988-10-11',
first_name: 'John',
insurer_code: 'insurer:demo:vision',
last_name: 'Smith',
member_id: 'A123455',
phone: '0987654321',
ssn_last_four: '1242'
},
services: [
{
codes: ['S0504'],
cost: '12.22',
date: '2022-02-11',
quantity: 2,
diagnosis_codes: ['H52.10']
},
{codes: ['V2781'], cost: '44.21', date: '2022-02-11', quantity: 1}
],
paid_amount: '68.65'
})
};
fetch('https://api.anagram.care/api/auth/v1/claims/', 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.anagram.care/api/auth/v1/claims/",
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([
'status' => 'draft',
'patient' => [
'dob' => '1998-02-11',
'first_name' => 'Max',
'last_name' => 'Smith',
'type' => 'child',
'address' => [
'line1' => 'String name',
'city' => 'City',
'zipcode' => '12332',
'state' => 'CA'
]
],
'primary_member' => [
'address' => [
'city' => 'City',
'line1' => 'String name',
'state' => 'CA',
'zipcode' => '12332'
],
'dob' => '1988-10-11',
'first_name' => 'John',
'insurer_code' => 'insurer:demo:vision',
'last_name' => 'Smith',
'member_id' => 'A123455',
'phone' => '0987654321',
'ssn_last_four' => '1242'
],
'services' => [
[
'codes' => [
'S0504'
],
'cost' => '12.22',
'date' => '2022-02-11',
'quantity' => 2,
'diagnosis_codes' => [
'H52.10'
]
],
[
'codes' => [
'V2781'
],
'cost' => '44.21',
'date' => '2022-02-11',
'quantity' => 1
]
],
'paid_amount' => '68.65'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.anagram.care/api/auth/v1/claims/"
payload := strings.NewReader("{\n \"status\": \"draft\",\n \"patient\": {\n \"dob\": \"1998-02-11\",\n \"first_name\": \"Max\",\n \"last_name\": \"Smith\",\n \"type\": \"child\",\n \"address\": {\n \"line1\": \"String name\",\n \"city\": \"City\",\n \"zipcode\": \"12332\",\n \"state\": \"CA\"\n }\n },\n \"primary_member\": {\n \"address\": {\n \"city\": \"City\",\n \"line1\": \"String name\",\n \"state\": \"CA\",\n \"zipcode\": \"12332\"\n },\n \"dob\": \"1988-10-11\",\n \"first_name\": \"John\",\n \"insurer_code\": \"insurer:demo:vision\",\n \"last_name\": \"Smith\",\n \"member_id\": \"A123455\",\n \"phone\": \"0987654321\",\n \"ssn_last_four\": \"1242\"\n },\n \"services\": [\n {\n \"codes\": [\n \"S0504\"\n ],\n \"cost\": \"12.22\",\n \"date\": \"2022-02-11\",\n \"quantity\": 2,\n \"diagnosis_codes\": [\n \"H52.10\"\n ]\n },\n {\n \"codes\": [\n \"V2781\"\n ],\n \"cost\": \"44.21\",\n \"date\": \"2022-02-11\",\n \"quantity\": 1\n }\n ],\n \"paid_amount\": \"68.65\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.anagram.care/api/auth/v1/claims/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"status\": \"draft\",\n \"patient\": {\n \"dob\": \"1998-02-11\",\n \"first_name\": \"Max\",\n \"last_name\": \"Smith\",\n \"type\": \"child\",\n \"address\": {\n \"line1\": \"String name\",\n \"city\": \"City\",\n \"zipcode\": \"12332\",\n \"state\": \"CA\"\n }\n },\n \"primary_member\": {\n \"address\": {\n \"city\": \"City\",\n \"line1\": \"String name\",\n \"state\": \"CA\",\n \"zipcode\": \"12332\"\n },\n \"dob\": \"1988-10-11\",\n \"first_name\": \"John\",\n \"insurer_code\": \"insurer:demo:vision\",\n \"last_name\": \"Smith\",\n \"member_id\": \"A123455\",\n \"phone\": \"0987654321\",\n \"ssn_last_four\": \"1242\"\n },\n \"services\": [\n {\n \"codes\": [\n \"S0504\"\n ],\n \"cost\": \"12.22\",\n \"date\": \"2022-02-11\",\n \"quantity\": 2,\n \"diagnosis_codes\": [\n \"H52.10\"\n ]\n },\n {\n \"codes\": [\n \"V2781\"\n ],\n \"cost\": \"44.21\",\n \"date\": \"2022-02-11\",\n \"quantity\": 1\n }\n ],\n \"paid_amount\": \"68.65\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anagram.care/api/auth/v1/claims/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": \"draft\",\n \"patient\": {\n \"dob\": \"1998-02-11\",\n \"first_name\": \"Max\",\n \"last_name\": \"Smith\",\n \"type\": \"child\",\n \"address\": {\n \"line1\": \"String name\",\n \"city\": \"City\",\n \"zipcode\": \"12332\",\n \"state\": \"CA\"\n }\n },\n \"primary_member\": {\n \"address\": {\n \"city\": \"City\",\n \"line1\": \"String name\",\n \"state\": \"CA\",\n \"zipcode\": \"12332\"\n },\n \"dob\": \"1988-10-11\",\n \"first_name\": \"John\",\n \"insurer_code\": \"insurer:demo:vision\",\n \"last_name\": \"Smith\",\n \"member_id\": \"A123455\",\n \"phone\": \"0987654321\",\n \"ssn_last_four\": \"1242\"\n },\n \"services\": [\n {\n \"codes\": [\n \"S0504\"\n ],\n \"cost\": \"12.22\",\n \"date\": \"2022-02-11\",\n \"quantity\": 2,\n \"diagnosis_codes\": [\n \"H52.10\"\n ]\n },\n {\n \"codes\": [\n \"V2781\"\n ],\n \"cost\": \"44.21\",\n \"date\": \"2022-02-11\",\n \"quantity\": 1\n }\n ],\n \"paid_amount\": \"68.65\"\n}"
response = http.request(request)
puts response.read_body{
"code": "CLM21T",
"patient": {
"address": {
"city": "City",
"line1": "String name",
"line2": null,
"recipient": null,
"state": "CA",
"zipcode": "12332"
},
"dob": "1998-02-11",
"email": null,
"first_name": "Max",
"last_name": "Smith",
"member_id": null,
"phone": null,
"sex": null,
"ssn_last_four": null,
"type": "child"
},
"primary_member": {
"address": {
"city": "City",
"line1": "String name",
"line2": null,
"recipient": null,
"state": "CA",
"zipcode": "12332"
},
"dob": "1988-10-11",
"email": null,
"first_name": "John",
"insurer_code": "insurer:demo:vision",
"last_name": "Smith",
"member_id": "A123455",
"phone": "0987654321",
"sex": null,
"ssn_last_four": "1242"
},
"services": [
{
"codes": [
"S0504"
],
"cost": "12.2200",
"date": "2022-02-11",
"quantity": 2,
"diagnosis_codes": [
"H52.10"
]
},
{
"codes": [
"V2781"
],
"cost": "44.2100",
"date": "2022-02-11",
"quantity": 1,
"diagnosis_codes": []
}
],
"status": "ready",
"paid_amount": "68.6500"
}The claim object contains all the information required to send a claim to an insurer:
- insurer
- patient details
- primary member details (can be same as patient details)
- list of services
Request Parameters
The main fields of claim are:patient: JSON object, representing patient detailsprimary_member: JSON object, representing primary patient memberservices: list of JSON objects, representing services that can be reimbursedstatus: Claim status -draftorready(default). Usedraftto create a claim for manual review in the Anagram web app and manual submission.
patient and primary_member must be provided even if the claim is created for a primary member. In this case, both the patient object and primary_member object must contain the same data.Authorizations
Body
application/json