I’m posting this to report about a potential bug and to ask a question about the versioning of the Shopify API.
We were using the SellingPlanInput’s pricing policy in our app as shown in the code below. We are using the 2021-01 version of the admin API.
{
recurring: {
adjustmentType: discountValueType,
adjustmentValue,
afterCycle: 0
},
},
{
recurring: {
adjustmentType: discountValueType,
adjustmentValue: adjustmentValueAfter,
afterCycle:updateDiscountAfterCycle,
},
},
Today, Shopify started responding with
SELLING_PLAN_PRICING_POLICIES_MUST_CONTAIN_A_FIXED_PRICING_POLICY - Selling plans to create pricing policies must contain one fixed pricing policy
So we updated our app to use set the pricing policy as below, and it seems like things are working, but the sudden change in Shopify’s response without updating the version of the API we interact with, was surprising.
{
fixed: {
adjustmentType: discountValueType,
adjustmentValue,
},
},
{
recurring: {
adjustmentType: discountValueType,
adjustmentValue: adjustmentValueAfter,
afterCycle: updateDiscountAfterCycle,
},
},
Is my understanding of Shopify’s API versioning wrong? Or is this a mistake on Shopify’s side?