carrierService API & Access to Coupon/Discount Information

Highlighted
Trailblazer
216 1 108

Need help from a shopify dev on this one:

I've just created a carrierService app and launced it for my store using NodeJS & AWS Lambda.

Unfortunately I noticed my carrierService webhook doesn't seem to get "coupon" or "discount" information when it provides me with "item price". This is something I need to properly calculate shipping rates programatically (and would be super useful for returning things like "free shipping").

Am I missing it? Or is this really simply not provided?

I need discount information before returning rates, so I can do things like provide "free shipping" to orders over $60 in a flexible manor. Additionally I have some logic which calculates shipping price discounts, based off the overall order value. We run a lot of coupons on my stores, 10%, 20%, Free Shipping and I need to calculate appropriate shipping rates based off post discount order value, not pre-discount. Also having discount code provided to my carrierService endpoint will allow me to do fancy things with free shipping.

Anyone have a solution for this?

Highlighted
Trailblazer
216 1 108

TTT

0 Likes
Highlighted
Shopify Partner
2472 129 406

Discounts api is on shopify-plus plans

 

*edited for clear answer.

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com
0 Likes
Highlighted
Trailblazer
216 1 108

Paul L: Let me know how discount API is going to help me in carrierService API endpoint with regards to getting coupon information in that endpoint.

 

For every/any customer.

0 Likes
Highlighted
Shopify Partner
2472 129 406

previously

 doesn't seem to get "coupon" or "discount" information when it provides me with "item price".

now

know how discount API is going to help me in carrierService API

no discount api access no information, either implicilty in the item response or in a seperate call via direct discount call.

The best way to know for sure is support@shopify.com with subject "discount data missing in item endpoint"

Problem Solved? ✔️Accept and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com
0 Likes
Highlighted
New Member
1 0 0
Hi
Did you find a solution for this?

We have struggled with this for years now, and can’t get any help from shopify.
0 Likes
Highlighted
Trailblazer
216 1 108

My suggestion is to keep waiting while they ignore us. Maybe someone will figure out this is important at some point in the future when someone who works there needs to build their own store.

I still need this and am about to redo my carrierService code. I'll check to see if this has been added, but I'm not optimistic. Only been waiting for like 4 years lol.

Highlighted
Shopify Partner
154 4 28

still not available. would be so great to get access to the discounts, or at least the order total after discounts..

0 Likes