Skip to main content

Hi-

I’m trying to get the details of individual charges that make up a Stripe payout. I’m not even sure of the best method to do this, but my current step 1 is to trigger on a stripe payout.paid event. I’ve tried it using a Zapier action, and also by catching a webhook initiated from Stripe. In both cases, I can get the event with a unique payout id, but it has no detail on the individual charges that make up the total.

Step 2 should be to call Stripe with the payout id, hope that returns the itemized transactions, and then use a Zapier loop to see the detail on each transaction. Depending on whether or not Stripe returns the actual detail, or just the transaction id, I might have to call Stripe again for each transaction in the loop to get the transaction details. Note that our typical daily payout rarely has more than 10 transactions, so I’m not concerned about volume/performance.

There is no “get payout detail” built-in function in Zapier for Stripe, meaning I’d like need to use the Webhook.

My questions:

  1. Is there a better way to do this than what I’ve described above?
  2. Given the highly-sensitive nature of the Stripe production secret key, I’m not pasting that into my zap directly for the webhook authorization. The latest advice from Zapier seems to be to use the new functions beta product to store it, but I can’t find any info on how to actually implement the function as part of the process described above. Do I really have to learn Python just to store a single value?

Thanks,

Bill

Hi ​@Bill246 

Have you tried asking ChatGPT for help?

See AI feedback below for guidance.

If you need to hire help, there is a directory of Zapier Partnershttps://zapier.com/partnerdirectory

 

Looping help: https://zapier.com/apps/looping/integrations#help

 

If you need to use the Stripe API use this Zap action: Stripe - API Request

Stripe API: https://docs.stripe.com/api

 

 


Hi ​@Troy Tessalone - I did try Google Gemini, but it didn’t give me anything detailed enough.

I didn’t see the Beta API request for Stripe. I was able to use that to get past the issuing of having to store credentials, and that step is working now. It should be pretty straightforward now to loop through the results to do what I need. Thanks for pointing me in the right direction!

Bill


That’s awesome news, ​@Bill246! 🎉 So glad that API Request action Troy suggested did the trick. Great suggestion, ​@Troy Tessalone🙌

If you run into any trouble with looping through the results, just let us know. In the meantime, happy Zapping! ⚡️