Discount
Represents a discount that can be applied to a product or category.
type Discount implements IDiscount {
categoryId: Int
category(
hidden: YesNo
): Category
id: String!
createdAt: DateTime!
lastModifiedAt: DateTime!
value: Float!
quantityFrom: Int!
validFrom: DateTime
validTo: DateTime
pricesheetId: String!
productId: Int
priceGroup: String
discountType: PriceDiscountType!
pricesheet: Pricesheet
product(
hidden: Boolean
): Product
}
Fields
Discount.categoryId
● Int
scalar
Category Id
Discount.category
● Category
object
Discount.category.hidden
● YesNo
enum
Discount.id
● String!
non-null scalar
Primary identifier of the discount (UUID).
Discount.createdAt
● DateTime!
non-null scalar
Creation date
Discount.lastModifiedAt
● DateTime!
non-null scalar
Last modified date
Discount.value
● Float!
non-null scalar
Discount value, either percentage or fixed amount
Discount.quantityFrom
● Int!
non-null scalar
Indicates the minimum quantity threshold needed to qualify for the bulk price.
Discount.validFrom
● DateTime
scalar
Start date from which the bulk pricing is effective. Must be a valid ISO 8601 date string.
Discount.validTo
● DateTime
scalar
End date of the bulk pricing offer. Must be a valid ISO 8601 date string.
Discount.pricesheetId
● String!
non-null scalar
The foreign key identifier for the pricesheet this discount belongs to.
Discount.productId
● Int
scalar
Product Id
Discount.priceGroup
● String
scalar
Price group
Discount.discountType
● PriceDiscountType!
non-null enum
The method used to apply discounts for bulk prices / volume discounts.
Discount.pricesheet
● Pricesheet
object
AUTH: Role=[pricing.OWNER]
Discount.product
● Product
object
Discount.product.hidden
● Boolean
scalar
Interfaces
IDiscount
interface
Returned By
discount
query ● discountCreate
mutation ● discountUpdate
mutation
Member Of
DiscountResponse
object