Bulk Pricing
Volume-based pricing tiers for wholesale.
Updated
On this page
Overview
Bulk pricing offers automatic discounts when customers buy larger quantities. Discounts are configured per size and apply automatically in the cart.
Reading Bulk Discounts
import dash from "@/lib/dash"
const { product } = await dash.products.get("blue-dream")
// Each size can have bulk discounts
const size = product.attributes[0].options[0].sizes[0]
console.log(size.bulk_discounts)
// [
// { min_quantity: 3, discount_type: "percentage", discount_value: "5" },
// { min_quantity: 5, discount_type: "percentage", discount_value: "10" },
// { min_quantity: 10, discount_type: "percentage", discount_value: "15" }
// ]