> For the complete documentation index, see [llms.txt](https://docs.tebex.io/developers/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tebex.io/developers/headless-api/guides/baskets/add-package-to-basket/variable-data.md).

# Variable Data

**Variables** can be added to your store from your Creator Panel, which will add additional options for the user to select per-package.

There are certain system variables which may be required depending on the **Package** deliverables:&#x20;

### Gift Cards

When a package delivers a gift card to the user, include a `giftcard_to` with the email address that should receive the gift card:

```json
{
    "package_id": "6276316",
    "quantity": 1,
    "variable_data": {
        "giftcard_to": "tebex-integrations@overwolf.com"
    }
}
```

### Discord Actions

Include the user's `discord_id` for packages that trigger a Discord action:

```json
{
    "package_id": "6276316",
    "quantity": 1,
    "variable_data": {
        "discord_id": "000000000000000000"
    }
}
```

### Game Server Commands

Packages that deliver game server commands should include the `username_id` of the user.

{% hint style="info" %}
The `username_id` is returned at basket creation so long as the `username` was provided with the create request.
{% endhint %}

#### Specify Game Server

Game server commands can be configured to  `Allow customers to select the game server they want to receive this package on.`&#x20;

You can specify the target game server in the request by including `server` in your package's `variable_data` with the associated server id:

```json
{
    "package_id": "6276316",
    "quantity": 1,
    "variable_data": {
        "server": "127444"
    }
}
```

A list of your server IDs can be found in your [Tebex Control Panel](https://creator.tebex.io/game-servers) by clicking **Edit** beside your relevant game server. The server ID is the number at the end of the URL when editing the game server.
