I am trying to cerate a new discount coupon and combining it with shippingDiscounts, but its returning following error:
Variable $basicCodeDiscount of type DiscountCodeBasicInput! was provided invalid value for combinesWith (Field is not defined on DiscountCodeBasicInput)
Here is my mutation:
mutation discountCodeBasicCreate($basicCodeDiscount: DiscountCodeBasicInput!) {
discountCodeBasicCreate(basicCodeDiscount: $basicCodeDiscount) {
codeDiscountNode {
id
}
userErrors {
field
message
}
}
}
Input:
{
"basicCodeDiscount": {
"title": "testing",
"code": "testing",
"combinesWith": {
"shippingDiscounts": true
},
"startsAt": "2022-06-21T00:00:00Z",
"endsAt": "2023-09-21T00:00:00Z",
"customerSelection": {
"all": true
},
"customerGets": {
"value": {
"percentage": 0.2
},
"items": {
"all": true
}
},
"appliesOncePerCustomer": true
}
}