> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# discount

> Total discount amount applied to the order.

Total discount amount applied to the order.

```javascript theme={null}
window._upstack('track', 'purchase', {
  transactionId: 'ORD-12345',
  value: 134.99,
  currency: 'USD',
  discount: 35.00
});
```

| Type   | Required | Events                                      |
| ------ | -------- | ------------------------------------------- |
| number | No       | purchase, initiate\_checkout, add\_to\_cart |

## Related Properties

<CardGroup cols={2}>
  <Card title="coupon" icon="ticket" href="/pixel/events/properties/coupon">
    Coupon code used.
  </Card>

  <Card title="subtotalPrice" icon="receipt" href="/pixel/events/properties/subtotal-price">
    Subtotal before discounts.
  </Card>
</CardGroup>
