# Get the Default Subscription-Level Configuration
source: https://developer.mastercard.com/riskrecon-api/documentation/testing/portfolio-samples/retrve-subs-lvl-config-smpl/index.md

Allows you to retrieve the default subscription level for TOE bulk add requests.

## Pre-requisites {#pre-requisites}

Refer to the [Retrieve the Default Subscription-Level Configuration](https://developer.mastercard.com/riskrecon-api/documentation/use-cases/portfolio-management/portfolio/retrve-deflt-subsn-lev-config/index.md) use case.

## Request URL for Sandbox environment {#request-url-for-sandbox-environment}

```bash
GET https://api.sandbox.riskrecon.com/v1/portfolio/subscription_level_config
```

## Request URL for Production environment {#request-url-for-production-environment}

```bash
GET https://api.riskrecon.com/v1/portfolio/subscription_level_config
```

## Test Cases {#test-cases}

### Test Cases: Success - Retrieve the default subscription level configuration {#test-cases-success---retrieve-the-default-subscription-level-configuration}

**Request**

Here is an example of a request made to retrieve the default subscription level configuration.

```bash
curl -X 'GET' \
  'https://api.sandbox.riskrecon.com/v1/portfolio/subscription_level_config' \
  -H 'accept: application/json' \
  -H 'Authorization: valid_JWT_token'
```

**Response**

get:

```json
{
  "customer_id": "45ef5537-f3e6-4b69-8988-9d17f627acd8",
  "subscription_level": "2",
  "updated_at": "2023-04-04T21:16:18.680095+00:00",
  "user_email": "test@test.com"
}
```

### Test Case: Fail - Expired JSON Web Token {#test-case-fail---expired-json-web-token}

**Request**

Here is an example of a request made with an expired JSON Web Token using a `curl` command.

```bash
curl -X GET \
  'https://api.sandbox.riskrecon.com/v1/action_plan/issue_progress/09918d09-8d52-4e86-a3ec-5ef4d461e2ba' \
  -H 'accept: application/json' \
  -H 'Authorization: expired_JWT_Token'
```

**Response**

HTTP Error response 401

```json
{
  "Errors": {
    "Error": [
      {
        "Description": "Unauthorized request",
        "Details": "Invalid JWT",
        "ReasonCode": "UNAUTHORIZED",
        "Recoverable": false,
        "Source": "RISKRECON_API"
      }
    ]
  }
}
```

