> For the complete documentation index, see [llms.txt](https://help.adalo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.adalo.com/component-basics/marketplace-components/stripe/stripe-custom-actions/get-stripe-subscription-data.md).

# Get Stripe Subscription Data

Tutorial on how to set up Custom Action to Get/Validate Subscription Data

## Get Subscription Custom Action

#### 1. Select Stripe Subscription Component

![Select Stripe Subscription Component](https://images.tango.us/public/screenshot_4b4b8e0a-e983-4aaf-92e3-4f7a4c51e5c4.png?fm=png\&crop=focalpoint\&fit=crop\&fp-x=0.8686\&fp-y=0.4463\&fp-z=2.7099\&w=1200\&mark-w=0.2\&mark-pad=0\&mark64=aHR0cHM6Ly9pbWFnZXMudGFuZ28udXMvc3RhdGljL21hZGUtd2l0aC10YW5nby13YXRlcm1hcmsucG5n\&ar=1712%3A1304)

#### 2. Add New Custom Action

![Add New Custom Action](https://images.tango.us/public/screenshot_984f51dd-8f2e-44b6-b3b2-ba8d1f4a690a.png?fm=png\&crop=focalpoint\&fit=crop\&fp-x=0.1425\&fp-y=0.4670\&fp-z=2.4683\&w=1200\&mark-w=0.2\&mark-pad=0\&mark64=aHR0cHM6Ly9pbWFnZXMudGFuZ28udXMvc3RhdGljL21hZGUtd2l0aC10YW5nby13YXRlcm1hcmsucG5n\&ar=1712%3A1304)

#### 3. Name Custom Action and Select 'Create' as Type

![Name Custom Action and  Select 'Create' as Type](https://images.tango.us/public/screenshot_81e62a6a-eb0d-416f-8114-bc93a554d152.png?fm=png\&crop=focalpoint\&fit=crop\&fp-x=0.5000\&fp-y=0.4202\&fp-z=1.5374\&w=1200\&mark-w=0.2\&mark-pad=0\&mark64=aHR0cHM6Ly9pbWFnZXMudGFuZ28udXMvc3RhdGljL21hZGUtd2l0aC10YW5nby13YXRlcm1hcmsucG5n\&ar=1712%3A1304)

#### 4. Enter REST API information found in the [Stripe API Reference Docs](https://stripe.com/docs/api)

* #### In this example, we will use "<https://api.stripe.com/v1/subscriptions>"
  * Method - GET
  * Header - Authorization Bearer \[sk\_test\_YOUR API KEY]

![Enter REST API information found in the Stripe API Reference Docs - https://stripe.com/docs/api](https://images.tango.us/public/screenshot_f2bebea6-cd2e-497f-ae44-6b412dd295e5.png?fm=png\&crop=focalpoint\&fit=crop\&fp-x=0.4016\&fp-y=0.5556\&fp-z=1.6709\&w=1200\&mark-w=0.2\&mark-pad=0\&mark64=aHR0cHM6Ly9pbWFnZXMudGFuZ28udXMvc3RhdGljL21hZGUtd2l0aC10YW5nby13YXRlcm1hcmsucG5n\&ar=1712%3A1304)

#### 5. Click on DONE and RUN TEST REQUEST

![Click on DONE and RUN TEST REQUEST](https://images.tango.us/public/edited_image_635baf63-63b1-4a14-9a3c-2867f4761ea2.png?fm=png\&crop=focalpoint\&fit=crop\&fp-x=0.5000\&fp-y=0.5000\&fp-z=1.0000\&w=1200\&mark-w=0.2\&mark-pad=0\&mark64=aHR0cHM6Ly9pbWFnZXMudGFuZ28udXMvc3RhdGljL21hZGUtd2l0aC10YW5nby13YXRlcm1hcmsucG5n\&ar=1712%3A1304)

#### 6. View Response

* From here you can Rename or Delete any extra properties to help you locate the ones you will be using easier.

![View Response](https://images.tango.us/public/edited_image_d5eb8cd7-1012-4a0c-89f3-b2e52b3babed.png?fm=png\&crop=focalpoint\&fit=crop\&fp-x=0.5000\&fp-y=0.5000\&fp-z=2.0000\&w=1200\&mark-w=0.2\&mark-pad=0\&mark64=aHR0cHM6Ly9pbWFnZXMudGFuZ28udXMvc3RhdGljL21hZGUtd2l0aC10YW5nby13YXRlcm1hcmsucG5n\&ar=1712%3A1304)

#### 7. Save Custom Action

![Save Custom Action](https://images.tango.us/public/screenshot_cc157faf-2313-4b80-99d1-343d8d7f9c3f.png?fm=png\&crop=focalpoint\&fit=crop\&fp-x=0.7091\&fp-y=0.9417\&fp-z=2.8725\&w=1200\&mark-w=0.2\&mark-pad=0\&mark64=aHR0cHM6Ly9pbWFnZXMudGFuZ28udXMvc3RhdGljL21hZGUtd2l0aC10YW5nby13YXRlcm1hcmsucG5n\&ar=1712%3A1304)

#### 8. Create new Action using your Data!

* Now you will be able to use this information in Actions to Create/Update Records in your Database

![Create new Action using your Data!](https://images.tango.us/public/screenshot_78b7de3b-3d59-4ad8-929c-8a28166dfd20.png?fm=png\&crop=focalpoint\&fit=crop\&fp-x=0.3528\&fp-y=0.3447\&fp-z=1.4506\&w=1200\&mark-w=0.2\&mark-pad=0\&mark64=aHR0cHM6Ly9pbWFnZXMudGFuZ28udXMvc3RhdGljL21hZGUtd2l0aC10YW5nby13YXRlcm1hcmsucG5n\&ar=1712%3A1304)

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.adalo.com/component-basics/marketplace-components/stripe/stripe-custom-actions/get-stripe-subscription-data.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
