Skip to main content
Best answer

Webhook GET vs. Stripe Integration

  • February 1, 2022
  • 7 replies
  • 215 views

mixelpix
Forum|alt.badge.img+3

Anyone know what the difference is between the Webhook action's GET event vs Custom Request event using the GET method?

In particular, why would the two behave differently with the Stripe API?

Using the Custom Request action event I am able to successfully process a GET method request to the Stripe API.

Using the GET action event with the same URL and Secret Key, however, I get the following error msg:

"The app returned: https://stripe.com/docs/error-codes#parameter-unknown"

"The request contains one or more unexpected parameters. Remove these and try again."

What is the difference in parameters with the GET action and Custom Request GET method?

I am not using any query parameters, nor any arguments in the zap other than the URL and key, i.e. the same parameters in the Custom Request w/a Get method 🤷🏻‍♂️

The URL is Stripe's API, I'm using HTTPS, and the command works fine using cURL with the same secret key (either by the -u flag, or -H "Authorization: Bearer {secret_key}")

curl https://api.stripe.com/v1/customers/cus_uniqueCustomerID \

  -H "Authorization: Bearer sk_live_authToken"


curl https://api.stripe.com/v1/customers/cus_uniqueCustomerID \

  -u sk_live_authToken:

Thanks!

Best answer by Troy TessaloneBest answer by Troy Tessalone

@mixelpix 

For the GET there is this note in the Query String Params section that is likely the root cause of your issue.

 

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

7 replies

Troy Tessalone
Forum|alt.badge.img+14

Hi @mixelpix 

Are you able to post screenshots with how each Zap step is configured for your GET vs CUSTOM REQUEST?

If you have it working for CUSTOM, then what is your need to solve it for GET?


mixelpix
Forum|alt.badge.img+3
  • Author
  • Builder
  • 80 replies
  • February 1, 2022
Troy Tessalone wrote:

If you have it working for CUSTOM, then what is your need to solve it for GET?

Understanding the difference between the Webhook action's GET event vs Custom Request event using the GET method.


Troy Tessalone
Forum|alt.badge.img+14

@mixelpix 

Are you able to post screenshots with how each Zap step is configured for your GET vs CUSTOM REQUEST?


Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 30995 replies
  • Answer
  • February 1, 2022

@mixelpix 

For the GET there is this note in the Query String Params section that is likely the root cause of your issue.

 


mixelpix
Forum|alt.badge.img+3
  • Author
  • Builder
  • 80 replies
  • February 1, 2022
Troy Tessalone wrote:

Are you able to post screenshots with how each Zap step is configured for your GET vs CUSTOM REQUEST?

Per the OP, the settings are identical.  I’ve also tried changing the options re: flattening & JSON.


mixelpix
Forum|alt.badge.img+3
  • Author
  • Builder
  • 80 replies
  • February 1, 2022

 


mixelpix
Forum|alt.badge.img+3
  • Author
  • Builder
  • 80 replies
  • February 1, 2022

adding the header content-type: application/json makes no difference.