Approve subscription page not reflecting free trial period

chaanan100
Visitor
3 0 0

Hello,

I am in the process of adding a free trial period for my app. Using the GraphQL admin API the variables being sent to create the subscription are as follows:

 

const createBillingRes = await adminApiClient.request(
        mutationCreateSubscription,
        {
          name: "Selling Fast - Monthly subscription",
          returnUrl: `${HOST}/?shop=${shopOrigin}`,
          test: false,
          trialDays: 3,
          lineItems: [
            {
              plan: {
                appRecurringPricingDetails: {
                  interval: "EVERY_30_DAYS",
                  price: {
                    amount: 1.79,
                    currencyCode: "USD",
                  },
                },
              },
            },
          ],
        }
      );

 

 

However the approve subscription page (see below) does not show the trial period.

Screenshot 2021-07-12 at 3.01.39 PM.png

 

 

 

 

 

Is there a way that can be fixed? I have verified through my logs that the variables being sent to the admin API include the trial period. However, I am not sure what changes on my end would allow the above page to be altered.

Replies 3 (3)

jlalande
Shopify Staff (Retired)
19 4 13

Hi @chaanan100, thanks for reaching out! 


I'm assuming you're using this mutation. This forum section is about the "Subscriptions APIs" and it looks like the problem is related with the app creation mutation, rather than the Subscriptions APIs. I think the folks over in this section of the forum might be able to answer that question. People with the same question might also benefit from your post if you post it in that section 🙂

In any case, I relayed this issue to the correct team. I will update this post as soon as I have an answer.

To learn more visit the Shopify Help Center or the Community Blog.

chaanan100
Visitor
3 0 0

Thank you @jlalande for your help

 

In the meantime, I will make a post in the other section as well as per your suggestion.

jlalande
Shopify Staff (Retired)
19 4 13