I have a mutation that creates a Group and then assigns plans to it. I run this query once in a store for a product variant. So I end up with a variant I can sell as a subscription.
mutation {
sellingPlanGroupCreate(
input: {
name: "Beer Drinking Membership",
merchantCode: "Beer Drinking Membership",
options: ["yearly membership"],
position: 1,
sellingPlansToCreate: [
{
name: "Beer Drinking Membership",
options: "Year",
position: 1,
billingPolicy: {
recurring: {
interval: YEAR,
intervalCount: 1,
maxCycles: 3
}
}
deliveryPolicy: {
recurring: {
interval: YEAR,
intervalCount: 1
}
},
pricingPolicies: [
{
fixed: {
adjustmentType: PRICE
adjustmentValue : {
fixedValue : 100
}
}
},{
recurring: {
adjustmentType: PRICE
adjustmentValue: {
fixedValue : 100
}
afterCycle: 1
}
},
]
}
]
},
resources: {
productVariantIds: ["gid://shopify/ProductVariant/415222220353197"],
}
)
{
sellingPlanGroup {
id
sellingPlans(first: 10) {
edges {
node {
id
}
}
}
}
userErrors {
field
message
}
}
}
Now I just send that same request 6 times. I end up with a Group that now has seven selling plans in it. All identical and all for the same variant. Yay.
Are there any implications to this I should know about? Is this going to cause some kind of problem? What does it mean to assign more than one identical plan to a variant?