Page 1 of 1
422 error when posting Leads
Posted: Tue Mar 04, 2025 11:34 pm
by spolacsek
Hi there,
Recently our posts to the Lead endpoint is creating an error:
Endpoint:
Code: Select all
[POST] /api/v1.0/companies/4/leads/
Request:
Code: Select all
{
"Customer": 59634,
"Site": 65046,
"CustomerContact": 63079,
"SiteContact": 63079,
"Stage": "Open",
"Description": "Test Description",
"Notes": "Test Notes"
}
Response:
Code: Select all
422 Unprocessable Entity
{
"errors": [
{
"path": "/Stage",
"message": "This API Column does not allow POST requests.",
"value": "Open"
}
]
}
The documentation states that "Stage" is an acceptable column in the Request:
https://developer.simprogroup.com/apido ... e5e3c7bcf1
Any help would be great.
Thanks,
Sean.
Re: 422 error when posting Leads
Posted: Fri Mar 07, 2025 5:42 am
by SimproAPITeam
Hi,
Thanks for reporting this. There should be a fix released in our upcoming release.
Regards
Re: 422 error when posting Leads
Posted: Tue Mar 11, 2025 11:42 pm
by cmelecqld
When is the upcoming release??
Re: 422 error when posting Leads
Posted: Fri Mar 14, 2025 5:38 am
by SimproAPITeam
Hi cmelecqld,
It should be soon, but if it is urgent, please raise the issue through our support if you have not already.
more info:
viewtopic.php?f=3&t=2675
Thanks
Re: 422 error when posting Leads
Posted: Wed Mar 26, 2025 9:46 am
by cmelecqld
Been told the issue would be fixed in the next update on March 23... but it's now March 26 and I've still got the same problem.
My IT guy said this today when looked into it...
Checking this now in your account, unfortunately we still receive the following error when attempting to process a Lead into your SimPRO using their API, so unfortunately this issue still persists, and they would need to review further before this can be activated again:
This API Column does not allow POST requests. (HTTP Status Code: 422)
Re: 422 error when posting Leads
Posted: Wed Mar 26, 2025 9:48 am
by cmelecqld
Hi guys,
Was told by the "Customer Success Team Lead" that this bug would be fixed in the update on March 23, but today my IT support guy sent me this...
Checking this now in your account, unfortunately we still receive the following error when attempting to process a Lead into your SimPRO using their API, so unfortunately this issue still persists, and they would need to review further before this can be activated again:
This API Column does not allow POST requests. (HTTP Status Code: 422)
Re: 422 error when posting Leads
Posted: Fri Mar 28, 2025 3:11 am
by SimproAPITeam
Hi cmelecqld,
The fix was released in 25.1.6. Could you check your Simpro version please?
Also, removing Stage from the post payload is a quick wrokaround to bypass this issue. and the lead will be created with Open stage by default.
{
"Customer": 59634,
"Site": 65046,
"CustomerContact": 63079,
"SiteContact": 63079,
"Description": "Test Description",
"Notes": "Test Notes"
}
Let us know if the issue is still happening if you are on latest version