Browse our guides and interact with our API reference for more information about MEDSAPI DynaMed. Try MEDSAPI DynaMed and learn about core concepts.

 

 

 

 

Get Detailed Claims Code Samples

Use the code samples below as examples to create an application in your desired language.  The following code samples use the /detailed-claims endpoint to get claimed credit information for a stated date range.  Get started and begin to understand the endpoint by following the examples below in the language of your choice. 

 

# Detailed Claims

curl -X GET "https://apis.ebsco.com/medsapi-dynamed/v1/user/detailed-claims?startDate=2020-10-23&endDate=2020-10-27&page=30&pageSize=10"
  -H "accept: application/json"
  -H "authorization: Bearer TOKEN"
  -H "Content-Type: application/json"
// Detailed Claims

// Construct the client
OkHttpClient client = new OkHttpClient();

// Create the URL
HttpUrl url = new HttpUrl.Builder()
    .scheme("https")
    .host("apis.ebsco.com")
    .addPathSegment("medsapi-dynamed")
    .addPathSegment("v1")
    .addPathSegment("user")
    .addPathSegment("detailed-claims")
    .addQueryParameter("startDate", "2020-10-23")
    .addQueryParameter("endDate", "2020-10-27")
    .addQueryParameter("page", "30")
    .addQueryParameter("pageSize", "10")
    .build();


// Build the request
Request request = new Request.Builder()
    .url(url)
    .get()
    .addHeader("Accept", "application/json")
    .addHeader("Authorization", "Bearer TOKEN")
    .addHeader("Content-Type", "application/json")
    .build();

// Send the request
Response response = client.newCall(request).execute();
// Detailed Claims

const host = "https://apis.ebsco.com";
const path = "/medsapi-dynamed/v1/user/detailed-claims";
const queryParams = {
    startDate: "2020-10-23",
    endDate: "2020-10-27",
    page: "30",
    pageSize: "10"
};

// Create the Request
const url = host + path;

const settings = {
    async: true,
    crossDomain: true,
    url: url,
    method: "GET",
    headers: {
        Accept: "application/json",
        Authorization: "Bearer TOKEN",
        Content-Type: "application/json"
    },
    data: queryParams
};

// Send the Request
$.ajax(settings).done(function (response) {
    console.log(response);
});
# Detailed Claims

# Form the URL 
urlstr = File.join('https://', 'apis.ebsco.com', 'medsapi-dynamed/v1/user/detailed-claims')
uri = URI.parse(urlstr)
params = { :startDate => "2020-10-23", :endDate => "2020-10-27", :page => "30", :pageSize => "10" }

# Add params to URI
uri.query = URI.encode_www_form( params )

# Create the HTTP object
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

# Create the request
request = Net::HTTP::Get.new(uri)
request["Accept"] = "application/json"
request["Authorization"] = "Bearer TOKEN"
request["Content-Type"] = "application/json"

# Send the request
response = http.request(request)
# Detailed Claims

# Form the URL
url = ''.join(['/medsapi-dynamed/v1/user','/detailed-claims'])
queryParams = {
   'startDate': "2020-10-23",
   'endDate': "2020-10-27",
   'page': "30",
   'pageSize': "10"
}

# Create Connection Instance
conn = http.client.HTTPSConnection("apis.ebsco.com")

# Create the Request Headers
headers = {
    'Authorization': "Bearer TOKEN",
    'Accept': "application/json",
    'content-type': "application/json"  
    }

# Send Request  
conn.request("GET", url, queryParams, headers)