#D365 Developer
1 messages · Page 1 of 1 (latest)
Payment Intents.
Got it. There's not a way to do this since we don't keep a last updated field
What are you trying to do though? What's the end goal? Might be able to provide an alternative
We Need to retrieve all rejected transactions on daily basis.
We are having nightly jobs to capture the rejected transactions.
So any possibility in this?
I observed cancelled at field but i am not able to use it in query.
We recommend you use webhooks for something like this: https://stripe.com/docs/webhooks. So that you are proactively notified of failed payments. You can then store them on your end and do whatever you need. This would be the event to listen to in your case: https://stripe.com/docs/api/events/types#event_types-payment_intent.payment_failed
Do we have any alternatives other tha webhooks?
Not really
You can list all payment intents and manually parse them: https://stripe.com/docs/api/payment_intents/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That's super inefficient though
That's why we always recommend webhooks for things like this
ok thanks.
No problem
canceled at is showing numeric value what was that exactly? days or time?
Unix timestamp