Applying discount via the API
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.
Applying discount via the API
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?
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?
Re: Applying discount via the API
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.
Item level discounts are not available at all. However, you can adjust the SellPrice/Markup of an item.
Muqeet
API Developer | simPRO Software Group
API Developer | simPRO Software Group
Re: Applying discount via the API
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.
I am assuming that you can't, since I don't see anyway to set it in the documentation.
Thanks.
-
- Posts: 416
- Joined: Thu Apr 15, 2021 10:07 pm
Re: Applying discount via the API
HI MarcSS,
You can retrieve discounts on cost-center via API but not the item level.
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
API Developer | simPRO Software Group
Re: Applying discount via the API
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.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
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.
-
- Posts: 416
- Joined: Thu Apr 15, 2021 10:07 pm
Re: Applying discount via the API
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
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
API Developer | simPRO Software Group
Re: Applying discount via the API
Thank you for confirming.
-
- Posts: 1
- Joined: Fri May 26, 2023 10:24 am
Re: Applying discount via the API
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.
Re: Applying discount via the API
Can we please have an ETA on this? Trying to integrate with Shopify and want to be able to apply discounts.