#empowered-001_api

1 messages ¡ Page 1 of 1 (latest)

ancient knotBOT
#

👋 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.

serene zealotBOT
jade wyvern
#

Hello

final garnet
#

Just looking at it now

jade wyvern
#

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.

final garnet
#

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?

jade wyvern
#

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

final garnet
#

Can you please expand a little on the Webhook way (real time)?

jade wyvern
#

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

final garnet
#

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?

jade wyvern
final garnet
#

Great, thanks mate