I'm running into an issue when posting insurance payments through the Open Dental API and hoping someone can help or confirm if this is expected behavior.
The problem:
When I use PUT /claimprocs/{id} to update a claim procedure's status to "Received," OpenDental automatically clears the InsPayEst field to 0. The estimate gets wiped out even though I'm not touching that field in my request.
API request (Example):
PUT /claimprocs/293
Code: Select all
{
"Status": "Received",
"InsPayAmt": 51.0,
"DedApplied": 0.0,
"WriteOff": 0.0
}What's confusing:
When I perform the same action through the OpenDental desktop software, InsPayEst retains its value. This only happens when posting via the API.
Since InsPayEst is a read-only calculated field in the API, I can't restore it with a subsequent PUT call either.
API reference: https://www.opendental.com/site/apiclaimprocs.html
My questions:
1. Is this the intended behavior when posting claims through the API, or is this a bug?
2. Is there a recommended workaround to preserve the InsPayEst value when posting via the API?
3. Has anyone else encountered this discrepancy between the API and UI behavior?
Any insight would be greatly appreciated. Thanks in advance!