Page 1 of 1
Applying discount via the API
Posted: Thu Feb 04, 2021 1:31 pm
by alexydm
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?
Re: Applying discount via the API
Posted: Thu Feb 04, 2021 11:40 pm
by Muqeet
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.
Re: Applying discount via the API
Posted: Wed Jul 20, 2022 7:26 am
by MarcSS
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.
Re: Applying discount via the API
Posted: Wed Jul 20, 2022 10:08 pm
by robbertcha
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
Re: Applying discount via the API
Posted: Tue Jul 26, 2022 3:05 pm
by MarcSS
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.
Re: Applying discount via the API
Posted: Tue Jul 26, 2022 11:10 pm
by robbertcha
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
Re: Applying discount via the API
Posted: Wed Jul 27, 2022 12:07 pm
by MarcSS
Thank you for confirming.
Re: Applying discount via the API
Posted: Fri May 26, 2023 10:24 am
by GhostUchiha7
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
Posted: Wed Apr 03, 2024 4:01 am
by gterra
Can we please have an ETA on this? Trying to integrate with Shopify and want to be able to apply discounts.