Stripe API Search Subscription

I’m trying to use the API to Search subscription status for a customer via searching for the E-mail based on: the following API: https://api.stripe.com/v1/subscriptions/search (Docs here: https://docs.stripe.com/api/subscriptions/resume). I’m having problems with the search query language.

I don’t know what to put in the Key/Value Pair to search for the customer’s E-mail. The error message I keep getting is: The operation failed with an error. [parameter_unknown] Parameter: email Received unknown parameter: email Reference: https://stripe.com/docs/error-codes/parameter-unknown.

Any help would be appreciated!

Welcome to the Make community!

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.


(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Input/Output bundles

Please provide the input and output bundles of the trigger/iterator/aggregator modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

1 Like

This seems to be a simple request. Has anyone built any type of API with Make for Stripe?

For anyone who needs help, if you are using Stripe and you would like to pull the data for the customer to see all of their subscriptions and status, then you would use the List Subscriptions API with the following Enpoints:

/v1/subscriptions/?customer={{stripe.customer.id}}&status=all

This is an easy way to always poll your customer to see what subsciptions are active.

2 Likes

Hello @jmacman :wave:

Just wanted to jump in and thank you for sharing the valuable information that solved your troubles and could help others as well.

Keep up the good work! :clap:

1 Like