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?
doesn't seem to get "coupon" or "discount" information when it provides me with "item price".
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 email@example.com with subject "discount data missing in item endpoint"