Type Definition
Fields
Core Fields
| Field | Type | Description |
|---|---|---|
id | UUID! | Unique identifier for the coupon |
refId | String! | Your reference ID for this coupon |
name | String! | Coupon name/code |
description | String | Coupon description |
type | CouponType! | Type of discount (PERCENTAGE, FIXED) |
status | CouponStatus! | Current status |
source | CouponSource! | Where the coupon was created |
Discount Values
| Field | Type | Description |
|---|---|---|
percentOff | Float | Percentage discount (for PERCENTAGE type) |
amountsOff | [Money!] | Fixed amounts off in different currencies |
Duration
| Field | Type | Description |
|---|---|---|
durationInMonths | Float | How many months the discount applies (null = forever) |
Integration
| Field | Type | Description |
|---|---|---|
billingId | String | Coupon ID in billing provider |
billingLinkUrl | String | URL to coupon in billing provider |
syncStates | [SyncState!] | Integration sync status |
Customers
| Field | Type | Description |
|---|---|---|
customers | [Customer!] | Customers using this coupon |
CouponType Enum
| Value | Description |
|---|---|
PERCENTAGE | Discount is a percentage off |
FIXED | Discount is a fixed amount |
CouponStatus Enum
| Value | Description |
|---|---|
ACTIVE | Coupon is active and can be applied |
ARCHIVED | Coupon is no longer available |
CouponSource Enum
| Value | Description |
|---|---|
STIGG | Created in Stigg |
BILLING | Synced from billing provider |
SubscriptionCoupon Type
When a coupon is applied to a subscription:Example Response
Percentage Coupon
Fixed Amount Coupon
Limited Duration Coupon
Archived Coupon
Related Types
- Customer - Customer type
- CustomerSubscription - Subscription type
Related Operations
- Create Coupon - Create new coupon
- Set Coupon on Customer - Apply coupon
- List Coupons - Query coupons
