--- url: https://docs.youcan.shop/store-admin/entities/coupon.md --- # Coupon entity The Coupon entity at YouCan. | Attribute Name | Type | Description | | --- | --- | --- | | id | string | Identifier (UUID) | | code | string | Code should be unique in the store | | description | string | Description | | value | float | Fixed/Percentage price | | type | int (1,0) | Percentage or fixed | | start\_date | int | Start date of the coupon (unix timestamp) | | end\_date | int, null | End date of coupon validity (unix timestamp) | | max\_usage | int, null | Determine how many times the coupon can be used | | usage\_count | int | Determine how many times the coupon used default is 0 | | product\_ids | int | Represent the products ids the coupon valid for | | store\_id | uuid | Store id | | created\_at | string | Creation date | | updated\_at | string | Updated date | | deleted\_at | string | Deletion date |