Limit
How to limit the number of targets of an action
Key
Type
Required
Description
Example
Integer
Object
Sort
Key
Type
Required
Description
Example
String
String
Example
"actions": [
{
"type": "fixed_amount",
"selector": "order.line_items.sku",
"groups": [ "discountable-items" ],
"limit": {
"value": 1,
"sort" : {
"attribute": "unit_amount_cents",
"direction": "asc"
}
},
"value": 500
}
]Last updated