#christian-blackburn_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/1386836286358421651
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! wrapping up some other questions, will get back to you asap
ok looking at this now
sadly we can't see the results of GET requests so they can be a little tricky to troubleshoot
hmm i'm not able to reproduce it
would you mind trying to run this using a curl request real quick? also try using full quotes instead of apostrophes?
also is it just the one PaymentIntent showing up in the query results or are there others?
Sorry, was in meetings, sure, I'll run this as a curl.
The Shell functionality doesn't like the full quotes.
And yes, it's only this one paymentintent showing up with the incorrect status
no worries! let me know what happens with the cURL requests
Having issues with the cURL at the moment, it keeps giving me a 400 Bad Request response, just working through it
can you share a request ID? i can help with the 400 maybe
Ok, got it to work, the API client I was using was giving incorrect curl
curl -G
--url https://api.stripe.com/v1/payment_intents/search
--header 'Authorization: Basic cmtfbGl2ZV81MUtkcDBYQ1BPRGxTTmV3Wmk2TUZmcWRKcGowQzhmWDZRc1NuRk85dFJ4UGdvYTJiTjBRbnREaTRPclNqTElzTUd5bEhoVVRaYjl2SlBlS1VTZnhSZXBpODAwRU91R0dUdlE6'
--data 'query=status:'''requires_payment_method''''
Hi! Stepping in for my colleague! Glad you were able to get it to work!
So that query is still giving the single payment intent with a status of 'canceled' when I am specifically querying status of 'requires_payment_method'
Looking into this!
Do you have the payment intent that is being returned with a status of 'canceled'?
oh sorry, yes, it's pi_3RYxElCPODlSNewZ17ghwYIY
Thanks! You're getting pi_3RYxElCPODlSNewZ17ghwYIY because the Search API filters using a cached version of the PaymentIntent status. This payment intent previously has a status of requires_payment_method (https://dashboard.stripe.com/logs/req_2S8XzWZpUioNuI). Hence, even if it's not in a cancelled status, it's still showing up in the search.
More details about it here: https://docs.stripe.com/search#data-mismatches
Righto! So that cached version is more than 3 days old
Yes, but that is still taken into consideration.