API - Benefits

For requests or help with our API
Post Reply
aearl23
Posts: 18
Joined: Wed Jan 22, 2025 3:33 pm

API - Benefits

Post by aearl23 » Wed Jan 22, 2025 3:38 pm

I am having issues with the Benefits API when posting an AgeLimit. Here is the response I am getting:

OpenDental API error: 400 - "QuantityQualifier not allowed to be AgeLimit."

Here is what I am sending :

"PlanNum": self.plan_num,
"BenefitType": "Limitations",
"CoverageLevel": "None",
"TimePeriod": "None",
"QuantityQualifier": "AgeLimit",
"Quantity": int(fluoride_age),
"CodeGroupNum": fluoride_group_num,
"Percent": -1,
"MonetaryAmt": -1.0

I am on version 24.3.43.0

RyanH
Posts: 24
Joined: Thu Dec 19, 2024 8:33 am

Re: API - Benefits

Post by RyanH » Wed Jan 29, 2025 11:57 am

aearl23 wrote:
Wed Jan 22, 2025 3:38 pm
I am having issues with the Benefits API when posting an AgeLimit. Here is the response I am getting:

OpenDental API error: 400 - "QuantityQualifier not allowed to be AgeLimit."

Here is what I am sending :

"PlanNum": self.plan_num,
"BenefitType": "Limitations",
"CoverageLevel": "None",
"TimePeriod": "None",
"QuantityQualifier": "AgeLimit",
"Quantity": int(fluoride_age),
"CodeGroupNum": fluoride_group_num,
"Percent": -1,
"MonetaryAmt": -1.0

I am on version 24.3.43.0
Hello aearl23,
There are multiple possibilities which could produce that response code, as Benefits POST is a complex endpoint. One possible scenario that’s easier to diagnose could be that the “CodeGroupNum” in your request doesn’t link to a code group with the value “Fluoride” for the “CodeGroupFixed” field in the CodeGroup table.

To verify this, you can either send a GET request to CodeGroups via the API, or you can go to 'Setup>Code Groups' and double-click on the code group in question through the OpenDental software.

Thanks!

Post Reply