Discount Type FIXED_AMOUNT Behavior

We’re testing discount functionality and found one odd behavior.
We created a fixed amount discount and try to apply it to line items. But apparently it doesn’t applied to line_items, instead it was applied to the order.
Example order: https://squareup.com/receipt/preview/5o0hrHs910kK6g2q2T7vdA8clWTZY

Is the fixed amount discount only can be applied with scope ‘ORDER’ ?

Apologies for the delay. You should be able to add it to the line_item, did you try to do it like we have in the documentation? https://developer.squareup.com/docs/orders-api/create-orders#apply-taxes-and-discounts

Yes, the discount on the sample order had the discount applied in the line items following the article in the link you shared.
When you look on the receipt, the discount marked with x2. We applied the discount to both items.

The discount itself is a fixed discount amount of $1.
But the total discount looks odd. Shouldn’t it be $2?

Thanks for sharing this. I checked in with the orders team and this seems to be an error, so they’re looking into it and I’ll follow-up once I have more information. For now you can ignore the “x2”. To clarify, a FIXED_AMOUNT discount will be applied across items, not per item.