Billing API Trial days

Solved
milindpatel
Excursionist
56 1 9

Now as per current shopify workflow it shows the left trial days and hours in apps section for store.

 

1. I have one charge of $10 with 30 days trial and its billing_on is 23-02-2019.

   (In Apps section for store)

    Before charge accepted

    -> Its shows nothing related to trial days.
   After Charge accepted

   -> It shows 30 days trial remaining.

 

2. after 15 days i have changed charge $20 with 30 days trial and its billing on is 07-03-2019

 (In Apps section for store)

Before New charge accepted

-> (15 days trial remaining).

After new Charge accepted

-> 30 days trial remaining.

 

So will it charge 20$ after 30 days(As New trial days are 30 days) or it will charge $20 after 15 days(As per first charges only 15 days remains so it will charge after 15 days.)
(Shopify calculates trial periods on installing date or on billing created date?) 

 

 

0 Likes
LeanneShapton
Shopify Staff
Shopify Staff
4 0 1

You are correct, the new trial will be 30 days and the merchant will be charged $20 at the end of this free trial. Shopify calculates trial periods on install date.

0 Likes
LeanneShapton
Shopify Staff
Shopify Staff
4 0 1

 Correction: Shopify calculates trial periods from the date the charge is activated.

0 Likes
milindpatel
Excursionist
56 1 9

So we need to manage trial days calculations at our end for exact 30 days trial.

We cannot put same code for subscription update/create. Other wise we might be in loss.

 

I feel like this is recent changes otherwise before 6 moth shopify handles trial days things.

0 Likes
LeanneShapton
Shopify Staff
Shopify Staff
4 0 1

Yes, Shopify doesn't manage trial days calculations on install. Please post the exact number of trial days you want to offer the merchant when upgrading the charge. 

0 Likes
milindpatel
Excursionist
56 1 9

This is an accepted solution.

Okay perfect thank you for information. 

0 Likes

Hi @LeanneShapton ,

Could you notify the right team to ensure that this information is in the API docs? Specifically upon which event that the trial activates? Shopify says that the GraphQL API is the recommended approach to using the Billing API but it's very sparse in terms of detailed information that matters to developers.

 

Thank you

TrackPack

Gain shipment visibility, increase customer confidence and optimize your customer support using TrackPack's Email / SMS shipping notifications and order tracking page generator.
0 Likes
Tanaka
Shopify Staff
Shopify Staff
4 0 0

Hi Euge,

Yes we are going to be updating the docs soon to better communicate what happens to the trial days when you create, upgrade or downgrade charges, thanks.

0 Likes