# Gift Card: How to leverage gift card shortcodes in text block

The Gift Card Text block lets you personalize your gift card display by using special shortcodes. These shortcodes automatically insert dynamic gift card information into your text, making each card unique for the recipient.

### How to Use Shortcodes

Type the shortcode exactly as shown below into the **Text** field of your Gift Card Text block. When the gift card is displayed, the shortcode will be replaced with the actual value.

#### Available Shortcodes

* `[[gift_card_code]]`\
  The unique code for the gift card (in uppercase)
* `[[gift_card_amount]]`\
  The remaining balance (formatted as money)
* `[[gift_card_amount_with_currency]]`\
  The remaining balance with currency symbol (e.g. $25.00 USD)
* `[[gift_card_expiration_date]]`\
  The expiration date of the gift card (e.g. January 1, 2025)
* `[[gift_card_giver_name]]`\
  The name of the customer who purchased the gift card (if available)
* `[[gift_card_giver_email]]`\
  The email address of the customer who purchased the gift card (if available)
* `[[gift_card_message]]`\
  The message included with the gift card (if available)

***

### Example

If you enter the following in your block’s text field:

```
<p>Gift Card Code: [[gift_card_code]]</p>
<p>Balance: [[gift_card_amount_with_currency]]</p>
<p>Expires on: [[gift_card_expiration_date]]</p>
<p>From: [[gift_card_giver_name]] ([[gift_card_giver_email]])</p>
<p>Message: [[gift_card_message]]</p>
```

It will display something like:

```
Gift Card Code: 1A2B3C4D5E
Balance: $25.00 USD
Expires on: January 1, 2025
From: Jane Doe (jane@example.com)
Message: Happy Birthday!
```

***

### Highlighting Text

You can highlight any part of your text by wrapping it in square brackets, like this:

```
[This text will be highlighted]
```

The highlighted text will use the styles you set in the block settings. Y**ou must turn on the "Enable highlighted text" setting.**

**Tip:** You can combine shortcodes and highlighting, for example:

```
[Gift Card Code: [[gift_card_code]]]
```

This will highlight the code using your chosen highlight styles.

***

If you have any questions or need help, please contact our support team!


---

# 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://design-packs.gitbook.io/docs/fundamentals/section-tutorials/gift-card-how-to-leverage-gift-card-shortcodes-in-text-block.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.
