#bruno_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1220306774150877184
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
you make this API call to cancel the subscription immediately after creating it : https://dashboard.stripe.com/logs/req_NXGa0ibVMKYQwz
you probably have a bug or some webhook endpoint that you've forgotten about that responds to subscription creation or invoice payment failures(but does not correctly ignore invoices that are billing_reason:"subscription_create")
try searching your codebase for stripe.subscriptions.cancel
We do have one case for stripe.subscriptions.cancel... Do you know if that call is made with cancel or del?
What intrigues me a bit is that we do it right after customer.subscription.updated when I check the logs, but we don't even listen to that event...
Sorry, customer.subscription.created
We listen to updated and deleted, but not created
I think it was .del in older versions of the library
I see... Is that why we get invalid_request_error on req_OMePCDimOcErw8?
yes
One question: When we create a subscription, does Stripe always generate a setup_intent and a payment_intent, or only one or the other?
one of the other, SetupIntent if there is no immediate payment required, like a trial period or initial coupon
Could you please help me to understand how we got a setup intent for customer cus_Ple9XhkT3OerRB? That customer never got a free trial ๐ค
at some point you created a subscription for them with a 30 day trial period
https://dashboard.stripe.com/logs/req_r0n5YHC4XJ57VS I believe that's the result of creating a subscrpition through the Stripe Dahboard UI, as opposed to an API call your code made
I see... I'll investigate what's going on on our side. Thanks!
Just one more question, is there any chance that this subscription got the status past_due at some point?
sub_1OwcGPGXtcqHgDW8n86VZeyt specfically? No, not that I see.