API Import discrepancy #2052
Description
I am trying to make a call to order items using these 2 api endpoints. orders/#{order_id}/products)
and include=consignment.line_items
BigCommerce says that we can use include consignment.line_items to retrieve shipping addresses and line items, however there is one fundamental difference in the items returned.
When using orders/#{order_id}/products)
as end point, for importing orders from big commerce website, I get the weight depth and height, even if the order may not have a line item (according to Big Commerce). However when I use, include=consignment.line_items
in my API call, Big Commerce only returns weight, height and depth for items it considers has line items.
To make matters complicated, for two exactly similar orders, one returns line items and the other has no line items.
Here is an example Return response using the 2 above mentioned api endpoints.
https://www.diffchecker.com/tcb3ZAir
It would be nice if I could receive weight, height and depth for all order items I create irrespective of line items using consignment.line_items. Does anyone know what Big Commerce considers as important params to create line items? As for some orders, it clearly returns empty line items even though there are valid items in the order.