#passweb_55757
1 messages ยท Page 1 of 1 (latest)
Hi there!
Which API call are you trying to make?
And can you share the exact error you get?
yes
{
"error": {
"message": "Invalid API Key provided: sk****************************************************************************************************3kyf",
"type": "invalid_request_error"
}
}
i have this error with all api call
Well the error is pretty clearn, you are using the wrong API key.
To solve this, I recommend:
- Visit your dashboard here: https://dashboard.stripe.com/test/apikeys
- copy your TEST API key (sk_test_xxx)
- And use that in your API call
I am the developer of a CMS and at the moment I don't have my client's test key at hand, but I had already tried and received the same error
I have several dozen customers and everything works for them, he is the only customer who has this problem
Can you try with curl instead of Postman?
just a moment
Something like this, jsut to test:
curl https://api.stripe.com/v1/customers \
-u sk_test_xxxx: \
--data-urlencode description="My First Test Customer"
It's not installed by default on your machine?
What's the error?
i have syntax error in the request
Can you copy-paste the code I shared above, and only replace the xxxx part?
This code please:
curl https://api.stripe.com/v1/customers \
-u sk_test_xxxx: \
--data-urlencode description="My First Test Customer"
with my api key live
If you don't have the test api key, then yes
Sorry can you try again like this:
curl https://api.stripe.com/v1/customers \
-u sk_test_xxxx: \
-d description="My First Test Customer"
๐ taking over for my colleague. Let me catch up.
sorry but I don't think curl is the best thing here, since you're using Windows PowerShell
postman should be fine
would you mind sharing the request ID that failed?
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
i don't receive Request-Id in the response Headers
please delete the screenshot
you've just shared your secret key on a live channel
you need to go now and roll your keys
ok
i obscure it next time