For discussing the development and integration of subscription-enabled shops using Shopify's Subscription APIs.
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.
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.
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.
Thank you @jlalande for your help
In the meantime, I will make a post in the other section as well as per your suggestion.
Thank you for making an other post! For reference: https://community.shopify.com/c/Shopify-APIs-SDKs/Approve-subscription-page-not-reflecting-free-tria...
To learn more visit the Shopify Help Center or the Community Blog.
Hello,
Did you find a solution? The same thing happening with my app