Hi MayurDhumal,
So is your issue that you’re seeing discount codes returned for the order, but not the line items? I see the discounts here in the code you’ve shared:
A developer is struggling to identify which discount codes apply to specific line items in Shopify order API responses. They have an order with multiple discount codes applied (product-level discounts, order-level discounts, and free shipping), but cannot determine which discount corresponds to each individual line item.
Key Issue:
Discount Types in Question:
Current Status:
Another user (Liam) has begun responding, acknowledging the issue and referencing the shared code/image, but the discussion appears ongoing with no solution provided yet. The developer needs guidance on mapping discount codes to individual line items in the order payload.