Setting pre-build markup

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
possemeeg
Posts: 8
Joined: Mon Mar 08, 2021 7:45 pm

Setting pre-build markup

Post by possemeeg » Wed Mar 31, 2021 7:10 am

With pre-builds, is it possible to set the sell price or sell price % markup?

I have tried to update 'TotalEx' on a standard price pre-build, the call succeeds and yet the price doesn't change. I have also tried this after un-checking 'Based on Defaults' in the UI and saving.
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: Setting pre-build markup

Post by Muqeet » Thu Apr 01, 2021 3:43 am

Unfortunately, for now only Total amount can be updated for a pre-build item.
Muqeet
API Developer | simPRO Software Group
Mark.Travis
Posts: 3
Joined: Wed Jan 27, 2021 12:14 pm

Re: Setting pre-build markup

Post by Mark.Travis » Tue Jul 06, 2021 2:39 am

Hi Muqeet,
Muqeet wrote: ↑Thu Apr 01, 2021 3:43 am Unfortunately, for now only Total amount can be updated for a pre-build item.
I am trying to update TotalEx for a prebuild. Is this what you meant?

My request is

Code: Select all

PATCH {{SimPRO:Api:Uri}}/api/v1.0/companies/2/prebuilds/setPrice/{{preBuildId}}
Authorization: Bearer {{bearerToken}}
Content-Type: application/json
Accept: application/json

{
  "TotalEx": 25.25
}
and I am getting a response with a status of 204(Not content).

Any help would be appreciated.

Thanks in advance

Mark
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: Setting pre-build markup

Post by Muqeet » Tue Jul 06, 2021 3:19 am

204 means your request was successfully fulfilled. You could send a GET request to confirm the new TotalEx price after that.
Muqeet
API Developer | simPRO Software Group
Mark.Travis
Posts: 3
Joined: Wed Jan 27, 2021 12:14 pm

Re: Setting pre-build markup

Post by Mark.Travis » Tue Jul 06, 2021 3:29 am

Hi Muqeet,

I feel silly. I missed that in the API documentation.

Thanks for responding as if it was a legitimate question.

Regards

Mark
Post Reply