---
updatedAt: 2025-10-30T22:15:32.000Z
agentTools:
  projectIndex: https://docs.rejoiner.com/llms.txt
---

# Shopify

## Add / Remove Tags

You can use [Webhook](https://docs.rejoiner.com/docs/webhooks) nodes to add or remove tags from a customer in your Shopify storefront.

### Add the Send Webhook node

You'll need to access your Rejoiner account and find the Journey you want to use and edit it. If your Journey is already active, you will need to create a copy in order to modify it. After you've completed the changes, you can then activate the copy, which will replace the existing Journey.

Once you are editing the Journey you want to use, you can open the list of available Journey nodes.

![](https://files.readme.io/8e609fcb4995c683fde7923f713b9f4bb6b38699b83c545cc32b0f6fd61a2592-image.png)

![](https://files.readme.io/35ecec863fbc8893c0c461e40f991bfe641a1255f1aab6551eec1f44feaefc09-image.png)

And select the `Send Webhook` node.

<img src="https://files.readme.io/3ba6fa3593792c6a8161672636d28141e3039a2df102b18d6e6369c6b8bdd5fb-image.png" width="280" />

### Configure the Send Webhook node

1. For the `Set Webhook URL` value, use:

To add tags:

```
https://integrations.rejoiner.com/platforms/shopify/webhooks/rejoiner/tags/add
```

To remove tags:

```
https://integrations.rejoiner.com/platforms/shopify/webhooks/rejoiner/tags/remove
```

2. Then `Add New Metadata Key` for `tags`

![](https://files.readme.io/de21cad-Screen_Shot_2022-03-22_at_1.22.08_PM.png "Screen Shot 2022-03-22 at 1.22.08 PM.png")

3. And click **Save New Field**.

4. For the value of the `tags` metadata field, enter the tags you would like to add or remove, separated by commas. For example to add the tags `spam` and `ham` you would enter: `spam, ham`

![](https://files.readme.io/450824c-Screen_Shot_2022-03-22_at_1.21.31_PM.png "Screen Shot 2022-03-22 at 1.21.31 PM.png")

5. **(Optional) Set Inbound Webhook:** if you want the customer's tags from Shopify to be made accessible to the journey, enable *Wait for inbound webhook after sending.*

![](https://files.readme.io/8ac6dee-Screen_Shot_2022-03-18_at_1.56.05_PM.png "Screen Shot 2022-03-18 at 1.56.05 PM.png")

This will make the tags available in the journey's session metadata under the `shopify_tags` key.

6. Then click **Save Changes**.

***

## Dynamic Discount Codes

Our Webhooks feature will allow you to generate unique coupon codes, associated to Price Rules in your Shopify account, for users in your Rejoiner journeys.

To facilitate this, you will need to add a `Send Webhook` node, which initiates the process. You can then configure the discount code to be available in a subsequent journey node, such as in a `Send Email` node.

This allows you to cause the unique coupon code to be generated and added to your Shopify Price Rule and then sent to your users via email.

In order to accomplish this, you will need to:

1. Get the `Price Rule ID` for the discount, you want the generated codes on

2. Add the `Send Webhook` node to your journey

3. Add a `Wait for Event` delivery rule to capture the `Inbound Webhook`

This will attach the discount code to the user's session and make it available for use in your email template with the template tag:

`session.metadata.discount_code`

### Add the Send Webhook node

You'll need to access your Rejoiner account and find the Journey you want to use the discount codes in and edit it. If your Journey is already active, you will need to create a copy in order to modify it. After you've completed the changes, you can then activate the copy, which will replace the existing Journey.

Once you are editing the Journey you want to use the discount codes, you can open the list of available Journey nodes.

![](https://files.readme.io/7eda19782138c8ad26a7aaa7b096862de0a99b930de57971b766ae9aa380cefc-image.png)

![](https://files.readme.io/2e5e68eccab15c8f43b03a22e3674b2d532b4d9af5161186191e76acddf7b97c-image.png)

And select the `Send Webhook` node.

<img src="https://files.readme.io/967289efc3b69504eaf6995b7a2a149a993b72a16d421bc2aadc92fc223f8934-image.png" width="280" />

### Configure the Send Webhook node

1. For the `Set Webhook URL` value, use:

```
https://integrations.rejoiner.com/platforms/shopify/webhooks/rejoiner/discount
```

2. Make sure to enable **Wait for inbound webhook after sending**. This is required to make the discount code available in the journey.

![](https://files.readme.io/008391d-Screen_Shot_2022-03-18_at_1.56.05_PM.png "Screen Shot 2022-03-18 at 1.56.05 PM.png")

4. Then `Add New Metadata Key` for `price_rule_id`

5. And click **Save New Field**.

<Image align="left" width="500px" src="https://files.readme.io/2cfd12656a43137f86652cefabeeaccc187e926f11c11c1fb2f5fc0508028088-image.png" />

5. For the value of the `price_rule_id` metadata field, paste in the `Price Rule ID` you copied earlier.

6. Then click **Save Changes**.

<img src="https://files.readme.io/3e17777ce5c97e89067a49e2fc23bd398c739dd808b8274d2936f56dec17f1b4-image.png" width="500" />

> 📘
>
> The discount code will be available as a `{{ session.metadata.discount_code }}` template tag in any subsequent nodes in the journey, as the discount code will now be part of the user's session metadata for the rest of the journey.

### Generated code character set and patterns

By default, the generated code uses upper-case alphanumeric characters and follows a pattern of `####-####-####-####`.

This can be overridden by sending additional metadata parameters on the `Send Webhook` configuration.

### Charset

You can pass a `charset` metadata key with values of:

| value        | charset                                                        |
| ------------ | -------------------------------------------------------------- |
| numbers      | 0123456789                                                     |
| alphabetic   | abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ           |
| alphanumeric | 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ |

Or you can simply pass a set of specific characters to create your own charset.

### Pattern

You can pass a `pattern` metadata key which uses hash (`#`) as a placeholder for random characters from whatever charset is used. For example, `##-###-###` with the `alphanumeric` charset might result in a code such as `P7-ofW-Ka`.