Skip to main content
objectCoupon

Fields

additionalMetaData
JSON

Metadata associated with the entity

amountsOff

Fixed amount discounts in different currencies. Provide exactly one of percentOff or amountsOff — not both, not neither.

billingId
String

The unique identifier for the entity in the billing provider

billingLinkUrl
String

The URL to the entity in the billing provider

createdAt
DateTime!

Timestamp of when the record was created

customers
Arguments
filter
default:{}

Specify to filter the records returned.

sorting
default:[{direction: DESC, field: createdAt}]

Specify to sort results.

description
String

Description of the coupon

discountValue
Float!
deprecated

Discount value of the coupon (deprecated)

Use percentOff or amountsOff fields instead
durationInMonths
Float

How many calendar months the discount applies for once redeemed, counted from when the coupon is applied (not tied to the subscription's billing period). Leave unset for a discount that lasts for the lifetime of the subscription.

environment
environmentId
UUID!

The unique identifier for the environment

id
UUID!

Unique identifier for the entity

name
String!

Name of the coupon

percentOff
Float

Percentage discount off the original price. Provide exactly one of percentOff or amountsOff — not both, not neither.

refId
String!

The unique identifier for the entity

The source of the coupon

Current status of the coupon

syncStates

Type of the coupon (percentage or fixed amount)

updatedAt
DateTime!

Timestamp of when the record was last updated