mutation CreateOneCoupon($input: CreateCouponInput!) {
createOneCoupon(input: $input) {
additionalMetaData
amountsOff {
amount
currency
}
billingId
billingLinkUrl
createdAt
customers {
additionalMetaData
awsMarketplaceCustomerId
billingCurrency
billingId
billingLinkUrl
coupon {
__typename
}
}
}
}{
"input": {
"name": "string",
"refId": "string"
}
}{
"data": {
"createOneCoupon": {
"additionalMetaData": "value",
"amountsOff": [
{
"amount": 1.5,
"currency": "AED"
}
],
"billingId": "string",
"billingLinkUrl": "string",
"createdAt": "value",
"customers": [
{
"additionalMetaData": "value",
"awsMarketplaceCustomerId": "string",
"billingCurrency": "AED",
"billingId": "string",
"billingLinkUrl": "string",
"coupon": {
"__typename": "Coupon"
}
}
]
}
}
}createOneCoupon
createOneCoupon(input: CreateCouponInput!): Coupon!Arguments
Returns
Metadata associated with the entity
Fixed amount discounts in different currencies. Provide exactly one of percentOff or amountsOff — not both, not neither.
The unique identifier for the entity in the billing provider
The URL to the entity in the billing provider
Timestamp of when the record was created
Specify to filter the records returned.
Specify to sort results.
Description of the coupon
Discount value of the coupon (deprecated)
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.
The unique identifier for the environment
Unique identifier for the entity
Name of the coupon
Percentage discount off the original price. Provide exactly one of percentOff or amountsOff — not both, not neither.
The unique identifier for the entity
The source of the coupon
Current status of the coupon
Type of the coupon (percentage or fixed amount)
Timestamp of when the record was last updated
mutation CreateOneCoupon($input: CreateCouponInput!) {
createOneCoupon(input: $input) {
additionalMetaData
amountsOff {
amount
currency
}
billingId
billingLinkUrl
createdAt
customers {
additionalMetaData
awsMarketplaceCustomerId
billingCurrency
billingId
billingLinkUrl
coupon {
__typename
}
}
}
}{
"input": {
"name": "string",
"refId": "string"
}
}{
"data": {
"createOneCoupon": {
"additionalMetaData": "value",
"amountsOff": [
{
"amount": 1.5,
"currency": "AED"
}
],
"billingId": "string",
"billingLinkUrl": "string",
"createdAt": "value",
"customers": [
{
"additionalMetaData": "value",
"awsMarketplaceCustomerId": "string",
"billingCurrency": "AED",
"billingId": "string",
"billingLinkUrl": "string",
"coupon": {
"__typename": "Coupon"
}
}
]
}
}
}