Posts about the simPRO API. Help/support/how-to etc.
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.
-
bgur
- Posts: 97
- Joined: Sat Apr 27, 2019 10:23 am
Post
by bgur » Wed Feb 08, 2023 4:40 am
If I do a comparison between the Resources Cost (Labour Hours) through the web app, the number of hours differs from the API response to this endpoint:
Code: Select all
api/v1.0/companies/6/quotes/{QUOTE#}/sections/{Section#}/costCenters/{CostCentre#
The number I'm getting from the JSON Response is here:
Code: Select all
Totals / ResourcesCost / LaborHours / Estimate
thanks.
-
Sindre
- Posts: 493
- Joined: Wed Apr 20, 2022 4:51 am
- Location: Brisbane
Post
by Sindre » Thu Feb 09, 2023 12:18 am
Hi bgur,
I couldn't see any obvious discrepancies on labour hours on web and in the API. Make sure you look at the resources cost for the same cost centre you are retrieving in the API if you have several cost centres.
If you have different numbers for the same cost centre please send me a private message with your build details and a screen shot of the breakdown on web and the responses you get in the API so I can have a closer look.
regards
Sindre
API Developer | Simpro Software Group