# Account

## Get a list of current subscriptions.

<mark style="color:blue;">`GET`</mark> `https://api.halosecurity.com/api/v1/account/subscription-list.json`

Retrieve a list of subscriptions related to the currently logged in account.

<https://app.halosecurity.com/user/account/subscriptions>

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

```javascript
{
    "companyId": 12345,
    "subscriptions": [
        {
            "renewFrequency": "Year",
            "siteCount": 0,
            "product": 3,
            "dateCreated": "2022-03-14 18:38",
            "dateRenew": "2023-03-14",
            "price": "$0",
            "siteIds": [],
            "subscriptionId": 1234
        }
    ],
    "success": 1
}
```

{% endtab %}
{% endtabs %}

## Get information about a particular subscription.

<mark style="color:blue;">`GET`</mark> `https://api.halosecurity.com/api/v1/account/subscription-get.json`

#### Query Parameters

| Name                                              | Type    | Description            |
| ------------------------------------------------- | ------- | ---------------------- |
| subscrption\_id<mark style="color:red;">\*</mark> | integer | ID of the subscription |

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

```javascript
{
    "subscription": {
        "subscription_id": 12345,
        "product": 3,
        "amount": "0.00",
        "partner": 0,
        "renew_date": "2023-03-14",
        "renew_frequency": 2,
        "description": "Example",
        "detail": "1000x Target<br>100x Application Scanning<br>100x Server Scanning<br>Compliance Reporting<br>"
    }
}
```

{% endtab %}

{% tab title="404: Not Found " %}

```javascript
{
    "code": 0,
    "message": "subscription not found"
}
```

{% endtab %}
{% endtabs %}
