Search Leads
# Search Leads - Sipariş Arama/Listeleme
VKN veya TCKN ile sipariş(leri) arar ve listeler. Tek parametre gönderilmelidir.
## Query Parameters
| Parametre | Tip |
| --- | --- |
| `taxId` | string |
## Response
## Response Fields
| Alan | Tip | Açıklama |
| --- | --- | --- |
| `leads[].leadId` | int | Sipariş takip numarası |
| `leads[].leadStatus` | string | Ön Sipariş durum kodu |
| `leads[].devices` | array | Cihaz listesi |
| `leads[].devices[].deviceId` | string | ÖKC mali sicil numarası |
| `leads[].devices[].deviceStatus` | string | ÖKC durum kodu aşağıda |
| `leads[].devices[].terminalStatus` | string | ÖKC durum kodu aşağıda |
| `leads[].devices[].statusDescription` | string | ÖKC durum açıklaması |
## ÖKC Durum Kodları
| Kod | Açıklama |
| --- | --- |
| `new` | Mali değil |
| `active` | Mali |
| `bank_active` | Terminal yüklü |
| `cancel` | Sipariş iptal |
| `onhold` | Geçici kapama |
| `transfer` | Devir |
| `inactive` | Hurda |
## Örnek Kullanım
- `GET /api/v1/leads?taxId=1234567890` - VKN ile arama
- `GET /api/v1/leads?taxId=12345678901` - TCKN ile arama
- `GET /api/v1/leads?taxId=12345678901&terminalId=27702109200` - +Terminal Id
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Query parameters
taxId
Response
OK
status
data
metadata
Errors
404
Not Found Error

