Orders created via Draft Line Items missing product id, variant id, and sku

Andrew_Beckwith
Shopify Partner
2 0 0

I saw an old post about this that was marked closed, but I don't see an actual answer in the post: https://ecommerce.shopify.com/c/shopify-discussion/t/variant-id-missing-for-back-end-sales-front-end...

When I call the API via the Ruby SDK, and try to fetch order information, all order created via the "Draft" functionality are missing key information, product_id, variant_id, and sku are the most critical for our purposes.

Is this a known issue? Why doesn't this info come back? I can look up product info by munging the title into another cumbersome query, but it doesn't seem ideal.

Let me know if more details are required. 

Reply 1 (1)
Jordan
Shopify Staff
Shopify Staff
300 3 79

Hey Andrew,

Can you confirm that the Draft Order didn't have custom line items which would result in an order that includes line items with no variant ID, product ID, or SKU?

 

- Jordan

Jordan | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog