List customers
/api/v1/customersfull kapsamlı bir anahtar ister.
Newest first. Soft-deleted customers are never returned.
Parametreler
Sorgu
qstringMatches name, email or phone.
company_iduuidFrom
GET /api/v1/me.vip_tierstringlifecycle_stagestringlimitintegervarsayılan 25Rows per page.
cursorstringOpaque; take it from the previous response's
page.next_cursor.
Yanıt · 200
dataobject[]zorunluAlanları gösterAlanları gizle
iduuidnamestringnull olabilircustomer_typestringemailstringnull olabilirphonestringnull olabilirlifecycle_stagestringnull olabilirvip_tierstringnull olabiliractivebooleantagsstring[]company_iduuid
pageobjectzorunluThe cursor for the list beside it. Re-send the same request with
?cursor=<next_cursor>whilehas_moreis true.next_cursorisnullon the last page.Alanları gösterAlanları gizle
next_cursorstringzorunlunull olabilirhas_morebooleanzorunlulimitintegerzorunlu
Yanıtlar
401Missing or invalid Bearer token403Policy denied or account has no owner429Rate limit exceeded
curl -X GET 'https://YOUR-CELL.lydira.com/api/v1/customers' \
-H 'Authorization: Bearer sek_YOUR_API_KEY'{
"data": [
{
"id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"name": "Ayşe Yılmaz",
"customer_type": "individual",
"email": "ayse@example.com",
"phone": "+90 532 111 22 33",
"lifecycle_stage": "active",
"vip_tier": "gold",
"active": true,
"tags": [
"vip",
"repeat"
],
"company_id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18"
}
],
"page": {
"next_cursor": "MjAyNi0wMy0xNFQwOTozMDowMC4wMDAwMDBafDk0MQ",
"has_more": true,
"limit": 25
}
}