Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Free Shipping Discount by Eileen Muti

$
0
0

I need a way to determine the type of a discount ($, %, or Free Shipping).  I have a Free Shipping discount and while it shows up in the discount portion of the json file, the type is not there so there is no way to tell that this is a free shipping discount.  Since the code is user entered, it can be anything and I cannot use that as a way to determine the discount type.

"discount_codes" =     (
                {
            amount = "10.00";
            code = Freeship;
        }
    );

And while the order in shopify says Standard Shipping - Free when I apply the code, the shipping lines in the order json does not:

 "shipping_lines" =     (
                {
            code = "Standard Shipping";
            price = "10.00";
            source = shopify;
            "tax_lines" =             (
                                {
                    price = "0.00";
                    rate = "0.07000000000000001";
                    title = "NJ State Tax";
                }
            );
            title = "Standard Shipping";
        }
    );
 

Is there a way to get the discount type through the api?

Thanks,

Eileen

 

 


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>