# Approval/Upgrade/Denial Variables

*Article Topics:* [*Sites*](/getting-started/common-topics/sites.md)*,* [*Members*](/getting-started/common-topics/members.md)

NATS contains the ability to send user variables to external Approval, Upgrade, or Denial pages. By using this feature, you can provide members with specific member or login information through an external approval/upgrade/denial page, such as member ID, username, password, and many more.

## Setting Your URL

Before you can begin passing user variables through your desired pages, you must first set your Approval/Upgrade/Denial URLs in NATS.

To do so, go to the [Sites Admin ](/nats-admin/sites.md)and select a tour you want to affect. Click the Pages/Steps tab, and look for the Approval, Upgrade, or Denial section that is pertinent to you.&#x20;

<figure><img src="/files/jFPYAcZQQs2qwbThHlZP" alt=""><figcaption></figcaption></figure>

Populating the Redirect URL fields with your desired external Approval/Denial/Upgrade URLs into this field will redirect your visitors to those URLs after their membership is approved, denied, or upgraded.

## Passing Variables

You can append a wide variety of user variables to the Approval/Denial/Upgrade URLs in order to provide members and surfers with any information that you specify. Simply use the following example to append these variables:

```
https://<sample url>?<user variable>=%%<user variable>%%
```

In the above example, simply replace *\<sample url>* with the URL to your Approval/Denial/Upgrade pages, and *\<user variable>* with the user variable you wish to pass through.

To pass all information passed to NATS from the biller, you can specify %%query%%

```
https://<sample url>?query=%%query%%
```

To pass all available data regarding the member's transaction, you can just specify %%EVERYTHING%%

```
https://<sample url>?%%EVERYTHING%%
```

For example:

```
https://www.examplesite.com/approval.php?username=%%username%%
```

## Available Variables

Any variable from the member table can be passed through to Approval/Denial/Upgrade URLs of your choosing.

For example, you can provide a surfer with their *siteid*, *username*, *password*, *e-mail*, *ip*, etc.

Approval and Upgrade Approval URLs can take a few more variables than Denial/Upgrade Denial URLs, since NATS will have created a record of that member.

For example, you can provide a surfer with their *member\_subscription\_id*, *memberid*, *billerid*, *upgradeid*, etc.

## Related Articles

{% content-ref url="/pages/8hzAqEKfoLrtvccRT51X" %}
[Approval/Upgrade/Denial Template Variables](/nats-admin/sites/further-reading/approval-upgrade-denial-template-variables.md)
{% endcontent-ref %}


---

# 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.toomuchmedia.com/nats-admin/sites/further-reading/approval-upgrade-denial-variables.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.
