Get Job Cost Center Parts and Labour

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.
Post Reply
bgur
Posts: 97
Joined: Sat Apr 27, 2019 10:23 am

Get Job Cost Center Parts and Labour

Post by bgur » Wed Jul 20, 2022 10:47 pm

Is it possible to Get "Parts & Labour" from a Job Cost Center through the API?
robbertcha
Posts: 416
Joined: Thu Apr 15, 2021 10:07 pm

Re: Get Job Cost Center Parts and Labour

Post by robbertcha » Wed Jul 20, 2022 11:08 pm

Hi,

Showing "Parts & Labour" data in 1 endpoint is currently not available in API, but you can get the cost-center items data via different nested endpoints, e.g.: Catalog items, labour items, one-off items & etc. Do you mind to move this post to "Feature Request" section so we will discuss it in our Dev meeting, thank you

Code: Select all

https://developer.simprogroup.com/apidoc/?page=e20580fa653ea5969f97040b4eb3c8db#tag/Job-Cost-Center-Catalog-Items
Robbert
API Developer | simPRO Software Group
jmc2408
Posts: 100
Joined: Thu Jul 09, 2020 3:41 pm
Location: Glasgow, Scotland
Contact:

Re: Get Job Cost Center Parts and Labour

Post by jmc2408 » Tue Apr 18, 2023 7:49 pm

Did this item progress any?

Would be very interested in being able to return all Parts and Labour in a cost centre without the need to go via 5 endpoints, 1 each for:

Catalogs
Labour
One Off
Prebuilds
Service Fees

For Job Cost Centres but also Quote Cost Centres.
Sindre
Posts: 493
Joined: Wed Apr 20, 2022 4:51 am
Location: Brisbane

Re: Get Job Cost Center Parts and Labour

Post by Sindre » Wed Apr 19, 2023 1:05 am

Hi,
The different parts and labour items that you are looking for should be available on a cost centre level today.

By using the "display=all" parameter on a job/quote you should get all catalogs, labour etc that is attached to a cost centre in a nested structure. You can get this on all cost centres by searching on job level or for a specific cost centre by searching on a cost centre level with the endpoints below.

Code: Select all

api/v1.0/companies/0/jobs/{jobID}?display=all

Code: Select all

api/v1.0/companies/0/jobs/{jobID}/sections/{sectionID}/costCenters/{costCentreID}?display=all
I hope this can be useful.

Regards
Sindre
API Developer | Simpro Software Group
albert
Posts: 18
Joined: Wed Jun 03, 2020 7:42 pm

Re: Get Job Cost Center Parts and Labour

Post by albert » Tue May 09, 2023 7:38 pm

It would be really nice if we could get these in their own endpoints separate from jobs and cost centers.
Post Reply