# Component: Redeem

**Purpose**: An input form for a gift recipient to redeem a previously purchased gift.

{% embed url="<https://69c2cf3a42a094f3cd354b8d-ojozztnsdo.chromatic.com/?path=/story/shop-components-content-redeem--default&full=1&shortcuts=false&singleStory=true&embed=true>" %}

Read more about the gift process here: [https://docs.limio.com/guides/feature-implementation-guides/guide-how-to-sell-subscription-gift-codes-in-limio-commerce](https://docs.limio.com/guides/feature-implementation-guides/guide-how-to-sell-subscription-gift-codes-in-limio-commerce "mention")

## Props

| Prop Name                | Label                                 | Type     | Default Value                                                             | Description |
| ------------------------ | ------------------------------------- | -------- | ------------------------------------------------------------------------- | ----------- |
| heading                  | Heading                               | string   | You're almost done                                                        |             |
| subHeading               | Sub Heading                           | richtext | Just tell us where you're located so you can start enjoying your product. |             |
| giftCodeLabel            | Gift Code Field Label                 | string   | Enter your code to redeem                                                 |             |
| giftCodeRegex            | Gift Code Regex                       | string   | ^\[a-zA-Z0-9]{10,11}$                                                     |             |
| contactUsMessage         | Contact us/issues redeeming gift text | richtext | Having issues redeeming your gift? Contact us                             |             |
| incorrectGiftCodeMessage | Incorrect Gift Code Message           | string   | The code you entered is incorrect                                         |             |
| noGiftCodeMessage        | Empty Gift Code Message               | string   | Please enter a code to continue                                           |             |
| alreadyRedeemedMessage   | Gift code already redeemed message    | string   | Gift code has already been redeemed                                       |             |
| invalidGiftCodeMessage   | Gift code doesn't exist message       | string   | Gift code doesn't exist                                                   |             |
| expiredCodeMessage       | Expired gift code message             | string   | Gift code is expired                                                      |             |
| fallbackErrorMessage     | Fallback error                        | string   | An error occured                                                          |             |
| confirmButtonText        | Button Text                           | string   | Redeem                                                                    |             |
| confirmButtonUrl         | Button Url                            | string   | [www.limio.com](http://www.limio.com)                                     |             |
| showOptionalFields       | Highlight optional fields?            | boolean  | false                                                                     |             |


---

# 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.limio.com/components/component-library/standard-components/component-redeem.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.
