Page 1 of 1

Setting pre-build markup

Posted: Wed Mar 31, 2021 7:10 am
by possemeeg
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.

Re: Setting pre-build markup

Posted: Thu Apr 01, 2021 3:43 am
by Muqeet
Unfortunately, for now only Total amount can be updated for a pre-build item.

Re: Setting pre-build markup

Posted: Tue Jul 06, 2021 2:39 am
by Mark.Travis
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

Re: Setting pre-build markup

Posted: Tue Jul 06, 2021 3:19 am
by Muqeet
204 means your request was successfully fulfilled. You could send a GET request to confirm the new TotalEx price after that.

Re: Setting pre-build markup

Posted: Tue Jul 06, 2021 3:29 am
by Mark.Travis
Hi Muqeet,

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

Thanks for responding as if it was a legitimate question.

Regards

Mark