#tarcisio
1 messages · Page 1 of 1 (latest)
After the subscription cancelled, you should still be able to use Subscription Retrieval API to retrieve the Subscription information
If you can't, sharing the request ID (req_xxx) of the one that can't retrieve cancelled subscription will be helpful to investigate. Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
The ID is sub_1MnzDUCvqKAvDKS9bXsCCR1P.
I can see it on the portal, but on Stripe PHP API, it is throwing this exception:
Stripe\Exception\InvalidRequestException: No such subscription: 'sub_1MnzDUCvqKAvDKS9bXsCCR1P'
Can you share the request ID (req_xxx) of this error from the Dashboard? From this error, it's likely that the account of client key you used is different from the account of subscription
I believe to be this one:
req_HCYOa4RTM8M7l9?t=1679383471
Thanks for sharing! Looking into it now
It seems something related to being cancelled, I have tried to retrieve other cancelled subscriptions and got the same error
In https://dashboard.stripe.com/test/logs/req_HCYOa4RTM8M7l9, you're on API version 2016-03-07. Stripe only supports returning cancelled subscription from 2016-07-06: https://stripe.com/docs/upgrades#2016-07-06
is there some risk of breaking change if I increase to 2016-07-06?
I'd recommend checking the change logs between these two versions to check if they are relevant to your integrations: https://stripe.com/docs/upgrades
You may also refer to this guide for the API upgrading instructions: https://stripe.com/docs/upgrades#how-can-i-upgrade-my-api
Ok I am taking a look, thank you for now!