#venkateshjsoft
1 messages · Page 1 of 1 (latest)
Hello venkateshjsoft, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• https://discord.com/channels/841573134531821608/1163569911696728124, 3 days ago, 14 messages
• https://discord.com/channels/841573134531821608/1161925590736187454, 7 days ago, 13 messages
hello! how can I help?
curl https://api.stripe.com/v1/payment_intents/search
-u sk_///**********:
--data-urlencode query="status:'succeeded' AND metadata['order_id']:'6735'"
-G
when I try curl request
{
"error": {
"message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY'). See https://stripe.com/docs/api#authentication for details, or we can help at https://support.stripe.com/.",
"type": "invalid_request_error"
}
}
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
im getting this error
like what the error message mentions, did you provide your API key?
yes
I'd suggest you check again, and compare it / try copying the example listed in the docs : https://stripe.com/docs/api/payment_intents/search
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 copied the exact sample and replaced the key
curl https://api.stripe.com/v1/payment_intents/search
-u sk_test_:
--data-urlencode query="status:'succeeded' AND metadata['order_id']:'6735'"
-G
I replaced my key and tried
i replaced your code with my own key and it worked fine
did you add bearer header?
The exact example provided
curl https://api.stripe.com/v1/payment_intents/search \
-u sk_test_...: \
--data-urlencode query="status:'succeeded' AND metadata['order_id']:'6735'" \
-G
its not working for me
what isn't working? do you mean you copied the exact example code with the full secret key and you're still getting an error?
so it's a different error now?
same error {
"error": {
"message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY'). See https://stripe.com/docs/api#authentication for details, or we can help at https://support.stripe.com/.",
"type": "invalid_request_error"
}
}
status is 401
never mind
i will check the same api with postman
im trying with postman now
is this correct?
{
"error": {
"message": "We were unable to parse your search query. Try using the format metadata[\"key\"]:\"value\" to query for metadata or key:"value" to query for other fields.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_rBidnXNWZuQPDE?t=1697701861",
"type": "invalid_request_error"
}
}
im getting this error
Hey! Taking over for my colleague. Let me catch up.
According to the error message you are getting, you are sending the request body in a malformated
I invite you to try this postman collection in order to do search:
https://www.postman.com/stripedev/workspace/stripe-developers/request/665823-f7b74771-0c9d-457f-b27f-c24ff21b8a0c