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 |
---|---|
19 | |
7 | |
7 | |
6 | |
5 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022