Skip to Content

ProductBulkRate

A quantity-based bulk discount for a product.

Type Definition

type ProductBulkRate { isPercentage: Boolean amount: Float quantity: Int }

Fields

FieldTypeDescription
isPercentageBooleanReturns true if discount is a percentage.
amountFloatReturns the discount amount.
quantityIntReturns the quantity to purchase to get this discount.

Relationships

ProductBulkRate represents a tiered discount structure associated with products. It defines the conditions under which a customer receives a bulk discount based on the quantity purchased and specifies whether the discount is applied as a percentage or fixed amount.

Example

{ isPercentage amount quantity }

Implements

This type does not implement any interfaces.