Test environment connection

This forum is for programmers who have questions about the source code.
Post Reply
Blouka
Posts: 3
Joined: Tue Apr 14, 2020 3:01 pm

Test environment connection

Post by Blouka » Tue Apr 14, 2020 3:04 pm

I am trying to connect to the test env for open dental API using the developer key and customer API key from the API documentation (9.3 pdf) but I can't seem to get it to work. I keep getting an error "Improper authorization header. Format is 'Authorization: ODFHIR {developerKey}/{apiKey}'.".

Could you please advice on what is a valid developer key and if the below basic api call should work in the test environment.

curl --location --request GET 'https://api.opendental.com/fhir/v2/capabilitystatement' \
--header 'Authorization: ODFHIR NFF6i0KrXrxDkZHt/VzkmZEaUWOjnQX2z' \
--header 'Content-Type: application/json'

After emailing vendor.relations@opendental.com I was referred to open a topic in this form to get help.

Thank you

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Test environment connection

Post by cmcgehee » Tue Apr 14, 2020 4:54 pm

Try including the accept header:

Code: Select all

curl --location --request GET 'https://api.opendental.com/fhir/v2/capabilitystatement' --header 'Authorization: ODFHIR NFF6i0KrXrxDkZHt/VzkmZEaUWOjnQX2z' --header 'Accept: application/json'
Chris McGehee
Open Dental Software
http://www.opendental.com

Blouka
Posts: 3
Joined: Tue Apr 14, 2020 3:01 pm

Re: Test environment connection

Post by Blouka » Tue Apr 14, 2020 6:26 pm

It works now! Thank you for the prompt help.

Blouka
Posts: 3
Joined: Tue Apr 14, 2020 3:01 pm

Re: Test environment connection

Post by Blouka » Tue Apr 14, 2020 7:40 pm

I am trying to figure out if I can use the API to fetch the "dollar cost" of each procedure/appointment and insurance adjustments vs collection. Is this doable with the latest API version ?

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Test environment connection

Post by cmcgehee » Wed Apr 15, 2020 7:11 am

We do not have that information available through our API. I know that they sent you here, but you can talk to vendor.relations@opendental.com if you are interested in us adding that.
Chris McGehee
Open Dental Software
http://www.opendental.com

Post Reply