#bravo-vinit_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/1331205057382715434
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
thank you
Could you please describe in more detail what do you mean by "Product wise Transactions"?
sure
I've created some products
Then I've created Payment Links for them
There are some Transactions on these Payment Links
So I want to get Transactions with the Product ID or Product Name
Via API
I understand. It's going to be a little tricky, but possible.
- You will need to retrieve all Payment Links, and expand line_items in each of them.
- Then you take the IDs of the Payment Links with the line_items containing the Product you're looking for, and fetch all Checkout Sessions for them.
- After that, you take the PaymentIntents of the Checkout Sessions you fetched - those are "transactions".
It's really tricky but Thank you I'll try