order/create line_items empty sometimes

Solved
brendancf_moch
New Member
2 0 0

Sometimes our order/create webhook receives an order with nothing in line_items.  However some time later if we fetch the order from Shopify, the line_items are there.  How is it possible the line_items is empty?  Is this expected under some conditions and we need to handle it or is this a bug somewhere in shopify?

0 Likes
armurray
Shopify Staff
Shopify Staff
7 1 0

This is an accepted solution.

Hello!

We've had reports of missing `line_items` in a small number of `orders/create` webhooks starting in late September. We thought that we had isolated and fixed the bug as of September 29th. If the bad hooks are on or before September 29th, then you don't need to take any action and the problem should be resolved.

If you're still missing `line_items` then I'd appreciate it if you could DM more information such as an `order_id` and an `api_client_id`, and we'll try to track down the problem.

armurray | Developer @ 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

0 Likes
brendancf_moch
New Member
2 0 0

Thanks for the reply.  Haven't seen any instances of this since then, so sounds like we are good now

0 Likes