#empowered-001_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/1220093015058677936
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
If you want a csv then you may be best off working with our Reports API: https://docs.stripe.com/reports/api
Just looking at it now
You can also download some of these reports from your Dashboard if you are less technical.
But that would obviously not be programmatic in that case.
That is the thing, we don't want to double handling. Basically when the payment happens, we want to create payment automatically in our ERP system (whether in real time or on a scheduled basis), so API is the way not Webhook?
Webhooks are the correct way to do this in real time
You could use the Reports API to run this once a day for the previous day if you wanted to go that route
Up to you really
Can you please expand a little on the Webhook way (real time)?
Sure, you listen for payment_intent.succeeded Events and when you receive that Event you retrieve the PaymentIntent and expand the latest_charge. That will give you all the data you need about the Charge and then you can ingest what you want into your ERP
I see, I would need our technical team to decipher the technical bit and coding part of it, where should I point them to read and learn more?
https://docs.stripe.com/webhooks are our general docs on Webhooks. If they have specific questions they can always pop in this server and ask us.
Great, thanks mate