---
title: "getSubscriptionStatus"
canonical: "https://support.appfire.com/space/PSJC/622494016/getSubscriptionStatus"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Returns the notification subscription status for the provided user

Returns the notification subscription status for the provided user.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getSubscriptionStatus(requestId_or_Key, userAccountId) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| requestId_or_Key | String | Yes | The ID or Key of the customer request from which the subscription status will be retrieved |
| userAccountId | Integer | Yes | The account ID of the user to be checked |

## Return Type

**Boolean**

## Example

```javascript
return getSubscriptionStatus("SM-1", currentUserKey());
```

Returns true if the user is subscribed to that request or false otherwise.

## See also

> Macro (contentbylabel)