#patch_webhooks

1 messages ¡ Page 1 of 1 (latest)

icy prawnBOT
#

👋 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/1402714186391490620

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

timber quiver
#

Hi, that subscription was created from this request: https://dashboard.stripe.com/test/logs/req_Qs7d2BUG2EB0yW that you made using the Stripe Account Header. That subscription already exists, and I'm unsure what you mean by 'I'm trying to subscribe a user to a subscription but stripe keeps responding that'. What request are you attempting to make exactly?

balmy lintel
#

Sorry I messed up my previous message.
I'm using the hosted checkout to allow customers in my app to subscribe to a subscription that shop-users in my app create under their stripe-connect account.

I get this error:
Webhook error: No such subscription: 'sub_1RtBcyB1XM9KBwsrQHPJ5Hm1'

from this call:
const subscription = await stripe.subscriptions.retrieve(session.subscription as string)

where session.subscription is a Stripe.Checkout.Session.

#

however in the UI, I can see that subscription just fine, so I am not understanding why it's failing to retrieve it.

timber quiver
balmy lintel
#

Ah, I will try that now, please give me a moment to make some changes.

timber quiver
#

The reason why you get that error is when you try to access an object that belongs to your Connected Accounts for instance.

#

Sure

balmy lintel
#

Great, that works, I have some other errors to work out, but I can retrieve that subscription now, thank you so much!