Links

Get Stripe Customer Data using Email Address

Tutorial on how to set up Custom Action to Get Customer data by query

1. Select the Component you want to add the Custom Action to and choose "New Custom Action" from flyout.

​
Select the Component you want to add the Custom Action to and choose "New Custom Action" from flyout.
​

2. Name your Custom Action and select the Type. In this case we are using Create.

​
Name your Custom Action and select the Type. In this case we are using Create.
​

​

3. Enter REST API information found in the Stripe API Reference Docs​

​
Enter the API Base URL and the Method from the Stripe API Docs. In this case we are using GET but each API will be different.
​

4. Add Authorization Header

​
Add Authorization Header -
​

5. Type 'Authorization' and 'Bearer [YOUR SECRET_KEY] - Be sure to update to LiveMode credentials when launching your app. Click 'Done'

​
Type 'Authorization' and 'Bearer [YOUR SECRET_KEY] - Be sure to update to LiveMode credentials when launching your app. Click 'Done'
​

6. Update any Variable Inputs you will need for Queries. This will allow you to use MagicText to input information.

​
Update any Variable Inputs you will need for Querys. This will allow you to use MagicText to input information.
​

7. This API allows email address so we will enter an example from our Stripe Customers Dashboard.

​
This API allows email address so we will enter an example from our Stripe Customers Dashboard.
​

8. Add Query Parameter

​
Add Query Parameter
​

9. In this example it is 'email' and the Value will be the Input from MagicText. Once entered, Click 'done' and Run the Test Request.

​
In this example it is 'email' and the Value will be the Input from MagicText. Once entered, Click 'done' and Run the Test Request.
​

10. Click on cus_MWsSstDxiEoIYl

​
Click on cus_MWsSstDxiEoIYl
​

11. If successful, you will see the MagicText Output properties and can rename them for easier identification.

​
If successful, you will see the MagicText Output properties and can rename them for easier identification.
​

12. You will also be able to view the full response from the API by clicking 'Show Full Response'. After you have updated necessary Output data, Save your Custom Action.

​
You will also be able to view the full response from the API by clicking 'Show Full Response'.
​

13. Once Saved, you can update the source of the Variable Input in your Custom Action. Output Data will be available in subsequent Actions and can be used to Update Records in your Collections.

​
8 Once Saved, you can update the source of the Variable Input in your Custom Action. Output Data will be available in subsequent Actions and can be used to Update Records in your Collections.
​