Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

API Import discrepancy  #2052

Open
Open
@punyashlok13

Description

@punyashlok13

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions