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
API - Benefits
Re: API - Benefits
Hello aearl23,aearl23 wrote: ↑Wed Jan 22, 2025 3:38 pmI 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
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!