The Firmhouse Logo [FH]
Developer Docs


Discount codes can be applied to a subscription to activate a promotion.


autoSelectPlan (Plan)
If set the discout code will auto select this plan
code (String!)
The unique code that can be applied to a checkout
expired (Boolean!)
Whether the discount code has already expired.
id (ID!)
ID to identify the discount code with
maxTimesUsed (Int)
The max usage of this discount code
promotionId (ID!)
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.