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

# Returning Customer Discount Amount: Repeat Buyer Discount Total

> Track total discount dollars applied to returning customer orders. Measure loyalty program impact and repeat purchase discount strategies with Shopify data.

<Tip>
  Total dollar value of discounts applied to returning customer orders.
</Tip>

## Formula

<Info>
  **Returning Customer Discount Amount** = **SUM** ( Discount Amount ) **WHERE** customer\_type = returning\_customer
</Info>

### Formula Components

| Metric                                                                                                  | Definition                                                 |
| ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [**Discount Amount**](/reference/metrics/orders/adjustments/discount-amount)                            | Total discounts applied to orders                          |
| [**customer\_type = returning\_customer**](/data-dictionary/measures-and-dimensions#visitor-dimensions) | Filters to orders from customers who have purchased before |

| Metadata        |                             |
| --------------- | --------------------------- |
| **Type**        | Currency                    |
| **Data Source** | [Shopify](/sources/shopify) |
| **Aggregation** | Sum                         |

***

## Example

Your store applied **\$12,450** in discounts to returning customer orders in Q1:

| Month    | RC Discounts | RC Orders | Discount/Order |
| -------- | ------------ | --------- | -------------- |
| January  | \$3,820      | 412       | \$9.27         |
| February | \$4,150      | 478       | \$8.68         |
| March    | \$4,480      | 523       | \$8.57         |

Declining discount per order while total discounts grow indicates healthy repeat purchase volume with improving margins.

***

## How It Works

This metric sums all discount amounts from orders placed by returning customers. A customer is classified as "returning" when they have at least one prior completed order in Shopify. Discounts include coupon codes, automatic discounts, and manual adjustments applied at checkout.

***

## When to Use

| Scenario                       | Action                                                               |
| ------------------------------ | -------------------------------------------------------------------- |
| Measuring loyalty program cost | Track how much revenue is given away to repeat buyers                |
| Comparing segments             | Benchmark against new customer discounts to ensure balanced strategy |
| Retention budget analysis      | Monitor discount spend as a component of retention cost              |
| Margin optimization            | Identify opportunities to reduce excessive repeat-purchase discounts |

***

## Related Metrics

| Metric                                                                                                     | Relationship                                        |
| ---------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| [Returning Customer Discount %](/reference/metrics/orders/adjustments/returning-customer-discount-percent) | Discounts as percentage of gross revenue            |
| [New Customer Discounts](/reference/metrics/orders/adjustments/new-customer-discounts)                     | Compare acquisition vs. retention discount spending |
| [Discount Amount](/reference/metrics/orders/adjustments/discount-amount)                                   | Total discounts across all customer types           |
| [Returning Customer Refunds](/reference/metrics/orders/adjustments/returning-customer-refunds)             | Combined with discounts for total adjustments       |

[See all Adjustments metrics →](/reference/metrics/orders/adjustments)
