Interface ICoupon

Hierarchy

  • ICoupon

Implemented by

Properties

above_invoice_amount?: number

Only above a specified invoice total before this coupon can be redeemed

alias?: string

Coupon alias

applying_plus: IApplying<string>

Applying PLUs (Price Lookup Code)

applying_user_groups: IApplying<number>

Applying User Groups

applying_user_tags: IApplying<string>

Applying User Tags

auto_gen?: boolean

If auto generation is true, the coupon will be automatically generated for all applicable users

below_invoice_amount?: number

Only below a specified invoice total before this coupon can be redeemed

can_redeem?: boolean

If this coupon has been disabled for redemption

can_sell?: boolean

If this coupon has been disabled for purchasing

description?: string

Coupon primary description

description_alias?: string

Coupon alias description

discount_amount?: number

Flat discount amount

discount_calc_type: CalcType

Discount Calculation Type

discount_percent?: number

Percent discount (e.g. 30% => 0.3)

duration?: number

Expiring duration in day after coupon is purchased

expired_at?: Date

When this coupon will be expired

guid: string

Coupon guid

is_delivery_free?: boolean

Can this coupon be used to offset delivery fee

is_individual_use?: boolean

If this coupon can only be used individually without stacking other coupons together

is_multi_stores?: boolean

If this coupon can be used for multiple stores

name: string

Coupon primary name

price_in_points?: number

The amount of points to redeem this coupon

promo_code: string

Promotion code which is used to look up the coupon

styles?: Record<string, string>

Styles of the coupon

usage_count: number

How many of this coupon has been redeemed

usage_limit_per_invoice?: number

How many of this coupon can be redeemed within an invoice

Generated using TypeDoc