> ## Documentation Index
> Fetch the complete documentation index at: https://docs.partnero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WooCommerce coupons

### What are WooCommerce coupons in Partnero?

Coupons are discounts that partners can share with their audience, such as a percentage off or a fixed amount. With the WooCommerce Coupons integration, coupons stay in sync between WooCommerce and Partnero, so you can manage them in either place, and Partnero can track the sales they generate.

You can:

1. Create coupons in Partnero and sync them to WooCommerce.
2. Create coupons in WooCommerce and sync them to Partnero.
3. Sync coupons you already have in WooCommerce.

***

### Connect WooCommerce Coupons

The following steps are required to use this feature:

1. In your affiliate program, go to **Integration** and scroll down to **Apps & integrations**.
2. Click **Authorize** next to **WooCommerce Coupons**:

   ![Image](https://mintcdn.com/partnero/b-Z0Xc9wlHfTzb12/images/image-232.png?fit=max\&auto=format\&n=b-Z0Xc9wlHfTzb12\&q=85\&s=c02374063941bd36a5c0f0b3cb9f7841)
3. Enter your Site URL, Consumer Key, and Consumer Secret:

   ![Image](https://mintcdn.com/partnero/b-Z0Xc9wlHfTzb12/images/image-234.png?fit=max\&auto=format\&n=b-Z0Xc9wlHfTzb12\&q=85\&s=176a548d913f39b4706426e6cb9fa851)

   To get the key and secret, open your WordPress store and go to **WooCommerce** > **Settings** > **Advanced** > **REST API**. Click **Add key** to create a key for Partnero, then copy the details into Partnero.\
   &#x20;![](https://mintcdn.com/partnero/dIlz41f0imTLbzhF/images/articles/woocommerce-coupons/282af35b.webp?fit=max\&auto=format\&n=dIlz41f0imTLbzhF\&q=85\&s=0644818392ddd6dfe1c35ac3064ccb56)
4. Click **Authorize**.

If successful, you'll see the **Connected** badge next to the integration.

![Image](https://mintcdn.com/partnero/b-Z0Xc9wlHfTzb12/images/image-235.png?fit=max\&auto=format\&n=b-Z0Xc9wlHfTzb12\&q=85\&s=a9f1f4ce216a048197c2821e1a65d357)

**Note:** The **WooCommerce Coupons** integration works on its own, without the main [WooCommerce integration](https://docs.partnero.com/integrations/woocommerce.md). If you only want to track coupons, it is enough. To track all referred transactions, you also need the main WooCommerce integration.

***

### Create coupons in Partnero and sync them to WooCommerce

Coupons you create in Partnero are added to WooCommerce automatically.

1. In your affiliate program, go to **Program** > **Coupons**.
2. Click **Create coupon** and select **Create WooCommerce coupon**.

   ![Image](https://mintcdn.com/partnero/b-Z0Xc9wlHfTzb12/images/image-236.png?fit=max\&auto=format\&n=b-Z0Xc9wlHfTzb12\&q=85\&s=c339aaa582ed32722e252d2543f54fcb)
3. Set up the coupon.

   ![Image](https://mintcdn.com/partnero/b-Z0Xc9wlHfTzb12/images/image-237.png?fit=max\&auto=format\&n=b-Z0Xc9wlHfTzb12\&q=85\&s=d959728288fb18e2c144c6e025a4346f)
   * **Coupon name** and **internal name** (optional)
   * **Coupon type:** percentage or fixed amount
   * **Coupon duration:** how long the coupon is valid
   * **Redemption expiry:** the date range the coupon is available
   * **Redemption limits:** the total number of times the coupon can be redeemed
4. Set up the promotion codes customers will use. You can create them manually or generate them automatically.\\

   ![Image](https://mintcdn.com/partnero/b-Z0Xc9wlHfTzb12/images/image-238.png?fit=max\&auto=format\&n=b-Z0Xc9wlHfTzb12\&q=85\&s=c46cb4ebfe10f8d72ede1a66f8ed04c8)

   * **Manual promotion codes:** create codes yourself and assign them to specific partners.
   * **Automatic promotion codes:** each partner gets a unique code when they join your program.

   Learn more in [How to use promotion codes](https://docs.partnero.com/knowledge-base/shopify/how-to-use-promotion-codes.md).
5. Click **Create**.
6. Open **Coupons** in WooCommerce to confirm the new coupon is there.

***

### Create coupons in WooCommerce and sync them to Partnero

Once the integration is connected, WooCommerce sends coupon data to Partnero automatically. Any coupon you create in WooCommerce appears in Partnero under **Program** > **Coupons**. See the [WooCommerce guide to creating coupons](https://woocommerce.com/posts/coupons-with-woocommerce/).

#### Sync existing WooCommerce coupons

If you already have coupons in WooCommerce, you can bring them into Partnero.

1. Go to **Program** > **Coupons**.
2. Click **Sync coupons** and select **Sync WooCommerce coupons**.

   ![Image](https://mintcdn.com/partnero/b-Z0Xc9wlHfTzb12/images/image-239.png?fit=max\&auto=format\&n=b-Z0Xc9wlHfTzb12\&q=85\&s=0484622bd680d1c95632b98a045cedfa)
3. Your WooCommerce coupons now appear in Partnero.

#### Next step

After your coupons are ready, set up [dynamic rewards](https://docs.partnero.com/knowledge-base/referral-programs/offer-woocommerce-coupons-as-rewards.md) for your partners.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.