#amer-paymentintent-search
1 messages · Page 1 of 1 (latest)
looking
amer-paymentintent-search
@dire pivot that is not how the search API works. You need to read https://stripe.com/docs/api/payment_intents/search which explains how to do this and use the query parameter
let me see
is it something like this:
https://api.stripe.com/v1/payment_intents?created[gte]=1680112288 AND status=succeeded AND metadata[Origin]=RS+Website
not at all no
did you read the doc?
Like it explains there's a query parameter, that has a clear format you have to respect with clear docs at https://stripe.com/docs/search#search-query-language
can you confirm if the endpoint is
https://api.stripe.com/v1/payment_intents/search
or
https://api.stripe.com/v1/payment_intents
1/ you shouldn't do this by hand especially seeing how confused you are. Use one of our official libraries: https://stripe.com/docs/libraries
2/ You can see the exact endpoint straight in our API reference at https://stripe.com/docs/api/payment_intents/search where it says /v1/payment_intents/search
we are building inside Salesforce and salesforce does not support use of stripe libraries
thats why im using rest api and making http callout
ah gotcha, bad luck. So in that case read the docs for the curl calls https://stripe.com/docs/api/payment_intents/search?lang=curl
i got to work using this end pint api
https://api.stripe.com/v1/payment_intents?created[gte]:1680114339&status:succeeded&metadata[Origin]:RS+Website
that's the List PaymentIntents API. That does not support metadata as a parameter
let me see
I need help here When i call this end point works
https://api.stripe.com/v1/payment_intents/search?query=status%3A'succeeded'+AND+metadata['Origin']%3A'RS+Website'
when i add created field it does not
https://api.stripe.com/v1/payment_intents/search?query=created['gte']%3A'1680115995'+AND+status%3A'succeeded'+AND+metadata['Origin']%3A'RS+Website'
Do you have the request ID from that second call?
this working with created field req_1OvzSG6VFbVL6n
this not working with created field req_wWmVXi92ppvO0y
Thank you, checking in to that error
I think created['gte'] is the format for the list call, not the search call. Can you try again with created >= 1680115995?
ok let me try
its working thank you
one more question
can i add pagination parameters on search query
Yes, you can pass the next_page that you get back to the next_page parameter in your next search call https://stripe.com/docs/api/pagination/search#search_pagination-next_page
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i cant use offset req_Zuoe1jEb8A03YM
getting this error parameter_unknown - offset
Received unknown parameter: offset
Where did you see offset as a parameter?
Or rather, what are you trying to do with that parameter?