Covers all questions related to inventory management, order fulfillment, and shipping.
Hi,
We're creating a custom fulfillment service - which is working fine. HOWEVER, products in the warehouse are picked and packed by barcode and we need that info in the fulfillment call. Oddly, sku is included, but not barcode. Why and how can we deal with this?
https://help.shopify.com/en/api/reference/shipping-and-fulfillment/fulfillment#show
Thanks!
When you get the order at the warehouse, you iterate the line items, and ask for the variant details. You get back the barcode. There is no other way, and yes, this is stupid, but there are other attributes equally of value that are not there either.. so ya.. welcome to incomplete API cooking, where you get a hotdog without a relish, but plenty of pickles and mustard, cause hey, Petey likes them with that.
That was my fear. Lame to have to make an additional API call. (Seems equally as important as the SKU for fulfillment purposes to me.)
Hi HunkyBill,
Does this mean there's no way to get the "barcode" field in the orders/create webhook? If not, what would be the best/quickest method to obtain the barcode of each item every time an order comes in?
Kind regards
Naz
Just make a GQL call for all the line item barcodes once you parse the order and have all the product IDs. Then you have all the barcodes, in one call.