Skip to content

The Coupon entity at YouCan.

Attribute NameTypeDescription
idstringIdentifier (UUID)
codestringCode should be unique in the store
descriptionstringDescription
valuefloatFixed/Percentage price
typeint (1,0)Percentage or fixed
start_datedatetimeStart date of the coupon
end_datedatetime, nullEnd date of coupon validity
max_usageint, nullDetermine how many times the coupon can be used
usage_countintDetermine how many times the coupon used default is 0
product_idsintRepresent the products ids the coupon valid for
store_iduuidStore id
created_atstringCreation date
updated_atstringUpdated date
deleted_atstringDeletion date