# User Subscriptions

<mark style="color:blue;">`GET`</mark> `{{BASE_URL}}/api/subscriptions/user-subscriptions`

#### Path Parameters

| Name       | Type    | Description             |
| ---------- | ------- | ----------------------- |
| lesson\_id | integer | ID of the lesson to get |

#### Headers

| Name           | Type   | Description                                                    |
| -------------- | ------ | -------------------------------------------------------------- |
| Authentication | string | Authentication token to track down who is emptying our stocks. |

{% tabs %}
{% tab title="200 OK" %}

```json
{
  "status": 200,
  "response_code": 0,
  "success": true,
  "errors": [],
  "message": "Subscriptions retrieved successfully",
  "data": [
    {
      "id": 301,
      "type": "single",
      "amount_paid": 2500.0,
      "original_price": 2500.0,
      "created_date": "2024-03-15T10:30:00.000Z",
      "status": "active",
      "courses": [
        {
          "id": 45,
          "name": "Personal Finance Fundamentals",
          "price": 2500.0,
          "description": "Master the basics of personal finance"
        }
      ]
    },
    {
      "id": 302,
      "type": "bundle",
      "amount_paid": 7500.0,
      "original_price": 7500.0,
      "created_date": "2024-03-20T14:15:00.000Z",
      "status": "pending",
      "courses": [
        {
          "id": 46,
          "name": "Investment Strategies",
          "price": 3500.0,
          "description": "Learn advanced investment techniques"
        },
        {
          "id": 47,
          "name": "Business Finance",
          "price": 4000.0,
          "description": "Financial management for entrepreneurs"
        }
      ]
    }
  ]
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.patascore.com/financial-education-1/subscriptions/fetch-websocket-conversaction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
