#Phyothiha
1 messages · Page 1 of 1 (latest)
Hi there 👋 that isn't an available parameter to filter on when listing Charges or Payment Intents, double checking whether the Search API can search on that.
I think using the Search API to search for Payment Intents is going to be the best approach. That allows you to search based on the intent's status, so you should be able to search for ones where that is still requires_capture
https://stripe.com/docs/search#query-fields-for-payment-intents
Thanks. What I'm trying to build is to integrate Stripe dashboard into our client's Custom CMS system. Is it possible to get those status with record count with one api? ( All - 11, Succeed -8, .... ) like that
No, that is not available via the API.
Oh ok... One last questions is Search API to search for Payment Intents can we filter refunded payments?
For that you'll want to search at the Charge object level, which has a query field refunded that you can search on:
https://stripe.com/docs/search#query-fields-for-charges
But that's only set to true if the Charge is fully refunded, partially refunded Charges will still have false there.
Ok Thanks