---
displayed_sidebar: servicesSidebar
---

import ParameterTypes from "@site/src/components/ParameterTypes"

# Discount

A discount can be applied to a cart for promotional purposes.

## Constructors

#### constructor

`**new Discount**()`

A discount can be applied to a cart for promotional purposes.

## Properties

<ParameterTypes parameters={[
  {
    "name": "code",
    "type": "`string`",
    "description": "A unique code for the discount - this will be used by the customer to apply the discount",
    "optional": false,
    "defaultValue": "",
    "expandable": false,
    "children": []
  }
]} />
