FirmhouseDiscountCode

Properties

PropertyTypeDescription

autoSelectPlan?

If set the discount code will auto select this plan

code

string

The unique code that can be applied to a checkout

createdAt

string

When the discount code was created.

expired

boolean

Whether the discount code has already expired.

id

string

ID to identify the discount code with

maxTimesUsed?

null | number

The max usage of this discount code

metadata?

unknown

Metadata makes it possible to store additional information on objects.

promotion?

Promotion that is attached to the discount code

promotionId

string

ID of the promotion that is attached to the discount code

redeemable

boolean

Whether the discount code can be redeemed. Returns true only if related Discount is activated and Discount code has not expired.

updatedAt

string

When the discount code was updated last time.

Last updated