Best answer

Delay a trigger in Stripe, or update data after delay

  • 16 January 2022
  • 4 replies
  • 270 views

  • Anonymous
  • 0 replies

I’m trying to create a zap with ‘New Invoice’ in Stripe as trigger. The problem is that the trigger is activated as soon as I add the customer, before finalizing the invoice. As a result, data such as the items, hosted invoice URL, invoice pdf is missing when the trigger runs, so I can’t use them in the Zap for the following actions.

Is there a way to delay after the trigger, and then have Zappier update the information from the trigger?

icon

Best answer by peter.harrison 16 January 2022, 19:14

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

this is how the action is set up

 

Hi, So I’m not able to pass the webhooks GET stage. I’m getting an error message 

 

Thanks a lot @peter.harrison 

Will dive in and try to figure it all out.

Hey there @BullsMedia

 

Just wanted to hop in here to make a suggestion on a possible way to get this working.  

 

Looks like you are on the right track here! Since there isn’t a Search Invoice action in the Stripe integration, you can try using a Webhooks by Zapier GET step to retrieve the invoice using the Invoice ID from the trigger. 

 

Stripe’s API docs on retrieving an Invoice should help with setting up the webhook step:

https://stripe.com/docs/api/invoices/retrieve

 

I’d try sending the GET to this URL https://api.stripe.com/v1/invoices/, and map the ID from the trigger at the end of the URL. 

Like this: 

https://api.stripe.com/v1/invoices/{{triggernode__id}}

 

 

Make sure you fill out the auth information at the bottom of the step. 

 

Zap steps would look something like this: 

  • Trigger: New Invoice in Stripe
  • Action: Delay For by Zapier - delayed for however long it takes the invoice to fully update in Stripe 
  • Action: Webhooks by Zapier (GET) 

Then map the rest of your workflow as needed. 

 

If you run into any issues setting it up, here are some places you can look: