CreateDiscountInput
Input for the createDiscount mutation.
input CreateDiscountInput {
discount: Float!
discountAppliesToCategoryIds: [UUID!]!
discountAppliesToProductIds: [UUID!]!
discountAppliesToProductVariantIds: [UUID!]!
maxUsagesPerUser: Int!
minOrderAmount: Int
validFrom: DateTime!
validUntil: DateTime!
}
Fields
CreateDiscountInput.discount
● Float!
non-null scalar
The discount applied to the order item.
CreateDiscountInput.discountAppliesToCategoryIds
● [UUID!]!
non-null scalar
The category ids to which the discount applies.
CreateDiscountInput.discountAppliesToProductIds
● [UUID!]!
non-null scalar
The product ids to which the discount applies.
CreateDiscountInput.discountAppliesToProductVariantIds
● [UUID!]!
non-null scalar
The product variant ids to which the discount applies.
CreateDiscountInput.maxUsagesPerUser
● Int!
non-null scalar
The maximum number of times a user can use this discount in bought ProductItems.
CreateDiscountInput.minOrderAmount
● Int
scalar
The minimum order amount required to use this discount.
CreateDiscountInput.validFrom
● DateTime!
non-null scalar
The date and time from which the discount is valid.
CreateDiscountInput.validUntil
● DateTime!
non-null scalar
The date and time until which the discount is valid.
Member Of
createDiscount
mutation