For discussing the development and integration of subscription-enabled shops using Shopify's Subscription APIs.
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?
Solved! Go to the solution
This is an accepted solution.
This has been resolved on 2021-01 and 2021-04. Again, sorry for the inconvenience
To learn more visit the Shopify Help Center or the Community Blog.
Same here, we also meet this problem! Please explain it Shopify
Hey there, thanks for reporting this.
Your understanding of the API Versions is correct. This is an unfortunate change that was not meant to impact older API versions. We will get this resolved ASAP, sorry for all the inconvenience
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
This has been resolved on 2021-01 and 2021-04. Again, sorry for the inconvenience
To learn more visit the Shopify Help Center or the Community Blog.