#venkateshjsoft

1 messages · Page 1 of 1 (latest)

neon kelpBOT
#

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

hidden zealot
#

hello! how can I help?

nocturne crescent
#

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"
}
}

#

im getting this error

hidden zealot
#

like what the error message mentions, did you provide your API key?

nocturne crescent
#

yes

hidden zealot
nocturne crescent
#

I copied the exact sample and replaced the key

#

I replaced my key and tried

hidden zealot
#

i replaced your code with my own key and it worked fine

nocturne crescent
#

did you add bearer header?

hidden zealot
#

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
nocturne crescent
#

its not working for me

hidden zealot
#

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?

nocturne crescent
#

yes

#

I replaced my own key and checked

#

im getting unauthorized error

hidden zealot
#

so it's a different error now?

nocturne crescent
#

status is 401

#

never mind

#

i will check the same api with postman

#

im trying with postman now

#

is this correct?

#

im getting this error

neon kelpBOT
hazy obsidian
#

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