Stripe API - Delete Customer/Product

Hi, everyone:

I am having trouble initializing a couple of Stripe APIs that involve deleting a customer or product. Stripe Doc says no parameter is required for either API calls, but then they have :id which totally makes sense:

When I tried to provide a Stripe-assigned ID as a parameter, it doesn’t work. When I tried to hard-coded it in the URL, it doesn’t work. My latest is this:

What do I need to do to get this to initialize and work properly?

Thank you.

You need to include the customer ID in the URL path, as per the Stripe docs… not as a query parameter.

So the endpoint URL should be https://api.stripe.com/v1/customers/[customer_ID]

Then set the dynamic value for the customer ID in the value field.

Be sure to uncheck the ‘private box’.

So the endpoint URL should be https://api.stripe.com/v1/customers/[customer_ID]

Then set the dynamic value for the customer ID in the value field.

If I hard-coded the customer ID in the URL, doesn’t that make the value static?

And when setting the dynamic value, do you mean leaving it blank here and setting it in the element editor?

Don’t ‘hard code’ it, no… you need to have it as a dynamic value.

You need to include an actual valid value in order to initialise the call.

So are you saying that after I am able to initialize the call, I need to delete the ID from the URL?

You shouldn’t put the ID in the URL… it should be a dynamic value that you can define in your workflows or data sources.

Well, when I did this, it worked:

When I did this, it gave me an error:

Yes indeed… as I’ve expanded already several times, you need to include an actual valid
Value to initialise the call (but a dynamic one, not a static one).

This topic was automatically closed after 70 days. New replies are no longer allowed.