Same issue. Kind of insane considering discounts is an array. The output of my function pretends it accepted an array, but it only applies the second one.
{
"discountApplicationStrategy": "MAXIMUM",
"discounts": [
{
"targets": [
{
"productVariant": {
"id": "gid://shopify/ProductVariant/45993501688108"
}
}
],
"value": {
"percentage": {
"value": 30
}
},
"message": "30% off readers"
},
{
"targets": [
{
"productVariant": {
"id": "gid://shopify/ProductVariant/45993407512876"
}
},
{
"productVariant": {
"id": "gid://shopify/ProductVariant/45993407447340"
}
}
],
"value": {
"percentage": {
"value": 20
}
},
"message": "20% off polarized sun"
}
]
}
seems like we desperately need a discountApplicationStrategy: ALL