> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://ops-apidoc.hugin.co/llms.txt.
> For full documentation content, see https://ops-apidoc.hugin.co/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://ops-apidoc.hugin.co/_mcp/server.

# Overview

### 📦 Leads (Ön Siparişler)

Ön sipariş oluşturma, sorgulama, güncelleme ve iptal işlemleri.

* **POST** `/api/v1/leads` - Yeni ön sipariş oluştur

* **GET** `/api/v1/leads/{leadId}` - Sipariş takip numarası ile sipariş bilgilerini getir

* **GET** `/api/v1/leads?taxId={taxId}` - VKN veya TCKN ile sipariş(leri) ara ve listele.

* **PATCH** `/api/v1/leads/{leadId}` - Ön siparişe terminal ve üye işyeri numarası ekle

* **DELETE** `/api/v1/leads/{leadId}` - Sipariş takip numarası ile ön siparişi iptal et

| Durum Kodu    | Durum İsmi (TR) | Açıklama                                                |
| ------------- | --------------- | ------------------------------------------------------- |
| `new`         | Yeni            | Ön sipariş oluşturuldu                                  |
| `assigned`    | Atandı          | Ön sipariş ilgili birime veya kişiye atandı             |
| `inprocess`   | İşlemde         | Ön sipariş üzerinde işlem yapılmaktadır                 |
| `appointment` | Randevuda       | Ön sipariş için randevu oluşturulmuştur                 |
| `completed`   | Tamamlandı      | Ön sipariş süreci tamamlanmıştır                        |
| `converted`   | Faturalandı     | Ön sipariş satışa dönüştürülmüş ve faturalandırılmıştır |
| `cancelled`   | İptal Edildi    | Ön sipariş iptal edilmiştir                             |