Skip to main content

CreateCouponInput

Input for the createCoupon mutation.

input CreateCouponInput {
code: String!
discountId: UUID!
maxUsages: Int!
validFrom: DateTime!
validUntil: DateTime!
}

Fields​

CreateCouponInput.code ● String! non-null scalar​

The code of the coupon.

CreateCouponInput.discountId ● UUID! non-null scalar​

The id of the discount the coupon is for.

CreateCouponInput.maxUsages ● Int! non-null scalar​

The maximum number of times the coupon can be used.

CreateCouponInput.validFrom ● DateTime! non-null scalar​

The date and time from which the coupon is valid.

CreateCouponInput.validUntil ● DateTime! non-null scalar​

The date and time until which the coupon is valid.

Member Of​

createCoupon mutation