How to get lineitem compare at price field in exported orders

When exporting orders, I noticed that the “line item compare at price” field for line items is empty. I have been creating orders through the API, and despite including the “compare_at_price” value in the line item, it does not appear in the exported order. However, when using the standard process of placing an order through the Shopify store, the “line item compare at price” is present in the exported order.

Here is the code snippet I have tried, including the relevant line item details, but it hasn’t resolved the issue:

{
  "order": {
    "line_items": [
      {
        "variant_id": 1234567890,
        "quantity": 1,
        "price": "10.00",
        "compare_at_price": "15.00"
      }
    ]
  }
}

Hi @samir-growwx to update the compare_at_price via the API you should use the Product Variant API. https://shopify.dev/docs/api/admin-rest/2023-04/resources/product-variant#:~:text=for%20the%20product.-,compare_at_price,-The%20original%20price. It’s not available to the orders API. Hope that helps.