Hello Simpro Support,
I use this endpoint to retrieve timesheets:
/api/v1.0/companies/{companyID}/employees/{employeeID}/timesheets/
And use this query parameters:
StartDate=2025-11-21
EndDate=2025-11-22
Includes=Job,Activity
It used to send the correct results for the dates but now is returns this error:
ERROR: Could not process your request. Please contact support.
If i do not use the query parameters and leave it null, it only returns the jobs and activity for today.
Am i doing something wrong?
Thanks in advance,
Godfrey
Timesheets error
Forum rules
- Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
- No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
- Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
- Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
- Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
- Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
- Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
- Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
-
SimproAPITeam
- Posts: 831
- Joined: Wed May 01, 2024 2:31 am
Re: Timesheets error
Hi gmason,
Thank you for reporting this.
We've tested the parameters you mention to replicate the issue. It seems like the date parameters by itself are working as expected. Could you please try with the start and end date and remove the "Includes" parameter to verify.
When I use "Include=Job" I could recreate the 500 error response you reported. Adding quote to the list would return the expected response.
Please see if you can change the parameters to get a successful response.
We will create a defect with the reported parameters so we can release a fix for this an a future release. Please note that I can not promise a timeline for this.
Regards
Thank you for reporting this.
We've tested the parameters you mention to replicate the issue. It seems like the date parameters by itself are working as expected. Could you please try with the start and end date and remove the "Includes" parameter to verify.
When I use "Include=Job" I could recreate the 500 error response you reported. Adding quote to the list would return the expected response.
Code: Select all
?StartDate=2025-11-01&EndDate=2025-11-30&Includes=Job,QuoteWe will create a defect with the reported parameters so we can release a fix for this an a future release. Please note that I can not promise a timeline for this.
Regards
Simpro API Team | Simpro Software Group
Re: Timesheets error
Hi SimproAPITeam,
I removed the "Includes" parameter and this returns a successful response.
Godfrey
I removed the "Includes" parameter and this returns a successful response.
Godfrey
DEVELOPER CENTER