> ## 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 Handling Cost

> Track total handling costs for returning customer orders. Analyze repeat buyer fulfillment expenses to optimize pricing and profitability.

> [!TIP]
>
> Total handling costs for orders placed by returning (repeat) customers.

## Formula

> [!NOTE]
>
> **Returning Customer Handling Cost** = **SUM** ( [**Handling Cost**](https://docs.upstackdata.com/reference/metrics/orders/fulfillment/handling-cost.md) ) **WHERE** [customer\_type = returning\_customer](https://docs.upstackdata.com/data-dictionary/measures-and-dimensions.md#customer-type)

### Formula Components

| Metric | Definition |
| - | - |
| [**Handling Cost**](https://docs.upstackdata.com/reference/metrics/orders/fulfillment/handling-cost.md) | Total handling costs including global handling fees and per-product handling fees |
| [**customer\_type = returning\_customer**](https://docs.upstackdata.com/data-dictionary/measures-and-dimensions.md#customer-type) | Filters to customers who have placed at least one prior order |

| Metadata | |
| - | - |
| **Type** | Currency |
| **Data Source** | [Shopify](https://docs.upstackdata.com/sources/catalog/shopify.md), [Cost Settings](https://docs.upstackdata.com/analytics/cost-settings.md) |
| **Aggregation** | Sum |

***

## Example

Your store incurred **\$1,890** in handling costs for returning customers last month:

| Customer Type | Handling Cost | Orders | Per Order |
| - | - | - | - |
| Returning Customers | \$1,890 | 468 | \$4.04 |
| New Customers | \$2,340 | 312 | \$7.50 |
| **Total** | **\$4,230** | **780** | **\$5.42** |

***

## How It Works

Returning Customer Handling Cost sums all handling fees from orders where the customer has made at least one previous purchase. Handling costs include both global per-order fees and per-product handling charges configured in your cost settings. Customer type is determined by whether they have prior orders in your Shopify history.

***

## When to Use

| Scenario | Action |
| - | - |
| Repeat buyer profitability | Evaluate if returning customer orders remain profitable after handling costs |
| Loyalty program ROI | Factor handling costs into lifetime value calculations |
| Operational efficiency | Compare with new customers to identify if repeat buyers have lower handling overhead |
| Segment comparison | Compare with new customer handling to identify cost efficiency patterns |

***

## Related Metrics

| Metric | Relationship |
| - | - |
| [Handling Cost](https://docs.upstackdata.com/reference/metrics/orders/fulfillment/handling-cost.md) | Parent metric including all customer types |
| [New Customer Handling Cost](https://docs.upstackdata.com/reference/metrics/orders/fulfillment/new-customer-handling-cost.md) | Counterpart for first-time buyers |
| [Handling Cost Per Order](https://docs.upstackdata.com/reference/metrics/orders/fulfillment/handling-cost-per-order.md) | Average handling cost across all orders |
| [Handling Cost %](https://docs.upstackdata.com/reference/metrics/orders/fulfillment/handling-cost-percent.md) | Handling as percentage of net revenue |
| [Total Fulfillment Cost](https://docs.upstackdata.com/reference/metrics/orders/fulfillment/total-fulfillment-cost.md) | Sum of shipping, handling, and other fulfillment |

[See all Fulfillment metrics →](https://docs.upstackdata.com/reference/metrics/orders/fulfillment)


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