#akhil-nair_api

1 messages · Page 1 of 1 (latest)

inland vaultBOT
#

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

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

surreal bloom
#

Hi there, are you referring to the customer ID?

#

i.e., how to retrieve subscriptions based on a customer ID?

urban grove
#

yes

#

based on stripe_customer_id i want to fetch the users subscription list which he had purchased

#

and also i wanted transactionId

surreal bloom
urban grove
#

So based on stripe_customer_id can we get the all the subscription purchased details of that particular user and also for a particular subscription being purchased can i get the transaction Id of that particular subscription?

surreal bloom
#

You can use this API

#

What do you mean by transaction ids? Or you mean invoices generated by the subscription?

urban grove
#

like if a user subscribes to a plan he will pay for it so there will be a transaction Id for that particular transaction right?

so we want to fetch that transaction details as well or we can say we want to get the transactionId so that we can help the end user if any error imn payment comes

surreal bloom
#

That’s the payment intent associated with the invoice

urban grove
#

but we r not capturing the payment_intent at our end

#

so is there any other option?

surreal bloom
#

You don’t, the payment intent is generally by stripe automatically

#

If your primary objective is to get notified about invoice payment results, you should listen to webhooks

urban grove
#

"id": "in_1MtHbELkdIwHu7ixl4OzzPMv",

this is need in parmater

so i only have stripe_user_id , I dont have the above mentioned id so can i fetch the details based on customer id ?

surreal bloom