Best answer

Issue with authentication on Stripe API GET request

  • 20 October 2021
  • 4 replies
  • 78 views

Im trying to perform a GET request using the Zapier Webhook action. However, I cannot get the auth to work.

Ive sent up the action like so…

This post has been edited by a moderator to remove sensitive information. Please remember to obfuscate any personally identifiable information prior to posting as this is a public forum. 


If I test this in CURL it works fine. From what I can see it might be because the header value is being placed on 2 lines. Eitherway, any help would be much appreciated…

Thanks,

icon

Best answer by rickdonato 21 October 2021, 22:43

View original

4 replies

Userlevel 7
Badge +12

Hi @rickdonato 

  1. Try removing the header.
  2. Put the API Key in the Basic Auth field followed by a pipe |

 

For reference…

Stripe Authentication: https://stripe.com/docs/api/authentication

Stripe API endpoint: https://stripe.com/docs/api/checkout/sessions/retrieve

 

Thanks. I tried this also previously but I get a 400 ? 
 


Thanks for all your help.

Userlevel 7
Badge +12

@rickdonato 

Based on your latest screenshot, we can’t tell how your Webhook step is now configured.

Check the Stripe documentation for guidance about the errors and how to handle: https://stripe.com/docs/error-codes#unknown-parameter

 

Thanks. I managed to fix this in the end by looking at: https://zapier.com/help/doc/how-to-use-stripe-payment-links-with-zapier

Solution was to change the auth to Basic Auth and then also change the GET params.

Reply