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"
}
]
}
}