Skip to main content
Question

Can't use test data in Stripe subscription cancellation


I am trying to set up a zap that does a Stripe cancel subscription, but it won’t test in test mode, it insists on using the live data and I have only given it the test API Key.

When you set up all the other action events, it has the option to use test or live, but this one doesn’t it only has the subscription ID field, so you can’t choose ‘test’ and it fails to use the test data with a message…

Failed to create a canceled subscription in Stripe

The app returned "No such subscription: 'xxxxxxxxxxxxxxxxxxx'; a similar object exists in test mode, but a live mode key was used to make this request.".

xxxxxxxxxxxx used above just to hide the ID.

Is this just a flaw in that particular event? Surely you can test cancelling a test subscription from Stripe.

Did this topic help you find an answer to your question?

3 replies

Troy Tessalone
Forum|alt.badge.img+14

Hi ​@xtensive 

Some Stripe trigger events let you specify if live/test data should be returned.

Stripe actions are for live data.

You would have to use one of these options to make a Stripe API for test mode:

  • Custom Action
  • API Request

 


  • Author
  • New
  • 1 reply
  • March 3, 2025

Thanks for your reply. Surely an easy thing to be added in to Stripe to work the way the other events do.

Will look into that in the short term though. Thanks


Troy Tessalone
Forum|alt.badge.img+14

@xtensive 

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