couponCreate
Graphql fields and variables for the couponCreate mutation
Create a coupon
Scope required: product:write
For a complete list of input attributes see the CouponAttributes type
mutation couponCreate ($attributes: CouponAttributes!, $accountId: ID!, $planId: ID!) {
couponCreate (attributes: $attributes, accountId: $accountId, planId: $planId) {
coupon {
active
couponCode
createdAt
currencyId
description
discountAmount
discountPercentage
id
name
planId
redemptionEndDate
redemptionsCount
redemptionsMax
updatedAt
}
errors
}
}Arguments
Name
Type
Description
Response
Name
Type
Description
errors
List (String)
Last updated
Was this helpful?
