--- url: https://developer.youcan.shop/themes/objects/coupon.md --- # `coupon` object The discount applied to a cart ## Properties *** | Name | Type | Description | | --------------- | ----------------------------------------------------------------- | ---------------------------------------------- | | `is_percentage` | [boolean](../basics/types#boolean) | Whether the coupon is percentage based or not | | `code` | [string](../basics/types#string) | Coupon code | | `value` | [number](../basics/types#number) | Coupon discount value | | `deducted_amount` | [number](../basics/types#number) | Amount deducted from items subtotal | | `type` | [string](../basics/types#string) (Either `1` or `2`) | Coupon type | | `type_text` | [string](../basics/types#string) (Either `percentage` or `fixed`) | Coupon type (Readable) |