I noticed that the order data as returned by the API (http://docs.shopify.com/api/order#show) does NOT include the "Barcode" field that can be set for each product variant. It does however include the variant's SKU, which is placed right next to the "Barcode" field in the shop's admin panel.
My question is: Was this left out intentionally? If so, will I have to pull the variant data manually to get this "Barcode", or is there another way? Ideally it should come bundled with the rest of the order data I think.
Thanks!
I have been pulling it from the Variant which is an extra API call but hardly qualifies as making things difficult to communicate with other API's. So what if you have to make a call to get it? You are not processing the order in real-time anyway and an API call per variant is cheap all things considered. At what point to you draw the line about how much info a line item contains about a variant?
I wish it was included myself as I once considered including barcode in all my reporting too... but have since decided that since it slows things down... screw it.
Talking about crucial, while you may consider barcode crucial, for me it is the fact that line items do not report the discount applied to them. That makes accounting nightmares...
Been there.. done that. Variants are pretty low-level to deal with and do introduce "issues". The main problem with a cache on Redis is keeping it from getting stale. Every single time a merchant so much as touches a variant for anything, you will receive a webhook in your App and you'll have to decide what to do with your cache... and therein lies some serious pain....
User | Count |
---|---|
16 | |
12 | |
7 | |
5 | |
4 |