Hello,
Currently we are managing selling plan for customer on weekly basis through below mention code but we want to manage on daily basis. Can you please provide some guidance on how we can proceed ?
mutation {
sellingPlanGroupCreate(
input: {
name: “Subscribe and save”
merchantCode: “subscribe-and-save”
options: [“Delivery every”]
position: 1
sellingPlansToCreate: [
{
name: “Delivered every week”
options: “1 Week(s)”
position: 1
category: SUBSCRIPTION
billingPolicy: {
recurring: {
interval: WEEK,
intervalCount: 1
anchors: { type: WEEKDAY, day: 1 }
}
}
deliveryPolicy: {
recurring: {
interval: WEEK,
intervalCount: 1
anchors: { type: WEEKDAY, day: 1 }
preAnchorBehavior: ASAP
cutoff: 0
intent: FULFILLMENT_BEGIN
}
}
pricingPolicies: [
{
fixed: {
adjustmentType: PERCENTAGE
adjustmentValue: { percentage: 15.0 }
}
}
]
}
]
}
resources: { productIds: , productVariantIds: }
) {
sellingPlanGroup {
id
}
userErrors {
field
message
}
}
}
Thanks and regards
Tushar jain