How Do I get Line Item compare at price in order Export?

Topic summary

Missing line item “compare at price” in order exports when orders are created via API, while the value appears correctly for orders placed through the storefront (standard flow).

  • Attempts: The API payload included multiple fields within line_items (variant_id, quantity, price, original_price, compare_at_price, line_item_compare_at_price, lineItem_compare_at_price, sku), but none resulted in the compare-at value appearing in the export.
  • Technical context: “Compare at price” is the higher reference price shown against the current sale price; the thread concerns whether this value can be captured on each order line via API so it shows in exports.
  • Community feedback: Additional participants report the same issue and ask if a solution exists; no fix or workaround is provided.
  • Attachments: A code snippet is central to understanding the attempted API fields.

Status: Unresolved and ongoing. Key open question: How to reliably include line item “compare at price” in order exports for API-created orders.

Summarized with AI on January 26. AI used: gpt-5.

Currently while exporting order the line item compare at price is empty . I create order via API and the line item compare at price is empty(the line item has compare at price) but when I use the standard flow by going to the shopify store and placing the order the line item compare at price is present in the order export.

Here is everything I have tried sending with the line item but it wont work

"line_items": [
            {
                "variant_id": 39813959024802,
                "quantity": 1,
                "price": 599.00,
                "original_price":1000.00,
                "compare_at_price":1000.00,
                "line_item_compare_at_price":1000.00,
                "lineItem_compare_at_price":1000.00,
                "sku":18406
            }
3 Likes

Hi @Nitin8 have you found a solution to this issue? We have faced the same issue as well and are unsure of the solution

Hello @Nitin8 and @arrowdev , did anyone of you finds any solution, i am also getting the same issue