Hi! I’m implementing a subscription using the Subscription API with GraphQL. I figured out that the currentEndPeriod
started returning the wrong value.
For example, here it’s the API Response:
{
"currentAppInstallation": {
"activeSubscriptions": [
{
"name": "My Subscription",
"status": "ACTIVE",
"id": "gid://shopify/AppSubscription/27034747051",
"currentPeriodEnd": "2023-10-06T15:48:25Z",
"test": true,
"trialDays": 0,
"createdAt": "2023-10-06T15:45:02Z",
"lineItems": [
{
"id": "gid://shopify/AppSubscriptionLineItem/27034747051?v=1&index=0",
"plan": {
"pricingDetails": {
"__typename": "AppRecurringPricing",
"interval": "EVERY_30_DAYS",
"price": {
"amount": "49.0",
"currencyCode": "EUR"
}
}
}
},
{
"id": "gid://shopify/AppSubscriptionLineItem/27034747051?v=1&index=1",
"plan": {
"pricingDetails": {
"__typename": "AppUsagePricing",
"terms": "You'll be charged by €0.09 per each extra call",
"cappedAmount": {
"amount": "200.0",
"currencyCode": "EUR"
},
"balanceUsed": {
"amount": "0.3",
"currencyCode": "EUR"
}
}
}
}
]
}
]
}
}
Check that the currentPeriodEnd
is only 3 minutes after the createdAt
.
Also it’s displayed wrong in the Shopify UI, where it display the due date
as today
Current API version is 2023-07. (I tried with 2023-10 as well)
This post has been created on 2023-10-06, so it doesn’t make sense that currentPeriodEnd is the same day.