Skip to main content

Hi, 

I am trying to build a zap which will trigger diffrent actions depends on product id (Stripe). I have read the community and I have found out that is not that easy to do it and I will need to use webhook. I have never used it before and I am wondering if someone can help me and explain how I can get product ID using webhook? 
 

I have professional plan so as I have read - webhook is included in the plan. Do I need to pay extra on Stripe account for this? 

 

Many thanks

 

Hi @Winmark01 

 

If you are looking to pull through Product ID data that is included on a Stripe transaction, this may be possible using Stripe webhooks.

Included below is a copy of the Stripe API documentation which discusses setting up webhooks and the parameters that can be pulled through:

https://stripe.com/docs/api/webhook_endpoints

 

You can then set up a webhook by zapier Trigger step to produce the endpoint url to send the webhook payload.

Webhooks can also be set in the webhooks section of the Stripe dashboard to then set the events to send in the payload.

 

Another option would be to Trigger a Zap using the Stripe 'New Charge' or 'New Order' to see which line items come through on the trigger natively to see if webhooks are required.

Further information webhooks that might be helpful can be found here:

https://zapier.com/help/create/code-webhooks/trigger-zaps-from-webhooks

Feel free to reach out if you need assistance.

Thanks, Michael


Hi, 

Thank you for your answer. 

New Charge and New Order don’t contain data which I need unfortunately. 

I created webhook but the issue is that product_Id is hidden in checkout object in stripe and following stripe doc  I need to expand line_items. Do you know how I can do this? Do I need to use Code by Zappier or is it possible to do it via webhooks by zappier

Thank you

 


Hi @Winmark01 

Try using this as Step 2: Stripe Find Charge

 


@Troy Tessalone  so my first step is Catch Hook and I added Find Charge as the second step but:
 


 

Could you also explain why I need to add Find Charge? Product Id is hidden in Checkout object not charge object (Stripe)?


@Winmark01 

Sometimes all there are data points not sent/available on the trigger data.

Also, the webhook data looks like dummy data. (see screenshot)

Try sending thru real data then pulling thru newer examples to use to configure and test your Zap.

Check out this help article: https://zapier.com/help/create/basics/change-the-test-data-in-your-zap-trigger

 


Ok, so I tested once again and I have a proper data in Data Object ID but that doesn’t resolve my main problem - how to get the product id? 

As I mentioned before, following Stripe documentation about API, I need to expand Line_items from checkout object and there are fields related to product object. Is it possible to do it in Zapier or not at all? I am giving up slowly.. My main problem is that I don’t know how I can expand Line_items via zapier that stripe will be sending over the data to webhook(including Line_items not just charge or checkout fields)


So it doesnt’ look like @Troy Tessalone ever answered the question as to how to obtain the Product ID from stripe.

I’m curious as to:  (1) Stripe will be updating their API and the subsequent data being sent/shared with Zapier, OR if (2) @Winmark01 you found a workaround to differentiate your automation based on the actual product purchased.

I’m thinking this problem is not necessarily with Stripe overall as the exact data is shared to other platforms (e.g. Wordpress, Thinkific, Clickfunnels).  This is a matter of Zapier and Stripe coming to an agreement on what data is being exchanged.

Addt’l context…
FOr someone that likes to automate the back-end of products being sold from a store, this would be extremely helpful to have some level of product description or id available (vs. just the price).

If this isn’t do-able cur@Troy Tessalone , would you mind putting in a request for this so it could be included in a future release possibly?


Hi @dh2407 

Most Zap apps are created and maintained by the app developer on the Zapier Platform, rather than being managed by Zapier, altho I’m unsure who owns the Stripe integration.

 

Using app APIs is generally the advanced approach to take when the Zap app integration is limited.

App APIs can be used in Zaps with the Code app or Webhooks app.

Code: https://zapier.com/apps/code/help

Webhooks: https://zapier.com/apps/webhook/integrations

 

Consider hiring a Zapier Expert if you need help with advanced Zap configurations: https://experts.zapier.com/

 

Feedback and feature requests can be submitted via Zapier Support: https://zapier.com/app/get-help