Skip to main content
Best answer

Delay a trigger in Stripe, or update data after delay

  • January 16, 2022
  • 4 replies
  • 335 views

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?

Best answer by peter.harrisonBest answer by peter.harrison

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: 

 

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.

4 replies

  • Zapier Staff
  • 2 replies
  • Answer
  • January 16, 2022

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: 

 


  • 0 replies
  • January 17, 2022

Thanks a lot @peter.harrison 

Will dive in and try to figure it all out.


  • 0 replies
  • January 18, 2022

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

 


  • 0 replies
  • January 18, 2022

this is how the action is set up