#alexesch_api

1 messages ยท Page 1 of 1 (latest)

vast yokeBOT
plucky flumeBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

vast yokeBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1250020630129147945

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

lapis yoke
#

error: Stripe\Exception\InvalidRequestException: No such subscription: 'sub_1PQPRAJaf89hC41IRuymRdkA' i

thick jackal
#

๐Ÿ‘‹ happy to help

lapis yoke
thick jackal
#

would you mind sharing the request ID?

lapis yoke
#

just a sec

#

can you tell me how?

#

$stripe = seq_stripe_client();

try {
$subscription = $stripe->subscriptions->retrieve('sub_1PQNKlJaf89hC41In97KWB7d', ['expand' => ['latest_invoice']]);
dsm($subscription->toArray());
}
catch (Exception $e) {
dsm($e->getMessage());
}

#

the only thing i'm getting is 'No such subscription: 'sub_1PQNKlJaf89hC41In97KWB7d'"

thick jackal
lapis yoke
#

oh, great

#

req_zA8lSCyiFtYdVD

thick jackal
#

yes give me a second

#

you're using a very old API version

lapis yoke
#

is there are any other way to get the canceled?

#

about old api, i know, we are already working on it

#

and, are you talking about SDK old versio? or about Stripe api version set in our account?

thick jackal
#

you can use a per API call version

lapis yoke
#

ok, thanks

runic hawk
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

lapis yoke
#

sure. have a good day!