Every
How bundles based on quantity multiples work
Key
Type
Required
Notes
String
Object
Integer
How the every algorithm works
every algorithm worksExample
[
{
"id": "qOYocnANsO",
"type": "line_items",
"quantity": 2,
"unit_amount_cents": 2000,
"total_amount_cents": 4000,
"sku": {
"id": "PeHfayCvwQ",
"code": "HAT"
}
},
{
"id": "nlHjpkVpCG",
"type": "line_items",
"quantity": 3,
"unit_amount_cents": 1000,
"total_amount_cents": 3000,
"sku": {
"id": "pHaoUAvTVy",
"code": "STICKER"
}
},
{
"id": "DtZjSMEKvm",
"type": "line_items",
"quantity": 2,
"unit_amount_cents": 3000,
"total_amount_cents": 6000,
"sku": {
"id": "TkhHRotCOA",
"code": "TSHIRT"
}
}
]1. Sorting
Item
Quantity
Unit amount
TSHIRT
2
HAT
2
STICKER
3
2. Total quantity of units
3. Number of units to be removed
4. Items to be discounted
SKU
Quantity
Discounted unit amount
TSHIRT
2
HAT
2
STICKER
2
Last updated