
Referral CAC and CPA, Including Reward Costs
In short
Talkable's formulas:
- referral CAC (platform) = platform fee ÷ new customers
- referral CAC (extended) = (platform fee + reward cost) ÷ new customers
- cost per friend referral sale = (platform fee + reward cost) ÷ friend referral sales
At the median Talkable program, the rewards alone cost $44.5 per friend referral sale from a first-time buyer, or 22% of friend referral revenue (Talkable benchmark data, 145 programs, January 2025 – June 2026). This is reward cost only, before the platform fee, which differs from store to store.
Why it matters
Talkable reads a referral program through two lenses. ROI asks whether the program returned more than its platform fee: (referral revenue ÷ platform fee) − 1. Talkable dashboards can show different revenue figures: check which one yours shows.
CAC asks what one new customer cost: the figure to set beside what other channels charge. Cost per friend referral sale asks what one referred order cost, whether the buyer was new or not.
In the worked example, one program's CAC runs from $25 to $125 depending only on how rewards are counted. Start by naming your variant (the two variants).
Two ways to count referral CAC
Talkable defines referral CAC on one divisor, new customers, with two choices of cost:
referral CAC (platform) = platform fee ÷ new customers
referral CAC (extended) = (platform fee + reward cost) ÷ new customers
The inputs, as Talkable counts them:
- Platform fee: what the store pays Talkable for the period, the monthly plan cost prorated to the period. ROI uses the same figure, so CAC and ROI stay comparable.
- Reward cost: friend rewards plus advocate rewards over the same period, each at the value it actually cost the store (the rules below).
- New customers: friends whose friend referral sale is the first purchase the program has on record for them. New to the program, not necessarily new to the store: a store can mark customers from before its Talkable integration as not new.
- Period: one window for the fee, the rewards and the customers. Dividing one month's fee by all the customers since launch understates CAC.
A friend who buys twice is one new customer. Talkable also counts a friend whose first referral is a tracked event, such as a subscription, unless the figure is filtered to purchases.
The platform variant compares easily. It needs no note on how rewards were counted, and it uses the same fee as ROI.
The extended variant shows what the program costs to run. Quote it with its reward basis, for example “extended, advocate coupons at the value used”.
What to divide by: a customer or a sale
Talkable treats referral CAC and referral CPA (cost per acquisition) as one figure: cost ÷ new customers. With the same cost on top, the divisor alone changes the answer:
| Divide the cost by | What it answers | Call it |
|---|---|---|
| New customers | What one customer new to the program costs | Referral CAC, or referral CPA |
| Customers: friends with at least one friend referral sale | What one referred buyer costs; a friend who bought twice counts once | Cost per referred customer |
| Friend referral sales | What one referred order costs | Cost per friend referral sale |
| Referral sales: friend plus advocate | What one referral order costs, advocate orders included | Cost per referral sale |
The same referral cost divided four ways, and the name of each result in Talkable's definitions.
New customers come from the friend side. At the median Talkable program, 80% of friend referral revenue comes from customers new to the program (172 programs, Talkable benchmark data, two years to June 2026).
Advocate referral sales are mostly repeat business. These are purchases made with an advocate's reward coupon. At the median program, 90% of advocate referral revenue comes from existing customers (70 programs, same data and period). CAC prices new customers, so it counts friends only.
The program also pays for friend referral sales from returning buyers. Counted by orders rather than revenue, 17% of friend referral sales at the median Talkable program come from customers who had bought before (Talkable benchmark data, 149 programs, January 2025 – June 2026). Talkable counts these sales in referral revenue, and the fee and rewards pay for them too.
The 17% counts sales and the 80% counts revenue, on different programs and periods, so the two do not add up.
So read the cost both ways: per new customer and per friend referral sale.
Sales to existing customers are value the program brings too. A returning customer who buys through a friend's link and an advocate who spends a reward both buy through the referral program. CAC leaves them out because it prices new customers only. They stay in referral revenue, and ROI, built on all referral revenue, counts them.
When a referral reward becomes a cost
Talkable's reward cost is the friend rewards plus the advocate rewards. What decides the number is when each reward becomes a cost, and at what value:
- A coupon costs only when it is used. Until a customer applies it at checkout, the store has given nothing up. Then it costs the value used.
- A gift card costs its full value when issued. The store has paid for the card whether or not it is ever spent. Advocates receive their referral reward only after a friend's purchase is approved.
- Store credit stays out of the reward cost. No money leaves the store until the advocate spends the credit in the store, so report it next to the reward cost, at the credit issued, not inside it.
- Friend coupons that are never used cost nothing. Friends receive a coupon when they claim the offer, whether or not they buy. At the median Talkable program, 25.1% of friend rewards are ever used (Talkable benchmark data, 177 programs, 2023 – Q1 2025).
Report the two kinds of cost apart as well. Coupons and store credit are margin the store gives up in its own shop; a gift card is cash on top.
Talkable records order subtotals after the discount, so friend referral revenue already has the friend discount taken out, and so does ROI, which is built on that revenue. CAC has no revenue in it, so the friend discount goes into its cost once, at the value used.
A discount on an order the program did not count. A friend coupon can be used on an order that is not a friend referral sale, for example one Talkable blocks. Talkable's friend coupons used count it at checkout, so the discount is in the reward cost while the order is not in friend referral revenue.
A worked example
Round numbers chosen to show the arithmetic; they match no program. The share of rewards used is set near Talkable's published medians.
One quarter at one program, with a $20 reward on each side:
| What happened in the quarter | Number | Dollar value |
|---|---|---|
| Platform fee for the quarter | $4,000 | |
| Friend referral sales | 200 | |
| New customers among them | 160 | |
| Friend coupons issued | 600 | $12,000 |
| Friend coupons used: a quarter of those issued, on 150 of the 200 friend referral sales | 150 | $3,000 |
| Advocate rewards issued, one per friend referral sale | 200 | $4,000 |
| Advocate coupons used | 18 | $360 |
The same quarter, counted four ways:
| What the cost counts | Cost for the quarter | Cost per new customer | Cost per friend referral sale |
|---|---|---|---|
| Platform fee only: referral CAC (platform) | $4,000 | $25.00 | $20.00 |
| Fee + rewards at the value used: friend coupons $3,000, advocate coupons $360 | $7,360 | $46.00 | $36.80 |
| Fee + friend coupons used + advocate rewards as gift cards, at issue ($4,000) | $11,000 | $68.75 | $55.00 |
| Fee + every reward issued, at face value ($12,000 friend + $4,000 advocate) | $20,000 | $125.00 | $100.00 |
One program, four answers. Rows 1, 2 and 4 count the same quarter's rewards three ways. Row 3 shows what the quarter would have cost if the advocate reward had been a gift card. Row 2 is the extended CAC for advocate coupons, row 3 for gift cards. Row 4 treats every reward issued as spent.
Now two versions of the next quarter, each with the same 200 friend referral sales and the same fee:
| Figure for the next quarter | Same as this quarter | Fewer new customers | Advocate rewards paid as gift cards |
|---|---|---|---|
| New customers, of 200 friend referral sales | 160 | 140 | 160 |
| New-customer share (new customers ÷ friend referral sales) | 80% | 70% | 80% |
| Cost: fee + rewards | $7,360 | $7,360 | $11,000 |
| Referral CAC (platform) | $25.00 | $28.57 | $25.00 |
| Referral CAC (extended) | $46.00 | $52.57 | $68.75 |
| Cost per friend referral sale | $36.80 | $36.80 | $55.00 |
Fewer new customers is the trap. More returning customers bought through a friend's link, so only 140 of the 200 friend referral sales come from new customers. Extended CAC rises from $46.00 to $52.57, while the cost per friend referral sale stays at $36.80. Only the mix of buyers changed.
Advocate gift cards are a real change. The store pays the advocate reward as a gift card instead of a coupon. Both figures rise: CAC to $68.75 and the cost per friend referral sale to $55.00. The cost now lands on all 200 advocate rewards when issued, not on the 18 coupons used.
What the data says
How many referral rewards are ever used
Talkable's redemption rate is the share of rewards issued that are ever used: coupons used ÷ coupons issued, per side. It is the multiplier between a reward issued and a reward that costs the store.
| Reward side | Share used, median program | Programs | Talkable's published benchmark range | Share used, average program |
|---|---|---|---|---|
| Advocate rewards | 8.9% | 121 | 4–24% | 15.2% |
| Friend rewards | 25.1% | 177 | 16–38% | 27.0% |
Share of rewards issued that are ever used (coupons used ÷ coupons issued) on each side: median program, program count, Talkable's published benchmark range and average program. Talkable benchmark data, rewards issued 2023 – Q1 2025. Benchmark range: the band Talkable publishes for this rate, built differently from the typical range (25th to 75th percentile) used elsewhere on this page.
Why the advocate average sits above the median. A smaller group of programs whose advocates redeem often pulls the average up. The median is the typical program.
What it means for cost. On the published medians, $100 of advocate coupons issued turns into about $9 of cost. The same $100 of friend coupons turns into about $25. A coupon program that counts every reward issued as spent overstates its cost.
Your own rate is a period ratio: coupons used in the period, some issued earlier, ÷ coupons issued in it. Read it over a quarter or longer, and prefer the longest window you have.
| Industry | Advocate rewards used: benchmark range (programs) | Friend rewards used: benchmark range (programs) |
|---|---|---|
| Accessories | 5–11% (9) | 10–27% (9) |
| Apparel & footwear | 4–19% (35) | 15–36% (39) |
| Beauty & cosmetics | 7–18% (12) | 13–26% (20) |
| Education | 10–27% (13) | |
| Food & beverage | 18–32% (10) | 36–50% (16) |
| Furniture & home goods | 16–31% (25) | |
| Health & wellness | 2–9% (10) | 24–43% (15) |
| Luxury goods & jewelry | 2–10% (9) | 17–37% (12) |
Share of rewards issued that are used: Talkable's published benchmark range by industry, program count in brackets; a blank cell is left out. Talkable benchmark data, rewards issued 2023 – Q1 2025.
Read your program against its own industry. Food & beverage has the highest band on both sides, so a coupon reward there turns into cost more often than in apparel or luxury.
What rewards cost per friend referral sale
Talkable benchmark data for the reward part alone, before any platform fee: 145 programs with at least 30 friend referral sales, January 2025 – June 2026. The basis:
- friend coupons at the value used at checkout;
- advocate rewards in fixed amounts (such as $20 off or a $20 gift card) counted in full when the advocate receives them; percent-off advocate rewards counted only when used;
- percentage offers valued on the order before the discount.
Both sides' rewards are divided by friend-side sales and revenue: an advocate earns the referral reward for a friend's purchase.
| Reward cost divided by | Reward cost per sale, median program | Typical range across programs |
|---|---|---|
| Friend referral sales from new customers: no earlier purchase on record | $44.5 | $23.7–$80.3 |
| Friend referral sales from new customers: Talkable's first-purchase flag, the basis of the new customers metric | $48.8 | $25.2–$83.9 |
| All friend referral sales | $34.6 | $16.9–$71.2 |
Reward cost per sale in US dollars: median program and typical range (25th to 75th percentile). Talkable benchmark data, 145 programs, January 2025 – June 2026.
As a share of revenue, the reward part comes to 22% of friend referral revenue at the median program (Talkable benchmark data, 145 programs, January 2025 – June 2026).
Why the first two rows differ. They count new customers two ways: no earlier purchase found for the person, or the new-customer flag behind Talkable's new customers metric.
Program by program the two cost figures agree within about 1% at the median program; the medians differ because they fall on different programs. Compare a CAC built on your own new customers with the second row.
Customer or sale. Per program, the cost per new-customer sale runs a median 1.21 times the cost per friend referral sale (Talkable benchmark data, 145 programs, January 2025 – June 2026). That ratio is friend referral sales ÷ new-customer sales, so it grows with the share of returning buyers.
This is the reward part of an acquisition cost, not a CAC. Add your platform fee to read it as one.
Deep dive: the cost across cuts
The same definitions give a different number by accounting basis, order value and month. Every figure below is Talkable benchmark data from the same 145 programs, January 2025 – June 2026: the median program, never pooled.
By accounting basis: advocate rewards counted when given or when used
An advocate reward can be counted at two moments: when the advocate receives it, or only when its code is used at checkout. The table shows the same reward cost both ways.
| How advocate rewards are counted | Reward cost per friend referral sale | Reward cost per new-customer friend referral sale (no earlier purchase on record) |
|---|---|---|
| Fixed-amount rewards counted when the advocate receives them, percent-off rewards when used (as in the reward-cost table above) | $34.6 | $44.5 |
| Every advocate reward counted only when its code is used at checkout | $19.4 | $29.5 |
Reward cost per sale, median program, on two ways of counting advocate rewards. Talkable benchmark data, 145 programs, January 2025 – June 2026.
Why the second row is lower. It keeps only the advocate rewards whose codes were used at checkout; store credit and gift cards count zero there. Friend coupons are the same in both rows.
Where your extended CAC sits. Talkable's rules (coupons when used, gift cards when given, store credit apart) land between the two rows. Two stores with the same rewards and fee can publish different costs and both be right, so quote the basis with the number.
The two sides. At the median program, friend coupons used come to $16.1 per friend referral sale and advocate rewards to $12.7. Each is the median of its own side, so the two do not add up to the total. The advocate side is 46% of the reward cost at the median program.
For example, ask the Talkable AI Assistant: “For July 1 – September 30, 2026, show my advocate coupons issued and used and my friend coupons issued and used, each as a count and a value, and the share of coupons used on each side.”
By order value: the reward as a share of the referred order
$20 off a $100 order is a big offer. The same $20 off a $1,000 order is a small one. Talkable reads the dollar cost and the share of revenue together, by the program's friend referral AOV (friend referral revenue ÷ friend referral sales). Each row below is a band of programs grouped by it:
| Band of programs | Reward cost as a share of friend referral revenue | Reward cost per friend referral sale | Reward cost per new-customer sale (no earlier purchase on record) | Programs in the band |
|---|---|---|---|---|
| Programs whose friends spend under $50 per order on average | 74% | $28.1 | $37.6 | 11 |
| Programs whose friends spend $50–99 per order on average | 30% | $18.7 | $29.0 | 46 |
| Programs whose friends spend $100–199 per order on average | 25% | $30.2 | $43.5 | 42 |
| Programs whose friends spend $200 and above per order on average | 17% | $73.8 | $88.1 | 46 |
Reward cost of the median program in each band, as a share of revenue and in US dollars per sale. Talkable benchmark data, January 2025 – June 2026.
Why dollars and share point opposite ways. The $200-and-above band pays the most per sale and the least per dollar of revenue.
Why the under-$50 band reads high. A $20 reward on a $40 order is half the order, so small orders carry a large reward share.
Compare with your own band, never with the all-program median.
For example, ask the Talkable AI Assistant: “For July 1 – September 30, 2026, give me my friend referral revenue divided by friend referral sales, and the value of friend coupons used plus advocate coupons issued, as a share of friend referral revenue.”
Over time: cost and customers land in different months
A monthly CAC divides a month's cost by that month's new customers. Talkable dates each piece by its own event:
| Piece of a monthly CAC | The event that dates it |
|---|---|
| New customer | The friend's purchase |
| Friend coupon used | The order it was used on |
| Advocate reward issued | The referral's approval, after the auto-approval delay set in the store's fraud settings |
| Advocate coupon used | The advocate's later order, if there is one |
| Platform fee | Prorated by day |
Why single months jump around. The advocate reward for a September purchase is issued after approval and may be used in a later month, or never. So part of a month's reward cost belongs to customers won earlier.
How to read it. Measure cost and new customers over the same window. Read single months as a trend, and judge the level on the longest window you have.
For example, ask the Talkable AI Assistant: “Show my new customers, the value of friend coupons used and the value of advocate coupons used by month for October 1, 2025 – September 30, 2026.”
Reading the number
- Name the variant and the basis, and keep them. Platform beside ROI; extended when the question is what the program costs to run. Switching mid-year breaks the trend.
- Put the new-customer share beside CAC: new customers ÷ friend referral sales. A falling share raises CAC with nothing else changed (worked example). A low share has two readings, which Talkable's customers count (distinct friends) separates:
- friends who had bought from the store before: read new customers ÷ customers;
- new friends who order more than once in the period: read friend referral sales ÷ customers.
- Read the cost per friend referral sale beside CAC. It does not depend on who the buyer was, so it moves only when costs or sales move.
- Date every change of reward type. A switch between coupon, gift card and store credit moves extended CAC; read the trend on each side of the switch.
- Compare with a paid channel on the same terms:
- platform CAC (fee only) beside a media-only CAC: media spend ÷ new customers;
- extended CAC beside media spend plus the discounts paid customers used;
- cost per friend referral sale beside an ad platform's cost per purchase, often called CPA: per order with per order;
- the same period on both sides; Talkable's new customers are new to the program, not always new to the store.
- Compare with Talkable benchmark data on its own basis: the reward cost alone, fixed-amount advocate rewards counted when given. Per friend referral sale and as a share of friend referral revenue, read it against your order-value band; per new customer, against the $48.8 row of the reward-cost table, which counts new customers the way Talkable's new customers metric does.
- Read your redemption rate over a long window, against your industry. The benchmark follows each reward issued to its end. Advocate coupons are used after issue, in a later month or never (over time), so judge your rate on the longest window you have, against your industry's band.
Calculate it for your own program
Every count and value this section uses comes from Talkable, one call per metric; CAC is arithmetic on them and your platform fee. The figures match the Metrics Aggregation Report in the Talkable admin when you set the same period, campaigns and filters. There are three ways to get them:
- Talkable AI Assistant, in your Talkable admin: ask in one sentence, no set-up.
- Talkable MCP server: your own agent (OpenClaw, Claude Code or any other) calls the tool
calculate_metric. - Talkable metrics API: an HTTP request or the Python script below, with your API key.
The Talkable MCP server and the AI Assistant are enabled per site by your Customer Success Manager (CSM). The HTTP and Python examples need only the API key.
The platform fee is your input: the figure on your invoice, prorated to the period. Talkable's own record of it is a cross-check.
Get your API key
- In the Talkable admin, open All site settings → General → Integrations → API integration.
- Copy two values: the API key (the site's private key; keep it server-side) and the Site ID, which is the site slug. A scoped key that an account admin creates under Account settings → API Keys & MCP works too.
- Set them as
TALKABLE_API_KEYandTALKABLE_SITE_SLUGin your environment. No example on this page contains a key.
Authentication and error codes: Talkable API introduction.
What Talkable tracks
| Article term | API metric identifier | Metrics Aggregation | Returns |
|---|---|---|---|
| New customers | new_ | New customers | number: distinct friends whose friend referral sale or referral event in the period is the first purchase the program has on record for them (new to the program) |
| Customers | customers | Customers | number: distinct friends with a friend referral sale or event |
| Friend referral sales | ideal_ | # Ideal FR sales | number |
| Friend referral revenue | ideal_ | $ Ideal FR sales | money |
| Advocate referral sales | ideal_ | # Ideal AD sales | number |
| Advocate referral revenue | ideal_ | $ Ideal AD sales | money |
| Referral revenue | ideal_ | $ Ideal sales, under Hidden Metrics | money |
| Platform fee, as Talkable records it | platform_ | $ Platform expenses, under Hidden Metrics | money: the plan cost prorated by day; a site figure |
| Friend coupons issued, and their value | friend_friend_ | # Friend Coupons Issued $ Friend Coupons Issued, under Hidden Metrics | number of coupons, percentage-off included; value of fixed-amount coupons |
| Friend coupons used, and their value | friend_friend_ | # Friend Coupons Used $ Friend Coupons Used, under Hidden Metrics | number, percentage-off included; money: the fixed-amount friend discount given at checkout; a site figure |
| Advocate coupons issued, and their value | advocate_advocate_ | # Advocate Coupons Issued $ Advocate Coupons Issued, under Hidden Metrics | number, percentage-off included; money: fixed-amount advocate coupon codes issued, at face value |
| Advocate coupons used, and their value | advocate_advocate_ | # Advocate Coupons Used $ Advocate Coupons Used, under Hidden Metrics | number, percentage-off included; money: the fixed-amount advocate coupons used at checkout; a site figure |
| Redemption rate, per side | friend_advocate_ | % Friend coupons used % Advocate coupons used | percent = coupons used ÷ coupons issued |
| Every friend reward (click and referred) / every advocate reward (sign-up, sharing and referral), per side | fr_ad_ | # FR Rewards # AD Rewards, under Hidden Metrics | number: paid, unpaid and voided together |
| ROI | roi | % ROI | percent: (referral revenue ÷ platform fee) − 1, on the fee for the same period |
How a call works
- One metric:
GET https://www.talkable.com/api/v2/metrics/{metric}withsite_slug,start_dateandend_date. - A split (by month, placement or campaign): add
/segmentizeto the same path. - The answer: one value as
{"plain": …, "formatted": "…", "result_type": …}. A split returns{"segmented": [ … ]}, one value per row with its label (period,campaign_type). - Precision: counts are whole numbers, money has two decimals, percents two decimals.
- Money comes back in the site's reporting currency;
formattedcarries its symbol ("$4,000.00"). - Site figures: coupons used and the platform fee are counted for the whole site, so a campaign filter leaves them unchanged. Coupons issued, sales and customers split by campaign.
- Through the Talkable MCP server the tool is
calculate_metric: the same identifiers, several metrics in one call.
API reference: Talkable API documentation.
Filters and segmentations for this question
| Parameter | Values | Use it to |
|---|---|---|
start_date, end_date | YYYY-MM-DD, e.g. 2026-07-01 (REST also takes M/D/YYYY); both days included; days run in the account time zone | Set one period for the fee, the rewards and the customers |
segment_by[period] | month (also day, week, quarter, year); up to 1,000 rows per request | Trend CAC by month; read platform_expenses by month and add the rows |
segment_by[campaign_ | one row per placement or campaign type the store runs: post_purchase, standalone, dashboard, floating_widget, gleam, claim_by_name | New customers, sales and coupons issued by placement. Campaigns with no type sit in the total only |
campaign_ids[] | ids from GET /api/v2/campaigns | New customers and coupons issued for one campaign or a group |
exclude_qa_generated | default true | Test traffic is already out of every metric here |
MCP calculate_metric adds | segment_by: date_range with aggregate_period (day, week, month), campaigns, campaign_types, incentive_combinations, event_categories; exclude_refunded; currency. Filters are named exclude_qa and campaign_ids; dates go in period_start / period_end | New customers and coupons issued per advocate-and-friend reward pair; the purchase row apart from events; net of refunds; one currency |
Examples in four tabs
The same calculation four ways: ask in plain language, call the Talkable MCP server, send the HTTP request, or run the Python script.
Talkable AI Assistant (in your Talkable admin; what it can report)
The Assistant already knows the Talkable metrics and your campaigns, so one sentence is enough:
For July 1 – September 30, 2026, show my new customers, friend referral sales and the value of friend and advocate coupons used, by month and in total.
The Assistant returns the counts and values. CAC is then your fee ÷ new customers, and (your fee + the coupon values) ÷ new customers.
Your own agent (OpenClaw, Claude Code or any other agent)
Your agent does not know how Talkable counts reward cost. Send it the same sentence, your fee and how you pay the advocate reward, and use the method in this report:
For July 1 – September 30, 2026, show my new customers, friend referral sales and the value of friend and advocate coupons used, by month and in total. Use the method in this report: https://get.talkable.com/analytics/referral-cac-cpa-including-reward-costs
The agent also needs your API key or a connection to the Talkable MCP server.
Talkable MCP server, tool calculate_metric
To connect your agent (endpoint, credentials, client set-up), see the Talkable MCP server documentation. Two calls of eight metrics each, by month:
// call 1: new customers, sales, the fee, rewards of every kind
{
"site_slug": "your-site",
"metrics": ["new_customers", "ideal_friend_sales_count", "ideal_friend_sales_sum",
"ideal_advocate_sales_count", "ideal_advocate_sales_sum", "platform_expenses",
"fr_rewards_count", "ad_rewards_count"],
"period_type": "custom",
"period_start": "2026-07-01",
"period_end": "2026-09-30",
"segment_by": ["date_range"],
"aggregate_period": "month"
}
// call 2: reward coupons issued and used, count and value per side
{
"site_slug": "your-site",
"metrics": ["friend_coupons_issued_count", "friend_coupons_issued_sum",
"friend_coupons_used_count", "friend_coupons_used_sum",
"advocate_coupons_issued_count", "advocate_coupons_issued_sum",
"advocate_coupons_used_count", "advocate_coupons_used_sum"],
"period_type": "custom",
"period_start": "2026-07-01",
"period_end": "2026-09-30",
"segment_by": ["date_range"],
"aggregate_period": "month"
}
- Each metric comes back with one
date_range=YYYY-MM-DDkey per month and atotal. A month with no activity has no key: read it as 0. - Read
platform_expensesfromtotal, or add its month rows: both give the exact fee. - For
customers, send a separate call withoutsegment_by: with the month split,totaladds the month rows, so a friend who bought in two months counts twice. - The response carries a
metrics_aggregation_url, a Talkable admin path to the Metrics Aggregation Report with the same columns, period and split. - CAC is arithmetic on the totals: platform = fee ÷
new_customers; extended = (fee +friend_coupons_used_sum+advocate_coupons_used_sum) ÷new_customers, for gift cards, take the value issued from the Incentive Outcomes report (advocate rewards, Paid). - Use custom dates as above: presets such as
last quarterare rolling windows, not calendar quarters.
HTTP (curl): the raw request any language can send
The responses below are the shapes the Python script parses, on the worked example's round numbers. Authentication and errors: Talkable API introduction.
# new customers, one period
curl -H "Authorization: Bearer $TALKABLE_API_KEY" \
"https://www.talkable.com/api/v2/metrics/new_customers?site_slug=$TALKABLE_SITE_SLUG&start_date=2026-07-01&end_date=2026-09-30"
# -> {"ok":true,"result":{"plain":160,"formatted":"160","result_type":"number"}}
# the friend discount given: friend coupons used at checkout, value
curl -H "Authorization: Bearer $TALKABLE_API_KEY" \
"https://www.talkable.com/api/v2/metrics/friend_coupons_used_sum?site_slug=$TALKABLE_SITE_SLUG&start_date=2026-07-01&end_date=2026-09-30"
# -> {"ok":true,"result":{"plain":3000.0,"formatted":"$3,000.00","result_type":"money"}}
# advocate coupons used at checkout, value
curl -H "Authorization: Bearer $TALKABLE_API_KEY" \
"https://www.talkable.com/api/v2/metrics/advocate_coupons_used_sum?site_slug=$TALKABLE_SITE_SLUG&start_date=2026-07-01&end_date=2026-09-30"
# -> {"ok":true,"result":{"plain":360.0,"formatted":"$360.00","result_type":"money"}}
# the fee as Talkable records it, by month (prorated by day; add the rows)
curl -g -H "Authorization: Bearer $TALKABLE_API_KEY" \
"https://www.talkable.com/api/v2/metrics/platform_expenses/segmentize?site_slug=$TALKABLE_SITE_SLUG&start_date=2026-07-01&end_date=2026-09-30&segment_by[period]=month"
# -> {"ok":true,"result":{"segmented":[
# {"plain":1333.33,"formatted":"$1,333.33","result_type":"money","period":"7/1/26 - 7/31/26"},
# {"plain":1333.33,"formatted":"$1,333.33","result_type":"money","period":"8/1/26 - 8/31/26"},
# {"plain":1333.34,"formatted":"$1,333.34","result_type":"money","period":"9/1/26 - 9/30/26"}]}}
- CAC on these numbers: platform $4,000 ÷ 160 = $25.00; extended ($4,000 + $3,000 + $360) ÷ 160 = $46.00.
- The
-gflag stops curl from interpreting the square brackets insegment_by[…]. - Read the fee from one whole-period request for
platform_expenses, or add its month rows: both give the exact fee. - An error comes back as
{"ok":false,"error_message":"…"}, for exampleNo metric found.for an unknown identifier.
Python: the full script
Reward-inclusive costs and extended CAC are partial estimates: coupon sums omit percentage discounts, including mixed fixed-and-percentage offers. This applies to every advocate mode and every month. Use the Purchases report to value those discounts before treating the costs as complete.
Prints the period's counts and values, the reward cost by reward type, both CACs, the costs per sale and per referred customer, the new-customer shares, the reward cost on the two bases of Talkable benchmark data, and both CACs by month. Needs Python 3 and requests (pip install requests); reads the key from TALKABLE_API_KEY and TALKABLE_SITE_SLUG.
"""Referral CAC and cost per referral sale for one Talkable site, with and without reward costs.
Pulls new customers, referral sales and revenue, and the reward coupons issued and used from the Talkable
metrics API. Builds the reward cost the way each reward type is paid, then prints referral CAC (platform and
extended), the cost per friend referral sale and per referral sale, the reward cost on the basis Talkable
benchmark data uses, and both CACs by month.
Usage:
pip install requests
export TALKABLE_API_KEY=... # All site settings -> General -> Integrations -> API integration: "API key"
export TALKABLE_SITE_SLUG=... # same page, "Site ID"
python3 referral_cac.py 2026-07-01 2026-09-30 --fee 12000 --advocate coupon
--fee what the store paid the referral platform for the period (invoice or contract).
Without it the script sums the month rows of the report's platform_expenses.
--advocate how the advocate reward is paid: coupon (default), gift_card or store_credit.
Dates are YYYY-MM-DD (M/D/YYYY also accepted), both days included, in the account time zone. Money is in the
site's reporting currency, to 2 decimals; percents to 2 decimals; "n/a" when a divisor is 0. Reward cost:
friend coupons at the value used at checkout; advocate coupons at the value used, gift cards at the value
issued, store credit on its own line and out of the cost. Percentage-off coupons count in coupons issued and
used but carry no value in these metrics, even mixed with fixed coupons. All reward-inclusive cost figures
are labelled partial estimates, for the period and each month, in every advocate mode.
Gift cards: advocate_coupons_issued_sum holds fixed-amount advocate coupon codes issued, at face value;
check provider gift cards against the Incentive Outcomes report.
"""
import argparse
import os
import re
import sys
import time
import requests
API = "https://www.talkable.com/api/v2"
TOTALS = [ # article term -> API metric identifier
("New customers", "new_customers"),
("Customers", "customers"),
("Friend referral sales", "ideal_friend_sales_count"),
("Friend referral revenue", "ideal_friend_sales_sum"),
("Advocate referral sales", "ideal_advocate_sales_count"),
("Advocate referral revenue", "ideal_advocate_sales_sum"),
("Friend rewards (any status)", "fr_rewards_count"),
("Advocate rewards (any status)", "ad_rewards_count"),
("Friend coupons issued", "friend_coupons_issued_count"),
("Friend coupons issued value", "friend_coupons_issued_sum"),
("Friend coupons used", "friend_coupons_used_count"),
("Friend coupons used value", "friend_coupons_used_sum"),
("Advocate coupons issued", "advocate_coupons_issued_count"),
("Advocate coupons issued value", "advocate_coupons_issued_sum"),
("Advocate coupons used", "advocate_coupons_used_count"),
("Advocate coupons used value", "advocate_coupons_used_sum"),
]
MONTHLY = [ # the month split: what the monthly CAC needs
("New customers", "new_customers"),
("Friend referral sales", "ideal_friend_sales_count"),
("Friend coupons used value", "friend_coupons_used_sum"),
("Advocate coupons used value", "advocate_coupons_used_sum"),
("Advocate coupons issued value", "advocate_coupons_issued_sum"),
]
MONEY = {"Friend referral revenue", "Advocate referral revenue", "Friend coupons issued value",
"Friend coupons used value", "Advocate coupons issued value", "Advocate coupons used value"}
def get(path, **params):
params = {"site_slug": SITE, **params}
for attempt in range(5):
r = requests.get(f"{API}/{path}", params=params,
headers={"Authorization": f"Bearer {KEY}"}, timeout=120)
if r.status_code in (429, 503) and attempt < 4: # 429 API throttle, 503 metrics budget spent
time.sleep(5 * 2 ** attempt) # 5, 10, 20, 40 s
continue
try:
body = r.json()
except ValueError:
body = {}
if body.get("ok") is False: # e.g. 400 "No metric found.", 422 over 1,000 segmentation rows
raise RuntimeError(f"{path}: HTTP {r.status_code}: {body.get('error_message')}")
r.raise_for_status()
return body["result"]
def metric(name, start, end):
return get(f"metrics/{name}", start_date=start, end_date=end)
def by_month(name, start, end):
"""{period label: value} from the month split, in the order the API returns the months."""
rows = get(f"metrics/{name}/segmentize", start_date=start, end_date=end,
**{"segment_by[period]": "month"})["segmented"]
return {r["period"]: r["plain"] for r in rows}
def div(a, b):
return round(a / b, 2) if b else None
def pct(a, b):
return round(100 * a / b, 2) if b else None
def show(x, money=False, unit=""):
if x is None:
return "n/a"
if money:
return f"{x:,.2f}"
return f"{x:,}{unit}" if isinstance(x, int) else f"{x:,.2f}{unit}"
def reward_cost(v, advocate):
"""Reward cost the way each reward is paid: (friend cost, advocate cost)."""
friend = v["Friend coupons used value"] # the friend discount really given at checkout
if advocate == "coupon":
return friend, v["Advocate coupons used value"] # margin given up only on an order that happened
if advocate == "gift_card":
return friend, v["Advocate coupons issued value"] # paid for when issued, whatever happens next
return friend, 0.0 # store credit: nothing leaves the store until spent; reported on its own line
def line(label, value, width=66):
print(f" {label:<{width}}{value:>14}")
def main():
ap = argparse.ArgumentParser(description="Referral CAC and cost per referral sale from the Talkable metrics API")
ap.add_argument("start", help="first day, YYYY-MM-DD")
ap.add_argument("end", help="last day, YYYY-MM-DD (included)")
ap.add_argument("--fee", type=float, default=None, help="platform fee for the period, from your invoice")
ap.add_argument("--advocate", choices=["coupon", "gift_card", "store_credit"], default="coupon")
a = ap.parse_args()
global KEY, SITE
KEY = os.environ.get("TALKABLE_API_KEY")
SITE = os.environ.get("TALKABLE_SITE_SLUG")
if not KEY or not SITE:
sys.exit("set TALKABLE_API_KEY and TALKABLE_SITE_SLUG first (see the docstring)")
start, end = a.start, a.end
raw = {term: metric(m, start, end) for term, m in TOTALS}
v = {term: r["plain"] for term, r in raw.items()}
currency = re.sub(r"[\d.,\s-]", "", raw["Friend referral revenue"]["formatted"]) # e.g. "$"
fee_rows = by_month("platform_expenses", start, end) # the fee as the report records it, prorated by day
fee_report = round(sum(fee_rows.values()), 2)
fee = a.fee if a.fee is not None else fee_report
fee_source = "your --fee" if a.fee is not None else "the report's platform_expenses, month rows summed"
print(f"Referral CAC {SITE} {start} -> {end} (money in the site's reporting currency, {currency}; "
f"advocate reward paid as {a.advocate.replace('_', ' ')})")
print("\nWhat the period produced")
for term, _ in TOTALS:
line(term, show(v[term], term in MONEY), 32)
line("Platform fee for the period", show(fee, True), 32)
print(f" ({fee_source}; the report's figure is {show(fee_report, True)})")
friend, adv = reward_cost(v, a.advocate)
cost = friend + adv
print("\nReward cost: partial estimates, counted the way each reward is paid")
print(" Partial: coupon sums omit percentage discounts even when fixed coupons have positive value. "
"Value percentage coupons from the Purchases report before treating any reward-inclusive cost or CAC as complete.")
line("Friend rewards: coupons used at checkout", show(friend, True), 50)
if a.advocate == "store_credit":
print(" Advocate store credit: reported on its own line, not in the cost; its value per reward is in the "
"Incentive Outcomes report.")
else:
line({"coupon": "Advocate rewards: coupons used at checkout",
"gift_card": "Advocate coupon codes issued, at face value"}[a.advocate], show(adv, True), 50)
if a.advocate == "gift_card":
print(" (gift cards sent as a claim link are not coupon codes: check them in the Incentive Outcomes report)")
line("Reward cost (partial; friend + advocate)", show(cost, True), 50)
line("Friend redemption rate (coupons used / issued) %",
show(pct(v["Friend coupons used"], v["Friend coupons issued"]), unit="%"), 50)
line("Advocate redemption rate (coupons used / issued) %",
show(pct(v["Advocate coupons used"], v["Advocate coupons issued"]), unit="%"), 50)
for side, issued, rewards in [("friend", "Friend coupons issued", "Friend rewards (any status)"),
("advocate", "Advocate coupons issued", "Advocate rewards (any status)")]:
if v[issued] < v[rewards]:
print(f" Note: some {side} rewards are not coupon codes (or were voided, or are sign-up "
f"rewards): check the Incentive Outcomes report before comparing with Talkable benchmark data.")
used = issued.replace("issued", "used")
if v[used] > 0 and v[used + " value"] == 0:
print(f" Note: {side} coupons used carry no value here: they are percentage-off coupons. Value them "
f"from the Purchases report (order after the discount × p ÷ (100 − p)).")
new, sales = v["New customers"], v["Friend referral sales"]
all_sales = sales + v["Advocate referral sales"]
revenue = v["Friend referral revenue"] + v["Advocate referral revenue"]
print(f"\nCost per acquired customer and per sale ({new:,} new customers, {sales:,} friend referral sales)")
line("Referral CAC (platform) = fee / new customers", show(div(fee, new), True))
line("Referral CAC (extended, partial) = (fee + reward cost) / new customers", show(div(fee + cost, new), True))
line("Cost per friend referral sale (partial) = (fee + reward cost) / friend sales", show(div(fee + cost, sales), True))
line("Cost per referral sale (partial) = (fee + reward cost) / all referral sales", show(div(fee + cost, all_sales), True))
line("Cost per referred customer (partial) = (fee + reward cost) / customers", show(div(fee + cost, v["Customers"]), True))
line("New-customer share = new customers / friend referral sales %", show(pct(new, sales), unit="%"))
line("New customers / customers (distinct friends) %", show(pct(new, v["Customers"]), unit="%"))
line("Friend referral sales per customer", show(div(sales, v["Customers"])))
line("ROI = referral revenue / fee - 1 % (this fee, not the roi metric)", show(pct(revenue - fee, fee), unit="%"))
at_issue = v["Friend coupons used value"] + v["Advocate coupons issued value"]
at_use = v["Friend coupons used value"] + v["Advocate coupons used value"]
print("\nReward cost alone: partial estimates, on the two bases of Talkable benchmark data (friend coupons at the value used)")
line("Advocate coupons at the value issued: per new customer", show(div(at_issue, new), True))
line("Advocate coupons at the value issued: per friend referral sale", show(div(at_issue, sales), True))
line("Advocate coupons at the value issued: % of friend referral revenue",
show(pct(at_issue, v["Friend referral revenue"]), unit="%"))
line("Advocate coupons at the value used: per new customer", show(div(at_use, new), True))
line("Advocate coupons at the value used: per friend referral sale", show(div(at_use, sales), True))
cols = {term: by_month(m, start, end) for term, m in MONTHLY}
labels = list(cols["New customers"])
print("\nBy month: reward cost, CAC extended and per FR sale are partial estimates (fee = the report's month rows, or your --fee spread evenly over the months)")
print(" " + "month".ljust(20) + "new cust".rjust(10) + "FR sales".rjust(10) + "fee".rjust(12)
+ "reward cost".rjust(13) + "CAC platform".rjust(14) + "CAC extended".rjust(14) + "per FR sale".rjust(13))
for label in labels:
m = {term: cols[term].get(label, 0) for term, _ in MONTHLY} # a month with no activity counts 0
m_fee = a.fee / len(labels) if a.fee is not None else fee_rows.get(label, 0.0)
f_cost, a_cost = reward_cost(m, a.advocate)
print(" " + label.ljust(20) + f"{m['New customers']:>10,}" + f"{m['Friend referral sales']:>10,}"
+ f"{m_fee:>12,.2f}" + f"{f_cost + a_cost:>13,.2f}"
+ show(div(m_fee, m["New customers"]), True).rjust(14)
+ show(div(m_fee + f_cost + a_cost, m["New customers"]), True).rjust(14)
+ show(div(m_fee + f_cost + a_cost, m["Friend referral sales"]), True).rjust(13))
print("\nRead: coupons used and the fee are site figures (a campaign filter leaves them unchanged). Advocate rewards "
"are issued after approval and used later, so read single months as a trend and the level on the period.")
if __name__ == "__main__":
try:
main()
except (RuntimeError, requests.RequestException) as e:
sys.exit(f"stopped: {e}")
Reconcile with the admin report
- Open the report. In the Talkable admin: your site → All reports → Metrics Aggregation. The MCP response's
metrics_aggregation_urlopens it with the same columns. - Set the same filters. The same start and end dates; no campaign filter, since coupons used and the fee are site figures; the same test-traffic, refund and currency filters.
- Compare column by column. The admin's name for each figure is in the metrics table above, column “Metrics Aggregation”. CAC is your arithmetic on these columns and your fee.
If a figure differs, check six things:
- the period boundaries: both days are inclusive, in the account time zone;
- whether the report is filtered to the same campaigns, and its other filters match;
- whether you compared # / $ Ideal FR sales, rather than $ Dashboard sales or # Talkable Sales;
- whether the fee came from the month rows (REST) or the period total (MCP), not from one whole-period REST request;
- for counts a unit or two apart, whether both sides were pulled the same day: referrals are approved, blocked or voided after the period ends;
- for a gap of about 1–2% on every count, compare with the report's precision mode.
Troubleshooting
- “No metric found.” (HTTP 400)
Why: the identifier is not one the API knows; CAC and reward cost are calculated, not stored.
Fix: build the reward cost fromfriend_coupons_used_sumandadvocate_coupons_used_sum(gift cards from the Incentive Outcomes report), and divide bynew_customers. - “`start_date` is not a valid Date” (HTTP 400)
Why: the date is not YYYY-MM-DD or M/D/YYYY. Day-first dates such as 30/9/2026 are invalid (the message namesend_datewhen that is the one).
Fix: send2026-09-30. - “This segmentation produces … rows, over the synchronous limit of 1000” (HTTP 422)
Why: a daily split over several years returns more than 1,000 rows.
Fix: narrow the period, use months, or schedule it as the message says:POST /api/v2/metrics/{metric}/segmentize(a key withapi:write), then pollGET …/segmentize/{job_id}. - “Metric is temporarily unavailable, please try again” (HTTP 503), or HTTP 429
Why: a 503 from the metrics endpoints means the request budget is spent for now; a 429 is the API-wide throttle (request throttling).
Fix: wait and retry. The script makes 22 calls: 16 for the totals, 1 for the fee by month and 5 for the month split. On a 503 or 429 it waits 5, 10, 20 and 40 seconds between attempts, then stops with the HTTP error. - “Unsupported parameters: … Supported parameters: …” (HTTP 400)
Why: the request carries a parameter name the Talkable metrics API does not know, for examplecampaign_id[]without its s.
Fix: use a name from the list in the message; sendcampaign_ids[]with its brackets (andcurl -g). - Coupons used or the platform fee do not change under a campaign filter
Why: they are site figures, so they return the site total under any campaign filter.
Fix: for reward cost below the site level, use the exportable reports (Go further). - The fee differs from your invoice
Why:platform_expensesis the plan cost prorated by day over the dates you ask for, so a period that is not whole calendar months gives a part of a month's fee.
Fix: ask for whole calendar months to match the invoice. The figure on your invoice is the one to use. - Fewer coupons issued than rewards
Why: the coupon metrics count coupon codes, percentage-off ones included, and an advocate's sharing reward paid as a code. Store credit, provider gift cards and advocate sign-up rewards show only infr_rewards_count/ad_rewards_count, which also count voided rewards. Percentage-off coupons are counted but add $0 to the coupon value metrics.
Fix: take the other rewards from the Incentive Outcomes report; value percentage-off coupons from the Purchases report (Go further). - New customers or customers exceed friend referral sales
Why: both count referral events, such as a subscription, as well as purchases.
Fix: through MCP, split byevent_categoriesand read thepurchaserow, or filter to it. - Placement rows sum to less than the total
Why: campaigns with no campaign type (Leaderboard, Tiered or full-bleed Invite run as a page of their own) count in the site total only.
Fix: add the row “Other campaigns (no type)” = total − sum of the rows. - Talkable MCP server: no access (MCP troubleshooting)
- “MCP is disabled for this site…”: the Talkable MCP server (
https://www.talkable.com/mcp) is enabled per site by your CSM. - “Site not found or not accessible”: the
site_slugis not one your credential can reach.list_sitesshows the valid ones. - Roles: reading metrics needs the Read role or higher. Scheduling a CSV export needs the Write role and a key with
mcp:write(permissions).
- “MCP is disabled for this site…”: the Talkable MCP server (
Go further
- Reward cost per reward or per side. The Incentive Outcomes report lists every reward with its incentive (sign-up, sharing, referral, friend), amount and status (paid, unpaid, voided), filterable by side (advocate or friend) and by whether its coupon was used.
- Percentage offers. The Purchases report, filtered by coupon usage to orders with a friend or an advocate coupon, lists each order's subtotal. Subtotals are recorded after the discount, so a p% offer costs subtotal × p ÷ (100 − p): 20% off a $80 subtotal is $20.
- Rows, not totals. The exportable reports give the rows the API sums up (reports and exports): Incentive Outcomes, Purchases, Referrals. In the Talkable admin they download as CSV; from an agent,
list_grid_reports,schedule_grid_exportandget_grid_exportschedule and read the same files. - New customers by reward pair. Through MCP,
segment_by: ["incentive_combinations"]returns new customers and coupons issued for each advocate-and-friend reward pair the store has run. - Net of refunds, one currency. Through MCP,
exclude_refunded: trueleaves refunded orders out of the money metrics;currencyconverts them. - By placement.
segment_by[campaign_types]=trueonnew_customersand the sales counts gives each placement's share of new customers; split the fee by your own rule.
Methodology
- Figures
- Talkable benchmark data: each program's figure first, then the median and the typical range (25th to 75th percentile) across programs, never pooled; the redemption benchmark as published. Reward cost: programs with at least 30 friend referral sales, blocked and voided referrals out, US dollars. Cells under five programs are not published; no program is named.
- Code
- The requests and the script were run on a live Talkable site; REST and MCP agree.
FAQ
How do you calculate referral CAC?
Talkable's referral CAC (platform) = platform fee ÷ new customers, same period. Referral CAC (extended) = (platform fee + reward cost) ÷ new customers, with coupons at the value used and gift cards at the value issued.
Should reward costs be included in referral CAC?
Either, if named. At the median Talkable program, rewards add $44.5 per new-customer friend referral sale (no earlier purchase on record); compare a CAC on Talkable's new customers with $48.8 (Talkable benchmark data, 145 programs, January 2025 – June 2026).
Do unredeemed referral rewards cost anything?
An unused coupon costs nothing; a gift card costs its full value when issued. At the median Talkable program, 8.9% of advocate and 25.1% of friend rewards are ever used (Talkable benchmark data, 121 and 177 programs, 2023 – Q1 2025).
Is the friend reward part of referral CAC?
Yes: extended CAC = (platform fee + friend rewards + advocate rewards) ÷ new customers, friend coupons at the value used. CAC has no revenue term, so the friend discount is counted once, in the cost; Talkable's friend referral revenue already excludes it.
What is the difference between referral CAC and referral CPA?
Talkable treats them as one figure: cost ÷ new customers. The divisor is what changes the answer: cost per friend referral sale = cost ÷ friend referral sales, whether the buyer was new or not.
How do I calculate referral CAC from the Talkable API?
GET https://www.talkable.com/api/v2/metrics/{metric} with site_slug, YYYY-MM-DD dates and a Bearer API key, for new_customers, friend_coupons_used_sum and advocate_coupons_used_sum; CAC = (your fee + both values) ÷ new_customers. This is a partial estimate: coupon sums omit percentage discounts even when fixed coupons contribute positive value. Value those discounts from the Purchases report.
Learn more
In the Talkable documentation:
| Coupons | Single-use and multi-use coupon rewards, coupon lists and how codes are issued |
| Referrals approval | When a referral is approved and the advocate reward is issued |
| Events | Referral events other than purchases, such as subscriptions, and how to send them |
| Reporting with Talkable AI | Metrics, segments and report exports from the AI Assistant or your own agent |
| Talkable MCP server | Connect Claude Code, ChatGPT, Cursor or any MCP client |
| Talkable API | Authentication, response format, errors and throttling |
