Re: SELLING_PLAN_PRICING_POLICIES_MUST_CONTAIN_A_FIXED_PRICING_POLICY suddenly started appearning

Solved

SELLING_PLAN_PRICING_POLICIES_MUST_CONTAIN_A_FIXED_PRICING_POLICY suddenly started appearning

d_tehrani
Shopify Partner
56 1 13

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?

Accepted Solution (1)
Philibert_Dugas
Shopify Staff
37 14 16

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.

View solution in original post

Replies 3 (3)

BSSCommerce1
Visitor
3 0 0

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

Philibert_Dugas
Shopify Staff
37 14 16

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.

Philibert_Dugas
Shopify Staff
37 14 16

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.