Development discussions around Shopify APIs
We tested to buy a daily subscription product at 2021-02-03T02:00:00Z. Then, We called SubscriptionContract GraphQL. Like below.
subscriptionContract(id: $id) {
id
nextBillingDate
}
It returns this.
{
id: 'gid://shopify/SubscriptionContract/35127445',
nextBillingDate: '2021-02-03T21:00:00Z',
}
The "nextBillingDate" value should be 2021-02-04T02:00:00Z or 2021-02-03T21:00-05:00.
Solved! Go to the solution
This is an accepted solution.
For now, We add 5 hours to the nextBilligDate value for this issue.
After the successful BillingAttempt, are you setting the new nextBillingDate with a local or UTC datetime? It should be a UTC datetime.
Thanks for replying.
> After the successful BillingAttempt, are you setting the new nextBillingDate with a local or UTC datetime? It should be a UTC datetime.
No, We just do to buy a daily subscription product. Then, We called SubscriptionContract GraphQL.
Sounds like someone is confusing a UTC and a local timezone when the SubscriptionContract is created. Maybe take this to the Subscriptions API forum section?
Oh, nice idea! I didn't know that section 😄 Thanks. I'll post the same question.
This is an accepted solution.
User | RANK |
---|---|
46 | |
16 | |
9 | |
9 | |
7 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023