---
title: "Create Customer Referral Link"
method: POST
path: "/api/customers/{customer_id}/referral-link"
tags: ["customers"]
---

# Create Customer Referral Link

`POST /api/customers/{customer_id}/referral-link`

## Request

- Base URL: `https://api.electricair.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.electricair.io/api/customers/{customer_id}/referral-link`
- Auth: none declared

## Path parameters

- `customer_id` integer, required

## Response `200`

OK

- CreateReferralLinkResponseSchema
  - `success` boolean, required
  - `referral_link` CustomerReferralLinkSchema, required
    - `code` string, required
    - `link_url` string, required
    - `created_at` string, nullable
  - `created` boolean, required

---

[API](https://skmtc.dev/electricair/apis/electric-air-autoquote-api.md) - [All operations](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/llms.txt) - [OpenAPI document](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/revisions/a13d832a5676?raw)
