I am posting an order through the REST API
[POST https://apisandbox.dev.clover.com/v3/merchants/{merchant_id}/orders {"total":200,"title":"436","state":"open","note":"Table: 1001 (Default)","discounts":[{"id":"HVQFVTWQ3ZZPR","name":"discount 2","amount":-100}]}]
After which I'm adding line items to it.
[POST https://apisandbox.dev.clover.com/v3/merchants/{merchant_id}/orders/WTPPZWCDHTXMP/line_items {"item":{"id":"91P076X403E7M"},"unitQty":1000}]
&
[POST https://apisandbox.dev.clover.com/v3/merchants/1VDSD3S8CXJ0G/orders/WTPPZWCDHTXMP/line_items {"item":{"id":"91P076X403E7M"},"unitQty":1000}]
When I check the dashboard from the sandbox environment, I don't see any discounts being applied to the created order.
It is not entirely clear from the documentation what it is that I am doing wrong. Any ideas of what it is that I am doing wrong?
Note: I am not able to see a list of discounts on the sandbox dashboard. I've created some discounts through the REST API, but they are not visible.