Applying discount via the API

Wish the API had something it doesn't? Post here!
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
alexydm
Posts: 11
Joined: Wed Dec 02, 2020 6:31 am

Applying discount via the API

Post by alexydm » Thu Feb 04, 2021 1:31 pm

We are building an integration with Shopify and we need to handle the case where there are discounts applied on the line item level and also on the order level.

I cannot seem to find anything related to setting discounts in job cost centre catalog items in the documentation. Am I missing something?

If there is indeed a way to do this, how would you handle two cases I mentioned above?
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: Applying discount via the API

Post by Muqeet » Thu Feb 04, 2021 11:40 pm

In web interface you can apply discounts on cost center, which is not available through Rest API.

Item level discounts are not available at all. However, you can adjust the SellPrice/Markup of an item.
Muqeet
API Developer | simPRO Software Group
MarcSS
Posts: 6
Joined: Wed Jun 22, 2022 2:22 pm

Re: Applying discount via the API

Post by MarcSS » Wed Jul 20, 2022 7:26 am

I know this post is over a year old, but just wanted to ask if this is still the case; that you cannot set the discount on a cost centre through the API?

I am assuming that you can't, since I don't see anyway to set it in the documentation.

Thanks.
robbertcha
Posts: 416
Joined: Thu Apr 15, 2021 10:07 pm

Re: Applying discount via the API

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

HI MarcSS,

You can retrieve discounts on cost-center via API but not the item level.

Code: Select all

https://developer.simprogroup.com/apidoc/?page=e20580fa653ea5969f97040b4eb3c8db#operation/aa9a9f3611fb9d4057ee059547d341e2
Robbert
API Developer | simPRO Software Group
MarcSS
Posts: 6
Joined: Wed Jun 22, 2022 2:22 pm

Re: Applying discount via the API

Post by MarcSS » Tue Jul 26, 2022 3:05 pm

robbertcha wrote: Wed Jul 20, 2022 10:08 pm You can apply discounts on cost-center via API but not the item level.

Code: Select all

https://developer.simprogroup.com/apidoc/?page=e20580fa653ea5969f97040b4eb3c8db#operation/aa9a9f3611fb9d4057ee059547d341e2
Sorry, but I still can't see how I can pass a discount to the cost-center. In the Create a new job cost center call there doesn't seem to be a field for Discount, the same for the Update a job cost center call.

You can get the discount value when retrieving a job cost center, but do not appear to be able to set it.

Am I missing something?

Thanks,
Marc.
robbertcha
Posts: 416
Joined: Thu Apr 15, 2021 10:07 pm

Re: Applying discount via the API

Post by robbertcha » Tue Jul 26, 2022 11:10 pm

Hi MarcSS,

Create & Update 'Discount' on job cost center via API is currently not yet available on API, I will move this topic to "Feature Request" first and also put it into our next team meeting, so sorry for misunderstanding your request & please keep an eye on API release update, thank you.

API release update
viewforum.php?f=3
Robbert
API Developer | simPRO Software Group
MarcSS
Posts: 6
Joined: Wed Jun 22, 2022 2:22 pm

Re: Applying discount via the API

Post by MarcSS » Wed Jul 27, 2022 12:07 pm

Thank you for confirming.
GhostUchiha7
Posts: 1
Joined: Fri May 26, 2023 10:24 am

Re: Applying discount via the API

Post by GhostUchiha7 » Fri May 26, 2023 10:24 am

Your integration with Shopify sounds interesting. Although I'm new here, I wanted to chime in. Regarding setting discounts in job cost center catalog items, I couldn't find specific documentation either. However, I recently came across the international shipping WooCommerce webpage, which might provide some insights on handling complex scenarios like yours. You could use it as a reference point to explore possible solutions. Keep up the great work with your integration, and don't hesitate to ask for further assistance.
gterra
Posts: 1
Joined: Wed Apr 03, 2024 3:59 am

Re: Applying discount via the API

Post by gterra » Wed Apr 03, 2024 4:01 am

Can we please have an ETA on this? Trying to integrate with Shopify and want to be able to apply discounts.
Post Reply