# Get Action Plan Priority Matrix Counts
source: https://developer.mastercard.com/riskrecon-api/documentation/testing/actionplan-samples/actnpln-cnts-smpl/index.md

Allows you to fetch a vendor's issues within their risk priority settings based on asset value and issue severity.

## Pre-requisites {#pre-requisites}

Refer to the [Retrieve Action Plan Priority Matrix Counts](https://developer.mastercard.com/riskrecon-api/documentation/use-cases/risk-mgmt-issue-rmdfn/actionplan/get-actnpln-prty-mat-cnt/index.md) use case.

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

    GET https://api.sandbox.riskrecon.com/v1/action_plan/priority_matrix_counts/{toe_id}

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

    GET https://api.riskrecon.com/v1/action_plan/priority_matrix_counts/{toe_id}

## Test Cases {#test-cases}

### Test Case: Success - Retrieve action plan priority matrix counts {#test-case-success---retrieve-action-plan-priority-matrix-counts}

**Request**

Here is an example of a request made using a `curl` command.

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

**Response**

get:

```json
[
  {
    "asset_value": "high",
    "count": 487,
    "severity": "high"
  },
  {
    "asset_value": "medium",
    "count": 524,
    "severity": "high"
  },
  {
    "asset_value": "low",
    "count": 555,
    "severity": "high"
  },
  {
    "asset_value": "high",
    "count": 544,
    "severity": "medium"
  },
  {
    "asset_value": "medium",
    "count": 558,
    "severity": "medium"
  },
  {
    "asset_value": "low",
    "count": 882,
    "severity": "medium"
  },
  {
    "asset_value": "high",
    "count": 580,
    "severity": "low"
  },
  {
    "asset_value": "medium",
    "count": 554,
    "severity": "low"
  },
  {
    "asset_value": "low",
    "count": 299,
    "severity": "low"
  }
]
```

### Test Case: Fail - Invalid TOE ID {#test-case-fail---invalid-toe-id}

**Request**

Here is an example of a request made with an invalid TOE ID using a `curl` command.

```bash
curl -X GET \
  'https://api.sandbox.riskrecon.com/v1/action_plan/priority_matrix_counts/5976423a-ee890-11e3-858983-14109ff1n46704' \
  -H 'accept: application/json'
  -H 'Authorization: valid_JWT_token' 
```

**Response**

HTTP Error Response 404

```json
{
    "Errors": {
        "Error": [
            {
                "Description": "Resource Not found.",
                "Details": null,
                "ReasonCode": "NOT_FOUND",
                "Recoverable": false,
                "Source": "RISKRECON_API"
            }
        ]
    }
}
```

