> For the complete documentation index, see [llms.txt](https://help.recart.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.recart.com/discounts/add-general-discount-codes-to-sms-messages.md).

# Add General Discount Codes to SMS Messages

Learn how to add general discount codes to your Recart text messages

#### Table of Contents

* [What are general discount codes?](#whataregeneral)
* [How does Recart attribute sales on general discount codes?](#recartattribute)
* [How to add general discount codes to SMS](#addgeneraltosms)
  * [Creating a new general discount code](#createnew)
  * [Adding an existing general discount code](#addexisting)
* [Add a link to your SMS and connect it to your discount code](#addlink)

***

### What are general discount codes?

* General discount codes are alphanumeric combinations or phrases that customers can use during checkout to receive a price reduction on their purchases.
* General discount codes can offer
  * percentage-based discounts
  * fixed amount reductions
  * buy X get Y
  * free shipping
* You can **create new** general discount codes or **add existing ones** to your Recart SMS messages.
* This feature allows you to track discount codes your customers have used via Recart SMS messages.
* General discount codes are **static for every subscriber**
  * each customer gets the same code
  * this also means that one code can be used across multiple follow-up messages

### How does Recart attribute sales on general discount codes?

* In order for Recart to track sales accurately please make sure you are using a **new general discount code that is not available in any other channels** for each text message.
* The reason is that **all sales generated using that code will be attributed to Recart** so using a code that is advertised elsewhere might cause our numbers to be inaccurate.
* A sale will also be attributed to Recart **when a subscriber clicks the link within your text** **message and completes the purchase** even if they do not use the discount code they were given.

### How to add general discount codes to SMS

1. Click on the `% icon` in the editor
   1. you will be prompted to add the **name** of the discount code

![GDC1](https://2167119381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2I45aTZ733MBi8Vps3Ib%2Fuploads%2FZzodyfoaENDxoYXtcSo8%2Fadd-general-discount-codes-to-sms-messages-1.jpg?alt=media)

2. Now you have two options:
   1. you can create a new general discount code
   2. you can add one that already exists within your Shopify Admin.
   3. Again, we **recommend creating a new general discount code each time** to ensure that Recart can track the extra sales properly but if you are adding an existing code, please remember not to use it anywhere else.

### Creating a new general discount code

1. Type the `name` of your **new discount code** and click \*\*`Next`

   ![GDC2](https://2167119381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2I45aTZ733MBi8Vps3Ib%2Fuploads%2FtkrcfwJtLqKr5Jt9N3si%2Fadd-general-discount-codes-to-sms-messages-2.jpg?alt=media)\*\*
2. Select the `discount type`
3. Insert the `discount value`
4. Click\*\*`Insert code`\*\*`![GDC3](./add-general-discount-codes-to-sms-messages-3.jpg)`
5. Once it is saved it will be automatically synced to your Shopify Admin.

![GDC10a](https://2167119381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2I45aTZ733MBi8Vps3Ib%2Fuploads%2Fc1APFL39ehRm1cYd4b33%2Fadd-general-discount-codes-to-sms-messages-4.jpg?alt=media)

**Important Note:** Once you have created the discount code there is no option to modify the name, type, or value of the code from Recart. You can edit these details from your **Shopify Admin** in the **Discounts menu**.

### Adding an existing general discount code

1. Type the name of your code that already exists in Shopify
   1. if the code already exists you will see a **green checkmark** next to the name
   2. click `next`

![GDC7a](https://2167119381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2I45aTZ733MBi8Vps3Ib%2Fuploads%2FjRDNZWLY2xNVgchQ14jD%2Fadd-general-discount-codes-to-sms-messages-5.jpg?alt=media)

2. All information is prefilled and cannot be edited in Recart.
3. Click on `Insert code`

![GDC8](https://2167119381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2I45aTZ733MBi8Vps3Ib%2Fuploads%2Fscbj8PJCXcwiRZnsHaZ3%2Fadd-general-discount-codes-to-sms-messages-6.jpg?alt=media)

4. Once you have inserted the code you will see the discount code appear in your SMS message. Please do not delete the discount code item.

![GDC9](https://2167119381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2I45aTZ733MBi8Vps3Ib%2Fuploads%2FAt9JOsApOueDWpN9m2jV%2Fadd-general-discount-codes-to-sms-messages-7.jpg?alt=media)

### Add a link to your SMS and connect it to your discount code

1. Click on the `link icon` and choose the most suitable **`link type`**
2. Connect it to your discount code.

![GDC4](https://2167119381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2I45aTZ733MBi8Vps3Ib%2Fuploads%2FxlwBWsJAs853kNhpUOYj%2Fadd-general-discount-codes-to-sms-messages-8.jpg?alt=media)

3. Click `Insert link`

![GDC5](https://2167119381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2I45aTZ733MBi8Vps3Ib%2Fuploads%2FUSNicOFakT8pSsK6tyHo%2Fadd-general-discount-codes-to-sms-messages-9.jpg?alt=media)

4. The link with the discount code connected will be added to your SMS message

![GDC11](https://2167119381-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2I45aTZ733MBi8Vps3Ib%2Fuploads%2FQP5wS77dqmaNLR56jBgx%2Fadd-general-discount-codes-to-sms-messages-10.jpg?alt=media)

For more information see our article on [**How to add links to your SMS Flows**](https://help.recart.com/en/articles/imported-draft-5-1681730704963).

**NOTE:** General discount codes are static for every subscriber. In case you would like to create **unique discount codes**, that are dynamic for every subscriber [please check this article.](https://help.recart.com/1.-creating-a-new-discount-code-in-shopify)

In case you need further assistance, feel free to [contact our support team](https://help.recart.com/imported-draft-5-1681730660112), we are happy to help. 😊


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.recart.com/discounts/add-general-discount-codes-to-sms-messages.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
