Coupon
For loop type lifter_coupon
, here are the query parameters and fields.
Query parameters
access_plan
- Access Plan ID or "current" for current access plan where the coupon is assigned.
Type: stringhas_main_discount
- Determine if the main (non-trial) price is discounted by the coupon. true/false
Type: booleanhas_remaining_uses
- Determine if a coupon has uses remaining. true/false
Type: booleanhas_trial_discount
- Determine if trial amount discount is enabled for the coupon. true/false
Type: booleanis_expired
- Determine if a coupon is expired. true/false
Type: booleanproduct
- Product ID or "current" for current product where the coupon is assigned.
Type: string
Fields
amount
- Get coupon amountcourses
- Coupon courses sub Loopexpiration_time
- The timestamp of a coupon expiration dateformatted_amount
- Get the formatted coupon amount with currency symbol and/or percentage symbolformatted_discount_type
- Get the discount type for human reading and allow translationhas_main_discount
- If the main (non-trial) price is discounted by this coupon,"true"/"false"has_remaining_uses
- If a coupon has uses remaining,"true"/"false"has_trial_discount
- If trial amount discount is enabled for the coupon,"true"/"false"id
- Coupon IDis_expired
- If a coupon is expired,"true"/"false"memberships
- Coupon memberships sub Loopremaining_uses
- The number of remaining usesusage_limit
- Coupon usage limituses
- The number of times the coupon has been used