SELLING_PLAN_PRICING_POLICIES_MUST_CONTAIN_A_FIXED_PRICING_POLICY suddenly started appearning

Solved
DanielTehrani
Excursionist
36 1 5

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?

0 Likes
BSSCommerce1
New Member
3 0 0

Same here, we also meet this problem! Please explain it Shopify

0 Likes
Philibert_Dugas
Shopify Staff
Shopify Staff
10 6 4

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

0 Likes
Philibert_Dugas
Shopify Staff
Shopify Staff
10 6 4

This is an accepted solution.

This has been resolved on 2021-01 and 2021-04. Again, sorry for the inconvenience

0 Likes