Pricing
A product could have different pricing depending on the plan. You could choose from 5 groups of pricing when setting up this property.
These are:
- Fixed-fee
- Flat-rate
- Stair-step
- Tiered
- Volume
Fixed-fee
You are charging the same amount of fee for each product.
pricing: {
formula: 'fixed-fee',
price: 1,
}
Flat-rate
You charge the same amount per product. However, you can define the minimum and maximum amount of products the user can buy with this pricing.
pricing: {
formula: 'flat-rate',
price: 1,
minQuantity: 1 // optional from 1 to 65535
maxQuantity: 1 // optional from 1 to 65535
}
Stair-step
When you are using this pricing category you are charging by the number of items that are bought within the bracket.
pricing: {
formula: 'stair-step',
brackets: [
{
price: 2,
maxQuantity: 100
},
{
price: 1,
maxQuantity: 200
},
{
price: 0.5,
maxQuantity: null
},
],
minQuantity: 1 // optional from 1 to 65535
}
Tiered
You can also steadily give a decrease in fee by using the Tiered category.
pricing: {
formula: 'tiered',
brackets: [
{
price: 2,
maxQuantity: 100
},
{
price: 1,
maxQuantity: 200
},
{
price: 0.5,
maxQuantity: null
},
],
minQuantity: 1 // optional from 1 to 65535
}
If user has bought 201 items the overall price would be (2 * 100) + (1 * 100) + (0.5 * 1) = 200 + 100 + 0.5 = 300.5
Volume
Finally, if you want to differentiate price by volume you could use this category.
pricing: {
formula: 'volume',
brackets: [
{
price: 2,
maxQuantity: 100
},
{
price: 1,
maxQuantity: 200
},
{
price: 0.5,
maxQuantity: null
},
],
minQuantity: 1 // optional from 1 to 65535
}
If user buys 99 items, then the overall price is 2 * 99 = 198
.
If user buys 222 items, the the overall price is 1 * 222 = 222
.
If users buys 500 items, then the overall price is 0.5 * 500 = 250
.