Barcode field not returned by Order or Fulfillment endpoint.

JonahB
Shopify Partner
3 0 0

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!

Creator.
Replies 4 (4)

HunkyBill
Shopify Expert
4843 60 546

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.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
JonahB
Shopify Partner
3 0 0

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.)

Creator.
NazSaveCo
Tourist
8 0 1

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

HunkyBill
Shopify Expert
4843 60 546

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.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com