---
title: "Create a customer discount link [write]"
method: POST
path: "/billing/referral-links"
---

# Create a customer discount link \[write\]

`POST /billing/referral-links`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/billing/referral-links`
- Auth: none declared

Pass exactly one of customer_multiplier (one share of public price for every model, 0.01 to 100) or sku_prices (a multiplier, or for SECOND-only SKUs an exact second_usd_per_unit, per SKU). No price may be below your own (400 below_floor) or leave less than 15% over supplier cost on your route (400 below_margin, which names the lowest passing price); a SKU you leave at its default price is raised to that minimum. With audience_email the link is emailed to that customer and redeems once; email_status says whether the email was sent. max_redemptions defaults to 100 and expires_in_days to 30. 403 not_eligible without an eligible discount plan, 429 rate_limited after 20 emailed links in an hour, 503 unavailable while referral pricing is paused. A workspace key or a restricted credential cannot create links.

## Request body

- object
  - `customer_multiplier` number
  - `sku_prices` object[]
    - `sku_id` string, required
    - `multiplier` number
    - `second_usd_per_unit` number
  - `max_redemptions` integer
  - `expires_in_days` integer
  - `audience_email` string, email

## Response `201`

Created

- object
  - `url` string, uri, required
  - `email_status` 'sent' | 'suppressed' | 'uncertain' | 'null', nullable, required

## Other responses

- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/billing/referral-links/post.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
