I am using below mutation to create a Selling Plan Group:
mutation {
sellingPlanGroupCreate(input:
{
name: "Test Discount Selling Plan",
options: ["Test Discount"],
position: 1,
sellingPlansToCreate: [
{
name: "Test Discount",
options: "Discount 1",
position: 1,
billingPolicy: {
fixed: {
checkoutCharge: {
type: PERCENTAGE,
value: {
percentage: 0.0
},
},
},
},
pricingPolicies: [
{
fixed:
{
adjustmentType: PERCENTAGE,
adjustmentValue:
{
percentage: 15.0
}
}
}
]
}
]
},
resources: {productIds: [], productVariantIds: []}
) {
sellingPlanGroup {
id
}
userErrors {
field
message
}
}
}
I receive below response from server:
errors: [{message: "InputObject 'SellingPlanBillingPolicyInput' doesn't accept argument 'fixed'",…}]
0: {message: "InputObject 'SellingPlanBillingPolicyInput' doesn't accept argument 'fixed'",…}
extensions: {code: "argumentNotAccepted", name: "SellingPlanBillingPolicyInput", typeName: "InputObject",…}
locations: [{line: 13, column: 31}]
message: "InputObject 'SellingPlanBillingPolicyInput' doesn't accept argument 'fixed'"
path: ["mutation", "sellingPlanGroupCreate", "input", "sellingPlansToCreate", 0, "billingPolicy", "fixed"]
It says message: “InputObject ‘SellingPlanBillingPolicyInput’ doesn’t accept argument ‘fixed’”
However, if we look into the related documentation https://shopify.dev/api/admin-graphql/2022-07/input-objects/SellingPlanBillingPolicyInput
The property fixed is clearly mentioned there
I have tried to write the query in many different ways as suggested in the documentation but finally, I am stuck here.
Quick and prompt help will be highly appreciated. Coz I am in the middle of a project and I have to deliver this ASAP.




