{"openapi":"3.1.0","paths":{"/catalog/products":{"post":{"description":"Yeni ürün ekler. sku mağazada, slug adres alanında benzersiz olmalı; adres kullanılıyorsa 409 path_conflict döner.","operationId":"CatalogController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProductDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Ürün oluştur","tags":["catalog"]}},"/catalog/products/page":{"get":{"description":"Mağazanın silinmemiş ürünlerini sayfalı döner: { items, total, nextCursor, page, pageCount, facets }. Sonraki sayfa için yanıttaki nextCursor değerini cursor olarak gönderin; nextCursor null ise son sayfadasınız.","operationId":"CatalogController_listPage","parameters":[{"name":"storeId","required":true,"in":"query","description":"Mağaza kimliği.","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"name":"cursor","required":false,"in":"query","description":"Önceki yanıttaki nextCursor; verilirse imleçle sonraki sayfa döner.","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"name":"page","required":false,"in":"query","description":"Sayfa numarası, 1'den başlar.","schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"}},{"name":"limit","required":false,"in":"query","description":"Sayfa başına ürün (en çok 200; büyük değer 200'e indirilir). Varsayılan 50.","schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"}},{"name":"ids","required":false,"in":"query","description":"Virgülle ayrılmış ürün kimlikleri (en çok 100); yalnız bu ürünler döner.","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","description":"Sıralama alanı: name (ad), createdAt (eklenme), updatedAt (son güncelleme).","schema":{"type":"string","enum":["name","createdAt","updatedAt"]}},{"name":"sortDir","required":false,"in":"query","description":"Sıralama yönü: asc ya da desc.","schema":{"type":"string","enum":["asc","desc"]}},{"name":"search","required":false,"in":"query","description":"Ürün adı, stok kodu ya da barkodda aranacak metin (en çok 200 karakter).","schema":{"type":"string"}},{"name":"statuses","required":false,"in":"query","description":"Virgülle ayrılmış ürün durumları: DRAFT, ACTIVE, ARCHIVED. Örnek: \"ACTIVE,DRAFT\".","schema":{"type":"string"}},{"name":"excludeStatuses","required":false,"in":"query","description":"Virgülle ayrılmış, hariç tutulacak ürün durumları.","schema":{"type":"string"}},{"name":"types","required":false,"in":"query","description":"Virgülle ayrılmış ürün türleri: PHYSICAL, DIGITAL, BUNDLE, GIFT_CARD, SUBSCRIPTION, SERVICE.","schema":{"type":"string"}},{"name":"excludeTypes","required":false,"in":"query","description":"Virgülle ayrılmış, hariç tutulacak ürün türleri.","schema":{"type":"string"}},{"name":"categoryIds","required":false,"in":"query","description":"Virgülle ayrılmış kategori kimlikleri (en çok 100).","schema":{"type":"string"}},{"name":"excludeCategoryIds","required":false,"in":"query","description":"Virgülle ayrılmış, hariç tutulacak kategori kimlikleri.","schema":{"type":"string"}},{"name":"uncategorized","required":false,"in":"query","description":"\"true\" verilirse yalnız kategorisi olmayan ürünler.","schema":{"type":"string"}},{"name":"brandIds","required":false,"in":"query","description":"Virgülle ayrılmış marka kimlikleri (en çok 100).","schema":{"type":"string"}},{"name":"excludeBrandIds","required":false,"in":"query","description":"Virgülle ayrılmış, hariç tutulacak marka kimlikleri.","schema":{"type":"string"}},{"name":"feedImportIds","required":false,"in":"query","description":"Virgülle ayrılmış ürün akışı (XML/CSV içe aktarma) kimlikleri.","schema":{"type":"string"}},{"name":"priceMin","required":false,"in":"query","description":"Satış fiyatı en az (ondalık nokta ile, örnek 99.90).","schema":{"type":"string"}},{"name":"priceMax","required":false,"in":"query","description":"Satış fiyatı en çok; priceMin değerinden küçük olamaz.","schema":{"type":"string"}},{"name":"createdFrom","required":false,"in":"query","description":"Bu tarihten itibaren eklenen ürünler (YYYY-AA-GG ya da ISO 8601).","schema":{"type":"string"}},{"name":"createdTo","required":false,"in":"query","description":"Bu tarihe kadar (dahil) eklenen ürünler (YYYY-AA-GG ya da ISO 8601).","schema":{"type":"string"}},{"name":"hasBarcode","required":false,"in":"query","description":"\"true\" barkodlu, \"false\" barkodsuz ürünler.","schema":{"type":"string"}},{"name":"hasImage","required":false,"in":"query","description":"\"true\" görselli, \"false\" görselsiz ürünler.","schema":{"type":"string"}},{"name":"hasDescription","required":false,"in":"query","description":"\"true\" açıklaması olan, \"false\" açıklaması boş ürünler.","schema":{"type":"string"}},{"name":"hasBrand","required":false,"in":"query","description":"\"true\" markası olan, \"false\" markasız ürünler.","schema":{"type":"string"}},{"name":"hasSeo","required":false,"in":"query","description":"\"true\" SEO başlığı ve açıklaması dolu, \"false\" bunlardan biri boş ürünler.","schema":{"type":"string"}},{"name":"onSale","required":false,"in":"query","description":"\"true\" indirimde olan (liste fiyatı satış fiyatından yüksek) ürünler.","schema":{"type":"string"}},{"name":"stock","required":false,"in":"query","description":"Stok durumu: in_stock, out_of_stock.","schema":{"type":"string"}},{"name":"channel","required":false,"in":"query","description":"Satış kanalı durumu: issue, listed, not_listed (issue: bir kanalda gönderim hatası ya da ret var; listed: en az bir kanalda satışta; not_listed: hiçbir kanala gönderilmedi).","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Ürünleri sayfalı listele","tags":["catalog"]}},"/catalog/products/{id}":{"get":{"description":"Tek ürünün ayrıntısını döner. Başka mağazanın ürünü 404 döner.","operationId":"CatalogController_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Ürünü oku","tags":["catalog"]},"put":{"description":"Yalnız gönderilen alanlar değişir. Kategori değişince yeni kategorinin zorunlu özellikleri eksikse ürün taslağa (DRAFT) alınır.","operationId":"CatalogController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProductDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Ürünü güncelle","tags":["catalog"]},"delete":{"description":"Yalnız arşivlenmiş ürün silinebilir; aksi hâlde 409 product_must_be_archived_before_hard_delete döner. Ürün ve varyantları silinir.","operationId":"CatalogController_hardDelete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Ürünü kalıcı sil","tags":["catalog"]}},"/catalog/products/{id}/publish":{"post":{"description":"Ürünü satışa açar (ACTIVE). Arşivdeki ürünü geri açmak için de kullanılır. Kategorinin zorunlu özellikleri eksikse 400 missing_required_attributes döner.","operationId":"CatalogController_publish","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Ürünü yayımla","tags":["catalog"]}},"/catalog/products/{id}/unpublish":{"post":{"description":"Ürünü satıştan çeker ve taslak (DRAFT) yapar; vitrinde görünmez.","operationId":"CatalogController_unpublish","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Ürünü taslağa al","tags":["catalog"]}},"/catalog/products/{id}/archive":{"post":{"description":"Ürünü satıştan çeker ve arşivler (ARCHIVED). Kalıcı silmeden (DELETE) önce ürün arşivlenmiş olmalıdır.","operationId":"CatalogController_archive","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Ürünü arşivle","tags":["catalog"]}},"/catalog/categories":{"get":{"description":"Mağazanın silinmemiş kategorilerini ağaç olarak döner.","operationId":"CategoriesController_list","parameters":[{"name":"storeId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Kategorileri listele","tags":["catalog"]},"post":{"description":"Yeni kategori ekler. Adres uzantısı (slug) ürün, sayfa ve markalarla ortak alanda benzersiz olmalı; kullanılıyorsa 409 path_conflict döner. Silinen kategorinin adresi yeniden kullanılabilir.","operationId":"CategoriesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCategoryDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Kategori oluştur","tags":["catalog"]}},"/catalog/categories/{id}":{"put":{"description":"Yalnız gönderilen alanlar değişir. Kategoriyi kendi alt kategorisinin altına taşımak 400 category_parent_cycle döner.","operationId":"CategoriesController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCategoryDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Kategoriyi güncelle","tags":["catalog"]},"delete":{"description":"Kategoride ürün varsa 400 category_has_products:<adet>, alt kategori varsa 400 category_has_children:<adet> döner; önce bunları taşıyın.","operationId":"CategoriesController_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Kategoriyi sil","tags":["catalog"]}},"/catalog/collections":{"get":{"description":"Mağazanın koleksiyonlarını döner.","operationId":"CollectionsController_list","parameters":[{"name":"storeId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Koleksiyonları listele","tags":["collections"]},"post":{"description":"Yeni koleksiyon ekler. Adres uzantısı (slug) ürün, kategori, sayfa ve markalarla ortak alanda benzersiz olmalı; kullanılıyorsa 409 path_conflict döner.","operationId":"CollectionsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCollectionDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Koleksiyon oluştur","tags":["collections"]}},"/catalog/collections/{id}":{"get":{"description":"Tek koleksiyonun ayrıntısını döner.","operationId":"CollectionsController_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Koleksiyonu oku","tags":["collections"]},"patch":{"description":"Yalnız gönderilen alanlar değişir.","operationId":"CollectionsController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCollectionDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Koleksiyonu güncelle","tags":["collections"]}},"/catalog/collections/{id}/items":{"post":{"description":"Ürünleri koleksiyona ekler ve { added } döner; zaten ekli ya da başka mağazadaki ürünler sayılmaz.","operationId":"CollectionsController_addProducts","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionItemsDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Koleksiyona ürün ekle","tags":["collections"]},"delete":{"description":"Gövdedeki productIds ürünlerini koleksiyondan çıkarır ve { removed } döner; ürünler silinmez.","operationId":"CollectionsController_removeProducts","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionItemsDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Koleksiyondan ürün çıkar","tags":["collections"]}},"/catalog/variants":{"post":{"description":"Bir ürüne yeni varyant ekler; sku mağazada benzersiz olmalı.","operationId":"InventoryController_createVariant","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVariantDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Varyant ekle","tags":["inventory"]}},"/catalog/variants/{id}":{"patch":{"description":"Yalnız gönderilen alanlar değişir. Stok bu uçla değiştirilemez; POST /warehouses/stock kullanın.","operationId":"InventoryController_updateVariant","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateVariantDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Varyantı güncelle","tags":["inventory"]},"delete":{"description":"Varyantı siler. Bulunamazsa 404 variant_not_found döner.","operationId":"InventoryController_removeVariant","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Varyantı sil","tags":["inventory"]}},"/catalog/inventory/low-stock":{"get":{"description":"Düşük stok eşiği (lowStockThreshold) tanımlı ve stoğu eşiğe eşit ya da altında olan varyantları döner; en çok 500 kayıt.","operationId":"InventoryController_lowStock","parameters":[{"name":"storeId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Düşük stoklu varyantlar","tags":["inventory"]}},"/orders/page":{"get":{"description":"Mağazanın siparişlerini sayfalı döner. Numaralı sayfa için page ve limit, imleçle ilerlemek için önceki yanıttaki nextCursor değerini cursor olarak gönderin. Durum, ödeme durumu, müşteri, tarih aralığı, tutar, kaynak ve kanala göre süzülür. Her sipariş totalAmount yanında originalTotalAmount (ilk tahsilat), refundedTotalAmount (iade edilen) ve netTotalAmount (net ödenen) alanlarını taşır.","operationId":"OrdersController_listPage","parameters":[{"name":"storeId","required":true,"in":"query","description":"Mağaza kimliği.","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"name":"cursor","required":false,"in":"query","description":"Önceki yanıttaki nextCursor; verilirse imleçle sonraki sayfa döner.","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"name":"page","required":false,"in":"query","description":"Sayfa numarası, 1'den başlar.","schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"}},{"name":"limit","required":false,"in":"query","description":"Sayfa başına sipariş (1–200). Varsayılan 50.","schema":{"minimum":1,"maximum":200,"type":"integer"}},{"name":"status","required":false,"in":"query","description":"Tek sipariş durumu: PENDING, AWAITING_PAYMENT, CONFIRMED, PROCESSING, SHIPPED, COMPLETED, CANCELLED, REFUNDED.","schema":{"type":"string","enum":["PENDING","AWAITING_PAYMENT","CONFIRMED","PROCESSING","SHIPPED","COMPLETED","CANCELLED","REFUNDED"]}},{"name":"statuses","required":false,"in":"query","description":"Virgülle ayrılmış birden çok durum. Örnek: \"PENDING,CONFIRMED\".","schema":{"type":"string"}},{"name":"paymentStatus","required":false,"in":"query","description":"Ödeme durumu: UNPAID, AUTHORIZED, CAPTURED, PARTIALLY_REFUNDED, REFUNDED, FAILED, VOIDED.","schema":{"type":"string","enum":["UNPAID","AUTHORIZED","CAPTURED","PARTIALLY_REFUNDED","REFUNDED","FAILED","VOIDED"]}},{"name":"riskLevels","required":false,"in":"query","description":"Virgülle ayrılmış risk düzeyleri: LOW, MEDIUM, HIGH. Örnek: \"MEDIUM,HIGH\".","schema":{"type":"string"}},{"name":"customerId","required":false,"in":"query","description":"Yalnız bu müşterinin siparişleri.","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"name":"search","required":false,"in":"query","description":"Sipariş numarası, müşteri bilgisi, ürün adı ya da stok kodunda aranacak metin.","schema":{"maxLength":200,"type":"string"}},{"name":"placedFrom","required":false,"in":"query","description":"Bu tarihten itibaren verilen siparişler (YYYY-AA-GG ya da ISO 8601).","schema":{"type":"string"}},{"name":"placedTo","required":false,"in":"query","description":"Bu tarihe kadar (dahil) verilen siparişler (YYYY-AA-GG ya da ISO 8601).","schema":{"type":"string"}},{"name":"amountMin","required":false,"in":"query","description":"Sipariş tutarı en az.","schema":{"type":"number"}},{"name":"amountMax","required":false,"in":"query","description":"Sipariş tutarı en çok.","schema":{"type":"number"}},{"name":"sortBy","required":false,"in":"query","description":"Sıralama alanı: placedAt (tarih), totalAmount (tutar), orderNumber (numara).","schema":{"type":"string","enum":["placedAt","totalAmount","orderNumber"]}},{"name":"sortDir","required":false,"in":"query","description":"Sıralama yönü: asc ya da desc.","schema":{"type":"string","enum":["asc","desc"]}},{"name":"source","required":false,"in":"query","description":"Siparişin kaynağı: STOREFRONT, POS, ADMIN, API, MARKETPLACE, PHONE, SUBSCRIPTION_RENEWAL, IMPORTED.","schema":{"type":"string","enum":["STOREFRONT","POS","ADMIN","API","MARKETPLACE","PHONE","SUBSCRIPTION_RENEWAL","IMPORTED"]}},{"name":"channel","required":false,"in":"query","description":"Satış kanalı adı.","schema":{"maxLength":120,"type":"string"}},{"name":"archived","required":false,"in":"query","description":"\"true\" yalnız arşivlenmiş, \"false\" yalnız arşivlenmemiş siparişler.","schema":{"type":"string","enum":["true","false"]}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Siparişleri listele","tags":["orders"]}},"/orders/{id}":{"get":{"description":"Siparişin satırları, tutarları ve durumlarıyla ayrıntısını döner. totalAmount siparişin şu anki tutarıdır (kalem iptalinden sonra düşer). originalTotalAmount ilk tahsil edilen tutardır, refundedTotalAmount tamamlanan iadelerin, hediye kartı ve mağaza kredisine yapılan geri yüklemelerin ve kaybedilen ters ibrazların toplamıdır, netTotalAmount ise müşterinin sonunda ödediği tutardır (originalTotalAmount - refundedTotalAmount). Her satır stockUnit ve saleStep anlık görüntüsünü taşır: quantity satılan adım sayısıdır, saleStep bir adımın stockUnit alt birimindeki miktarıdır (KILOGRAM için gram), quantityInUnit ise satırın stockUnit cinsinden miktarıdır (500 g adımla 3 adım → 1.5).","operationId":"OrdersController_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Siparişi oku","tags":["orders"]}},"/orders":{"post":{"description":"Elle sipariş açar. Satır fiyatı katalog fiyatından farklıysa fark denetim kaydına yazılır. Varyantlı üründe variantId zorunludur (400 order_item_variant_required); STORE_CREDIT ödemesi yalnız paymentStatus CAPTURED ile kabul edilir.","operationId":"OrdersController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrderDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Sipariş oluştur","tags":["orders"]}},"/orders/{id}/cancel":{"post":{"description":"Siparişi iptal eder; durum makinesi izin vermiyorsa hata döner. İsteğe bağlı gövde: reasonCode (OUT_OF_STOCK, BULK_PURCHASE, FORCE_MAJEURE, CUSTOMER_REQUEST, OTHER) ve reason (3–400 karakter açıklama).","operationId":"OrdersController_cancel","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Siparişi iptal et","tags":["orders"]}},"/orders/{id}/confirm-payment":{"post":{"description":"Ödemesi bekleyen (UNPAID) siparişin ödemesini tahsil edildi (CAPTURED) olarak işaretler; ör. havale geldiğinde. Ödemesi zaten alınmışsa 409 order_payment_not_pending döner.","operationId":"OrdersController_confirmPayment","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Ödemeyi onayla","tags":["orders"]}},"/orders/{id}/refund":{"post":{"description":"Siparişin tamamını iade eder. restock verilmezse ürün henüz gönderilmediyse stok geri eklenir. Zaten iade edilmişse 400 order_already_refunded döner.","operationId":"OrdersController_refund","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundOrderBodyDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Siparişi iade et","tags":["orders"]}},"/orders/{id}/events":{"get":{"description":"Siparişin durum değişikliklerini ve notlarını zaman sırasıyla döner.","operationId":"OrdersController_listEvents","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Sipariş geçmişi","tags":["orders"]}},"/customer-store-credit":{"get":{"description":"Mağazadaki müşteri bakiye (store credit) hesaplarını döner; customerId ile tek müşteriye, minBalance ile bakiyeye göre süzülür. En çok 200 kayıt.","operationId":"CustomerStoreCreditController_listAccounts","parameters":[{"name":"storeId","required":true,"in":"query","description":"Mağaza kimliği.","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"name":"customerId","required":false,"in":"query","description":"Yalnız bu müşterinin cari hesabını döner.","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"name":"minBalance","required":false,"in":"query","description":"Bakiyesi bu tutara eşit ya da üstünde olan hesaplar.","schema":{"minimum":0,"type":"number"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Müşteri cari hesaplarını listele","tags":["customer-store-credit"]}},"/shipments":{"post":{"description":"Sipariş için gönderi kaydı açar; autoCreateWithCarrier true ise bağlı kargo firmasında gönderiyi oluşturur ve takip numarası alır.","operationId":"ShipmentsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateShipmentDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Gönderi oluştur","tags":["shipments"]}},"/shipments/carriers":{"get":{"description":"Gönderi oluştururken carrier alanına yazılacak firma kodlarını döner.","operationId":"ShipmentsController_listCarriers","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Kargo firmalarını listele","tags":["shipments"]}},"/shipments/{id}/tracking":{"get":{"description":"Gönderinin kargo firmasındaki güncel takip bilgisini döner.","operationId":"ShipmentsController_track","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Gönderiyi izle","tags":["shipments"]}},"/shipments/{id}":{"patch":{"description":"Durum, firma ve takip bilgisini günceller.","operationId":"ShipmentsController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateShipmentDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Gönderiyi güncelle","tags":["shipments"]}},"/media":{"post":{"description":"Başka bir yerde barındırılan https dosyayı medya kütüphanesine kaydeder; dosya yüklemez.","operationId":"MediaController_register","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterMediaDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Medya kaydet","tags":["media"]}},"/media/{id}":{"delete":{"description":"Medya kaydını kütüphaneden siler.","operationId":"MediaController_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Medyayı sil","tags":["media"]}},"/media/page":{"get":{"description":"Medya kütüphanesini sayfalı döner; tür, klasör ve metne göre süzülür.","operationId":"MediaController_page","parameters":[{"name":"storeId","required":true,"in":"query","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"name":"queue","required":false,"in":"query","schema":{"type":"string","enum":["missing-alt","folderless","oversize"]}},{"name":"kind","required":false,"in":"query","schema":{"type":"string","enum":["image","video","other"]}},{"name":"folder","required":false,"in":"query","description":"Yalnız bu klasördeki dosyalar.","schema":{"minLength":1,"maxLength":120,"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"minLength":1,"maxLength":200,"type":"string"}},{"name":"page","required":false,"in":"query","description":"Sayfa numarası, 1'den başlar.","schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"}},{"name":"limit","required":false,"in":"query","description":"Sayfa başına kayıt sayısı (1–200).","schema":{"minimum":1,"maximum":200,"type":"integer"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Medyayı listele","tags":["media"]}},"/media/folders":{"get":{"description":"Medya kütüphanesindeki klasör adlarını döner.","operationId":"MediaController_folders","parameters":[{"name":"storeId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Klasörleri listele","tags":["media"]}},"/seo/redirects":{"get":{"description":"Adres yönlendirmelerini sayfalı döner; durum ve metne göre süzülür.","operationId":"RedirectsAdminController_list","parameters":[{"name":"page","required":false,"in":"query","description":"Sayfa numarası, 1'den başlar.","schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"}},{"name":"limit","required":false,"in":"query","description":"Sayfa başına kayıt sayısı (1–200).","schema":{"minimum":1,"maximum":200,"type":"integer"}},{"name":"storeId","required":true,"in":"query","description":"Mağaza kimliği.","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"name":"state","required":false,"in":"query","description":"active (etkin) ya da inactive (durdurulmuş) yönlendirmeleri süzer.","schema":{"type":"string","enum":["active","inactive"]}},{"name":"search","required":false,"in":"query","description":"Eski ya da yeni adreste aranacak metin.","schema":{"minLength":1,"maxLength":500,"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Yönlendirmeleri listele","tags":["redirects"]},"post":{"description":"Eski adresi yeni adrese yönlendirir; status verilmezse 301 (kalıcı) kullanılır.","operationId":"RedirectsAdminController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRedirectDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Yönlendirme ekle","tags":["redirects"]}},"/seo/redirects/import/preview":{"post":{"description":"Satırları kaydetmeden doğrular ve hangi satırların ekleneceğini, hangilerinin hatalı olduğunu döner.","operationId":"RedirectsAdminController_previewImport","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportRedirectsDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"İçe aktarmayı önizle","tags":["redirects"]}},"/seo/redirects/import":{"post":{"description":"En çok 1000 satırı toplu kaydeder; önce önizleme ucuyla kontrol edin.","operationId":"RedirectsAdminController_importRedirects","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportRedirectsDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Yönlendirmeleri içe aktar","tags":["redirects"]}},"/seo/redirects/{id}":{"patch":{"description":"Hedef adres, tür ya da etkinlik durumu değişir.","operationId":"RedirectsAdminController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRedirectDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Yönlendirmeyi güncelle","tags":["redirects"]},"delete":{"description":"Yönlendirmeyi kaldırır.","operationId":"RedirectsAdminController_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Yönlendirmeyi sil","tags":["redirects"]}},"/returns":{"get":{"description":"İade taleplerini en yeniden eskiye döner; storeId, orderId ve status ile süzülür. En çok 200 kayıt döner.","operationId":"ReturnsController_list","parameters":[{"name":"orderId","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["REQUESTED","APPROVED","RECEIVED","REFUNDED","REJECTED","CANCELLED"]}},{"name":"storeId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"İadeleri listele","tags":["returns"]},"post":{"description":"Sipariş satırları için iade talebi açar.","operationId":"ReturnsController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReturnDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"İade talebi oluştur","tags":["returns"]}},"/returns/{id}":{"get":{"description":"Tek iade talebinin satırlarıyla ayrıntısını döner.","operationId":"ReturnsController_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"İadeyi oku","tags":["returns"]}},"/returns/{id}/status":{"patch":{"description":"İade talebinin durumunu günceller; REJECTED için rejectionReason, stoğa geri eklemek için restock gönderin.","operationId":"ReturnsController_updateStatus","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateReturnStatusDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"İade durumunu değiştir","tags":["returns"]}},"/returns/{id}/label":{"post":{"description":"İade için kargo etiketi üretir ya da verilen etiketi kaydeder.","operationId":"ReturnsController_generateLabel","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateReturnLabelDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"İade kargo etiketi oluştur","tags":["returns"]}},"/customers":{"post":{"description":"Yeni müşteri ekler; e-posta mağazada benzersiz olmalı.","operationId":"CustomersController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomerDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Müşteri oluştur","tags":["customers"]}},"/customers/page":{"get":{"description":"Müşterileri sayfalı döner: { items, total, nextCursor, page, pageCount }. Sonraki sayfa için yanıttaki nextCursor değerini cursor olarak gönderin; nextCursor null ise son sayfadasınız.","operationId":"CustomersController_listPage","parameters":[{"name":"storeId","required":false,"in":"query","description":"Mağaza kimliği; verilmezse anahtarın erişebildiği tüm mağazalar.","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"name":"cursor","required":false,"in":"query","description":"Önceki yanıttaki nextCursor; verilirse imleçle sonraki sayfa döner.","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"name":"page","required":false,"in":"query","description":"Sayfa numarası, 1'den başlar.","schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"}},{"name":"limit","required":false,"in":"query","description":"Sayfa başına müşteri (en çok 200; büyük değer 200'e indirilir). Varsayılan 50.","schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"}},{"name":"status","required":false,"in":"query","description":"Müşteri durumu: ACTIVE (etkin), BLACKLISTED (engelli), DELETED (silinmiş).","schema":{"type":"string","enum":["ACTIVE","BLACKLISTED","DELETED"]}},{"name":"search","required":false,"in":"query","description":"Ad, soyad, e-posta ya da telefonda aranacak metin.","schema":{"maxLength":200,"type":"string"}},{"name":"acceptsMarketing","required":false,"in":"query","description":"\"true\" pazarlama iletisine izin veren, \"false\" izin vermeyen müşteriler.","schema":{"type":"string","enum":["true","false"]}},{"name":"createdFrom","required":false,"in":"query","description":"Bu tarihten itibaren kaydolan müşteriler (YYYY-AA-GG ya da ISO 8601).","schema":{"type":"string"}},{"name":"createdTo","required":false,"in":"query","description":"Bu tarihe kadar (dahil) kaydolan müşteriler (YYYY-AA-GG ya da ISO 8601).","schema":{"type":"string"}},{"name":"totalSpentMin","required":false,"in":"query","description":"Toplam harcama en az.","schema":{"type":"number"}},{"name":"totalSpentMax","required":false,"in":"query","description":"Toplam harcama en çok.","schema":{"type":"number"}},{"name":"totalOrdersMin","required":false,"in":"query","description":"Sipariş sayısı en az.","schema":{"minimum":0,"maximum":9007199254740991,"type":"integer"}},{"name":"totalOrdersMax","required":false,"in":"query","description":"Sipariş sayısı en çok.","schema":{"minimum":0,"maximum":9007199254740991,"type":"integer"}},{"name":"loyaltyTier","required":false,"in":"query","description":"Sadakat seviyesi: BRONZE, SILVER, GOLD, PLATINUM.","schema":{"type":"string","enum":["BRONZE","SILVER","GOLD","PLATINUM"]}},{"name":"wholesale","required":false,"in":"query","description":"\"true\" bayi (toptan) hesabı olan, \"false\" olmayan müşteriler.","schema":{"type":"string","enum":["true","false"]}},{"name":"city","required":false,"in":"query","description":"Kayıtlı adreslerinden birinde bu il bulunan müşteriler. Örnek: İstanbul.","schema":{"maxLength":100,"type":"string"}},{"name":"sortBy","required":false,"in":"query","description":"Sıralama alanı: createdAt (kayıt), totalSpent (harcama), totalOrders (sipariş sayısı), lastName (soyad).","schema":{"type":"string","enum":["createdAt","totalSpent","totalOrders","lastName"]}},{"name":"sortDir","required":false,"in":"query","description":"Sıralama yönü: asc ya da desc.","schema":{"type":"string","enum":["asc","desc"]}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Müşterileri sayfalı listele","tags":["customers"]}},"/customers/{id}":{"get":{"description":"Tek müşterinin ayrıntısını döner.","operationId":"CustomersController_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Müşteriyi oku","tags":["customers"]},"patch":{"description":"Yalnız gönderilen alanlar değişir.","operationId":"CustomersController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomerDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Müşteriyi güncelle","tags":["customers"]}},"/fulfillment-orders":{"get":{"description":"Siparişlerin depo bazlı hazırlık emirlerini sayfalı döner; durum, sipariş, depo, satıcı ve gönderiye göre süzülür.","operationId":"FulfillmentOrdersController_list","parameters":[{"name":"storeId","required":false,"in":"query","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["OPEN","IN_PROGRESS","HOLD","FULFILLED","CANCELLED","CLOSED"]}},{"name":"orderId","required":false,"in":"query","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"name":"warehouseId","required":false,"in":"query","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"name":"vendorId","required":false,"in":"query","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"name":"shipmentId","required":false,"in":"query","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}},{"name":"page","required":false,"in":"query","description":"Sayfa numarası, 1'den başlar.","schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"}},{"name":"limit","required":false,"in":"query","description":"Sayfa başına kayıt sayısı (1–200).","schema":{"minimum":1,"maximum":200,"type":"integer"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Karşılama emirlerini listele","tags":["fulfillment-orders"]}},"/fulfillment-orders/{id}":{"get":{"description":"Tek hazırlık emrinin ayrıntısını döner.","operationId":"FulfillmentOrdersController_getById","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Karşılama emrini oku","tags":["fulfillment-orders"]}},"/fulfillment-orders/{id}/start":{"post":{"description":"Emri hazırlanıyor (IN_PROGRESS) durumuna alır.","operationId":"FulfillmentOrdersController_startProgress","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Hazırlığa başla","tags":["fulfillment-orders"]}},"/fulfillment-orders/{id}/hold":{"post":{"description":"Emri gerekçeyle bekletmeye (HOLD) alır; bekletilemeyecek durumdaki emirde 400 döner.","operationId":"FulfillmentOrdersController_hold","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReasonBodyDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Emri beklet","tags":["fulfillment-orders"]}},"/fulfillment-orders/{id}/fulfill":{"post":{"description":"Emri verilen gönderiyle tamamlandı (FULFILLED) olarak işaretler; gönderi bulunamazsa 404 shipment_not_found döner.","operationId":"FulfillmentOrdersController_fulfill","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkFulfillmentShipmentDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Emri tamamla","tags":["fulfillment-orders"]}},"/fulfillment-orders/{id}/cancel":{"post":{"description":"Emri iptal eder (CANCELLED); izin verilmeyen durumda 400 döner.","operationId":"FulfillmentOrdersController_cancel","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Emri iptal et","tags":["fulfillment-orders"]}},"/webhooks":{"get":{"description":"Kayıtlı olay bildirim adreslerinizi döner.","operationId":"WebhooksController_list","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Webhook adreslerini listele","tags":["webhooks"]},"post":{"description":"Seçilen olaylar gerçekleştiğinde bildirimin POST ile gönderileceği adresi kaydeder.","operationId":"WebhooksController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Webhook adresi ekle","tags":["webhooks"]}},"/webhooks/{id}":{"patch":{"description":"Adres, açıklama, olay listesi ya da durum (ACTIVE/DISABLED) değiştirilebilir.","operationId":"WebhooksController_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Webhook adresini güncelle","tags":["webhooks"]},"delete":{"description":"Adresi siler; bu adrese bundan sonra bildirim gitmez.","operationId":"WebhooksController_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Webhook adresini sil","tags":["webhooks"]}},"/webhooks/{id}/test":{"post":{"description":"Adrese deneme bildirimi kuyruğa alır; topic verilmezse \"test.ping\" gönderilir.","operationId":"WebhooksController_test","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestWebhookDto"}}}},"responses":{"202":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Deneme bildirimi gönder","tags":["webhooks"]}},"/warehouses":{"get":{"description":"Mağazanın depolarını öncelik sırasıyla döner.","operationId":"WarehousesController_list","parameters":[{"name":"storeId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Depoları listele","tags":["warehouses"]},"post":{"description":"Yeni depo ekler; code mağazada benzersiz olmalı.","operationId":"WarehousesController_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWarehouseDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Depo oluştur","tags":["warehouses"]}},"/warehouses/stock":{"post":{"description":"Bir ürün ya da varyantın bu depodaki stok adedini yazar (varsa üzerine yazar).","operationId":"WarehousesController_upsertStock","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertStockDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Depo stoğunu yaz","tags":["warehouses"]}},"/warehouses/{id}/stock":{"get":{"description":"Depodaki ürün ve varyant stoklarını döner.","operationId":"WarehousesController_listStock","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"Depo stoğunu oku","tags":["warehouses"]}}},"info":{"title":"Daras Merchant API","description":"Daras public API — multi-tenant commerce platform. See https://developers.daras.com.tr","version":"4.18.0","contact":{}},"tags":[{"name":"auth","description":"Authentication + JWT + 2FA + password reset"},{"name":"organization","description":"Tenant + store CRUD for merchants"},{"name":"catalog","description":"Product + category + public storefront search"},{"name":"checkout","description":"Guest + authenticated checkout + payments"},{"name":"community","description":"Platform-wide UGC: discussions + comments + voting"},{"name":"help-center","description":"Public knowledge base articles + feedback"},{"name":"support","description":"Customer support tickets with SLA tracking"},{"name":"impersonation","description":"Super-admin → tenant impersonation (audit-logged)"},{"name":"platform","description":"Super-admin only: tenants, audit log, stats, feature flags"}],"servers":[{"url":"https://api.daras.com.tr/api/merchant/v1","description":"Production"}],"components":{"securitySchemes":{"access-token":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"JWT HS256 access token issued by POST /auth/login"},"tenant-api-key":{"type":"apiKey","in":"header","name":"X-API-Key"},"impersonation-session":{"type":"apiKey","in":"header","name":"X-Impersonation"},"idempotency-key":{"type":"apiKey","in":"header","name":"Idempotency-Key"}},"schemas":{"CreateProductDto":{"type":"object","properties":{"storeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Mağaza kimliği."},"sku":{"type":"string","minLength":1,"maxLength":80,"description":"Stok kodu; mağazada benzersiz olmalı (1–80 karakter)."},"name":{"type":"string","minLength":1,"maxLength":300,"description":"Ürün adı (1–300 karakter)."},"slug":{"type":"string","minLength":1,"maxLength":300,"pattern":"^[a-z0-9][a-z0-9-]*$","description":"Ürün sayfasının adres uzantısı; küçük harf, rakam ve tire. Kategori, sayfa ve markalarla aynı adres alanını paylaşır; kullanılıyorsa 409 path_conflict döner."},"description":{"description":"Ürün açıklaması (HTML).","type":"string","maxLength":40000},"type":{"default":"PHYSICAL","description":"Ürün türü: PHYSICAL (kargoyla gönderilen), DIGITAL (indirilebilir), BUNDLE (paket). Varsayılan PHYSICAL.","type":"string","enum":["PHYSICAL","DIGITAL","BUNDLE"]},"currency":{"type":"string","minLength":3,"maxLength":3,"description":"Fiyatların para birimi, ISO 4217 üç harfli kod. Örnek: \"TRY\"."},"basePrice":{"type":"number","minimum":0,"description":"KDV dahil satış fiyatı. Örnek: 249.90."},"compareAtPrice":{"description":"İndirim öncesi (üstü çizili) fiyat; basePrice'tan büyükse vitrinde indirim olarak gösterilir.","type":"number","minimum":0},"costPrice":{"description":"Ürünün size maliyeti; yalnız kâr raporlarında kullanılır, müşteri görmez.","type":"number","minimum":0},"taxRate":{"description":"KDV oranı, yüzde (0–100). Örnek: 20.","type":"number","minimum":0,"maximum":100},"hsCode":{"description":"Gümrük tarife (GTİP/HS) kodu; rakam ve nokta, 4–20 karakter.","type":"string","minLength":4,"maxLength":20,"pattern":"^[0-9.]+$"},"countryOfOrigin":{"description":"Menşe ülke, ISO 3166 iki harfli kod. Örnek: \"TR\".","type":"string","minLength":2,"maxLength":2,"pattern":"^[A-Z]{2}$"},"barcode":{"description":"Barkod; 6–40 karakter, harf, rakam ve tire.","type":"string","minLength":6,"maxLength":40,"pattern":"^[A-Za-z0-9-]+$"},"imageUrl":{"description":"Ana ürün görselinin adresi.","type":"string","maxLength":500},"imageUrls":{"description":"Ek görsellerin adresleri (en çok 20), sırayla gösterilir.","maxItems":20,"type":"array","items":{"type":"string","maxLength":500}},"videoUrl":{"description":"Ürün videosunun adresi.","type":"string","maxLength":500},"minOrderQuantity":{"description":"Bir siparişte alınabilecek en az adet.","type":"integer","minimum":1,"maximum":1000000},"subscriptionEnabled":{"description":"true ise ürün abonelikle (düzenli teslimat) satılabilir.","type":"boolean"},"freeShipping":{"description":"true ise ürün vitrinde ve aramada «ücretsiz kargo» olarak işaretlenir.","type":"boolean"},"isFeatured":{"description":"true ise ürün öne çıkan ürünler arasında gösterilir.","type":"boolean"},"bestBefore":{"description":"Son tüketim tarihi (ISO 8601).","type":"string","format":"date-time"},"channels":{"description":"Ürünün satıldığı kanallar: storefront (vitrin), b2b (bayi), pos (mağaza içi satış), marketplace (pazaryeri).","minItems":0,"maxItems":8,"type":"array","items":{"type":"string","enum":["storefront","b2b","pos","marketplace"]}},"categoryId":{"description":"Kategori kimliği; GET /catalog/categories ile listelenir.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"brandId":{"description":"Marka kimliği.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"vendorId":{"description":"Çok satıcılı pazaryerinde ürünün sahibi satıcının kimliği.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"packageLengthMm":{"description":"Paket uzunluğu, milimetre; desi hesabında kullanılır.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"packageWidthMm":{"description":"Paket genişliği, milimetre.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"packageHeightMm":{"description":"Paket yüksekliği, milimetre.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"volumetricDivisor":{"description":"Desi böleni; verilmezse 6000 kullanılır.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"seoTitle":{"description":"Arama motoru başlığı; boşsa ürün adı kullanılır.","type":"string","maxLength":300},"seoDescription":{"description":"Arama motoru açıklaması (en çok 500 karakter).","type":"string","maxLength":500},"seoKeywords":{"description":"SEO anahtar kelimeleri (en çok 30).","maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}},"seoNoindex":{"description":"true ise ürün sayfası arama motorlarına kapatılır.","type":"boolean"},"imageAlts":{"description":"Görsellerin alternatif metinleri, imageUrls ile aynı sırada.","maxItems":30,"type":"array","items":{"type":"string","maxLength":300}},"metadata":{"description":"Size ait serbest anahtar–değer verisi; vitrinde gösterilmez.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["storeId","sku","name","slug","currency","basePrice"]},"UpdateProductDto":{"type":"object","properties":{"name":{"description":"Ürün adı (1–300 karakter).","type":"string","minLength":1,"maxLength":300},"description":{"description":"Ürün açıklaması (HTML).","anyOf":[{"type":"string","maxLength":40000},{"type":"null"}]},"basePrice":{"description":"KDV dahil satış fiyatı. Örnek: 249.90.","type":"number","minimum":0},"compareAtPrice":{"description":"İndirim öncesi (üstü çizili) fiyat; basePrice'tan büyükse vitrinde indirim olarak gösterilir.","anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"costPrice":{"description":"Ürünün size maliyeti; yalnız kâr raporlarında kullanılır, müşteri görmez.","anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"taxRate":{"description":"KDV oranı, yüzde (0–100). Örnek: 20.","anyOf":[{"type":"number","minimum":0,"maximum":100},{"type":"null"}]},"hsCode":{"description":"Gümrük tarife (GTİP/HS) kodu; rakam ve nokta, 4–20 karakter.","anyOf":[{"type":"string","minLength":4,"maxLength":20,"pattern":"^[0-9.]+$"},{"type":"null"}]},"countryOfOrigin":{"description":"Menşe ülke, ISO 3166 iki harfli kod. Örnek: \"TR\".","anyOf":[{"type":"string","minLength":2,"maxLength":2,"pattern":"^[A-Z]{2}$"},{"type":"null"}]},"barcode":{"description":"Barkod; 6–40 karakter, harf, rakam ve tire.","anyOf":[{"type":"string","minLength":6,"maxLength":40,"pattern":"^[A-Za-z0-9-]+$"},{"type":"null"}]},"imageUrl":{"description":"Ana ürün görselinin adresi.","anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"imageUrls":{"description":"Ek görsellerin adresleri (en çok 20), sırayla gösterilir.","maxItems":20,"type":"array","items":{"type":"string","maxLength":500}},"videoUrl":{"description":"Ürün videosunun adresi.","anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"minOrderQuantity":{"description":"Bir siparişte alınabilecek en az adet.","anyOf":[{"type":"integer","minimum":1,"maximum":1000000},{"type":"null"}]},"subscriptionEnabled":{"description":"true ise ürün abonelikle (düzenli teslimat) satılabilir.","type":"boolean"},"freeShipping":{"description":"true ise ürün vitrinde ve aramada «ücretsiz kargo» olarak işaretlenir.","type":"boolean"},"isFeatured":{"description":"true ise ürün öne çıkan ürünler arasında gösterilir.","type":"boolean"},"bestBefore":{"description":"Son tüketim tarihi (ISO 8601).","anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"channels":{"description":"Ürünün satıldığı kanallar: storefront (vitrin), b2b (bayi), pos (mağaza içi satış), marketplace (pazaryeri).","minItems":0,"maxItems":8,"type":"array","items":{"type":"string","enum":["storefront","b2b","pos","marketplace"]}},"currency":{"description":"Fiyatların para birimi, ISO 4217 üç harfli kod. Örnek: \"TRY\".","type":"string","minLength":3,"maxLength":3},"categoryId":{"description":"Kategori kimliği; GET /catalog/categories ile listelenir.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"brandId":{"description":"Marka kimliği.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"vendorId":{"description":"Çok satıcılı pazaryerinde ürünün sahibi satıcının kimliği.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"packageLengthMm":{"description":"Paket uzunluğu, milimetre; desi hesabında kullanılır.","anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"packageWidthMm":{"description":"Paket genişliği, milimetre.","anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"packageHeightMm":{"description":"Paket yüksekliği, milimetre.","anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"volumetricDivisor":{"description":"Desi böleni; verilmezse 6000 kullanılır.","anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"seoTitle":{"description":"Arama motoru başlığı; boşsa ürün adı kullanılır.","anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"seoDescription":{"description":"Arama motoru açıklaması (en çok 500 karakter).","anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"seoKeywords":{"description":"SEO anahtar kelimeleri (en çok 30).","anyOf":[{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}},{"type":"null"}]},"seoNoindex":{"description":"true ise ürün sayfası arama motorlarına kapatılır.","type":"boolean"},"imageAlts":{"description":"Görsellerin alternatif metinleri, imageUrls ile aynı sırada.","maxItems":30,"type":"array","items":{"type":"string","maxLength":300}},"slug":{"description":"Ürün sayfasının adres uzantısı; küçük harf, rakam ve tire. Kategori, sayfa ve markalarla aynı adres alanını paylaşır; kullanılıyorsa 409 path_conflict döner.","type":"string","minLength":1,"maxLength":300,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"metadata":{"description":"Size ait serbest anahtar–değer verisi; vitrinde gösterilmez.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"CreateCategoryDto":{"type":"object","properties":{"storeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Mağaza kimliği."},"name":{"type":"string","minLength":1,"maxLength":200,"description":"Kategori adı (1–200 karakter); vitrinde ve menüde görünür."},"slug":{"type":"string","minLength":1,"maxLength":150,"pattern":"^[a-z0-9][a-z0-9-]*$","description":"Kategori sayfasının adres uzantısı; küçük harf, rakam ve tire. Ürün, sayfa ve markalarla aynı adres alanını paylaşır; kullanılıyorsa 409 path_conflict döner."},"parentId":{"description":"Üst kategori kimliği; verilmezse ana (kök) kategori olur.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"imageUrl":{"description":"Kategori görselinin herkese açık https adresi.","type":"string","maxLength":500,"format":"uri"},"imageAlt":{"description":"Kategori görselinin alternatif metni.","anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"seoTitle":{"description":"Arama motoru başlığı; boşsa kategori adı kullanılır.","anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"seoDescription":{"description":"Arama motoru açıklaması (en çok 500 karakter).","anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"contentHtml":{"description":"Kategori sayfasında ürünlerin altında gösterilen HTML içerik (en çok 40000 karakter).","anyOf":[{"type":"string","maxLength":40000},{"type":"null"}]},"ogImageUrl":{"description":"Sosyal medyada paylaşım görseli adresi.","anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"null"}]},"seoNoindex":{"description":"true ise kategori sayfası arama motorlarına kapatılır.","type":"boolean"},"position":{"description":"Kardeş kategoriler arasındaki sıra (0–999); küçük değer önce gelir.","type":"integer","minimum":0,"maximum":999},"commissionRate":{"description":"Çok satıcılı pazaryerinde bu kategorideki satışlardan alınan komisyon yüzdesi (0–100). Satıcıya sözleşmeyle özel oran tanımlıysa o geçerlidir; boşsa kademe ya da satıcının varsayılan oranı kullanılır.","anyOf":[{"type":"number","minimum":0,"maximum":100},{"type":"null"}]}},"required":["storeId","name","slug"]},"UpdateCategoryDto":{"type":"object","properties":{"name":{"description":"Kategori adı (1–200 karakter); vitrinde ve menüde görünür.","type":"string","minLength":1,"maxLength":200},"parentId":{"description":"Üst kategori kimliği; null gönderilirse kategori ana (kök) kategori olur.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"imageUrl":{"description":"Kategori görselinin herkese açık https adresi.","anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"null"}]},"slug":{"description":"Kategori sayfasının adres uzantısı; küçük harf, rakam ve tire. Ürün, sayfa ve markalarla aynı adres alanını paylaşır; kullanılıyorsa 409 path_conflict döner.","type":"string","minLength":1,"maxLength":150,"pattern":"^[a-z0-9][a-z0-9-]*$"},"imageAlt":{"description":"Kategori görselinin alternatif metni.","anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"seoTitle":{"description":"Arama motoru başlığı; boşsa kategori adı kullanılır.","anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"seoDescription":{"description":"Arama motoru açıklaması (en çok 500 karakter).","anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"contentHtml":{"description":"Kategori sayfasında ürünlerin altında gösterilen HTML içerik (en çok 40000 karakter).","anyOf":[{"type":"string","maxLength":40000},{"type":"null"}]},"ogImageUrl":{"description":"Sosyal medyada paylaşım görseli adresi.","anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"null"}]},"seoNoindex":{"description":"true ise kategori sayfası arama motorlarına kapatılır.","type":"boolean"},"position":{"description":"Kardeş kategoriler arasındaki sıra (0–999); küçük değer önce gelir.","type":"integer","minimum":0,"maximum":999},"commissionRate":{"description":"Çok satıcılı pazaryerinde bu kategorideki satışlardan alınan komisyon yüzdesi (0–100). Satıcıya sözleşmeyle özel oran tanımlıysa o geçerlidir; boşsa kademe ya da satıcının varsayılan oranı kullanılır.","anyOf":[{"type":"number","minimum":0,"maximum":100},{"type":"null"}]}}},"CreateCollectionDto":{"type":"object","properties":{"storeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Mağaza kimliği."},"name":{"type":"string","minLength":1,"maxLength":200,"description":"Koleksiyon adı (1–200 karakter)."},"slug":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[a-z0-9][a-z0-9-]*$","description":"Koleksiyon sayfasının adres uzantısı; küçük harf, rakam ve tire. Ürün, kategori, sayfa ve markalarla aynı adres alanını paylaşır."},"description":{"description":"Koleksiyon sayfasında gösterilen açıklama.","type":"string","maxLength":40000},"imageUrl":{"description":"Koleksiyon görselinin adresi.","type":"string","maxLength":500,"format":"uri"},"isActive":{"description":"false ise koleksiyon vitrinde gösterilmez.","type":"boolean"},"sortOrder":{"description":"Koleksiyonlar arasındaki sıra (0–10000); küçük değer önce gelir.","type":"integer","minimum":0,"maximum":10000},"imageAlt":{"description":"Görselin alternatif metni.","anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"seoTitle":{"description":"Arama motoru başlığı; boşsa ad kullanılır.","anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"seoDescription":{"description":"Arama motoru açıklaması (en çok 500 karakter).","anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"ogImageUrl":{"description":"Sosyal medya paylaşım görseli adresi.","anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"null"}]},"seoNoindex":{"description":"true ise sayfa arama motorlarına kapatılır.","type":"boolean"}},"required":["storeId","name","slug"]},"UpdateCollectionDto":{"type":"object","properties":{"name":{"description":"Koleksiyon adı (1–200 karakter).","type":"string","minLength":1,"maxLength":200},"slug":{"description":"Koleksiyon sayfasının adres uzantısı; küçük harf, rakam ve tire. Ürün, kategori, sayfa ve markalarla aynı adres alanını paylaşır.","type":"string","minLength":1,"maxLength":200,"pattern":"^[a-z0-9][a-z0-9-]*$"},"description":{"description":"Koleksiyon sayfasında gösterilen açıklama.","anyOf":[{"type":"string","maxLength":40000},{"type":"null"}]},"imageUrl":{"description":"Koleksiyon görselinin adresi.","anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"null"}]},"isActive":{"description":"false ise koleksiyon vitrinde gösterilmez.","type":"boolean"},"sortOrder":{"description":"Koleksiyonlar arasındaki sıra (0–10000); küçük değer önce gelir.","type":"integer","minimum":0,"maximum":10000},"imageAlt":{"description":"Görselin alternatif metni.","anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"seoTitle":{"description":"Arama motoru başlığı; boşsa ad kullanılır.","anyOf":[{"type":"string","maxLength":300},{"type":"null"}]},"seoDescription":{"description":"Arama motoru açıklaması (en çok 500 karakter).","anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"ogImageUrl":{"description":"Sosyal medya paylaşım görseli adresi.","anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"null"}]},"seoNoindex":{"description":"true ise sayfa arama motorlarına kapatılır.","type":"boolean"}}},"CollectionItemsDto":{"type":"object","properties":{"productIds":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Ürün kimlikleri (1–200). Koleksiyonla aynı mağazada olmayan ürünler atlanır."}},"required":["productIds"]},"ReasonBodyDto":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":800}},"required":["reason"]},"CreateVariantDto":{"type":"object","properties":{"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Varyantın ekleneceği ürünün kimliği."},"sku":{"type":"string","minLength":1,"maxLength":80,"description":"Varyantın stok kodu; mağazada benzersiz olmalı (1–80 karakter)."},"barcode":{"description":"Varyant barkodu (en çok 40 karakter).","type":"string","maxLength":40},"name":{"type":"string","minLength":1,"maxLength":200,"description":"Varyant adı. Örnek: \"Kırmızı / M\"."},"price":{"type":"number","minimum":0,"description":"Varyantın KDV dahil satış fiyatı."},"compareAtPrice":{"description":"İndirim öncesi (üstü çizili) fiyat.","type":"number","minimum":0},"inventory":{"description":"Başlangıç stoğu, stok biriminin en küçük alt biriminde tam sayı (adet; metre için cm, kg için g, litre için ml, m² için cm²).","type":"integer","minimum":0,"maximum":1000000},"saleStep":{"description":"Satış adımı, stok biriminin alt biriminde (0,5 kg için 500). Müşteri bu adımın katlarını alır; adet biriminde her zaman 1.","type":"integer","exclusiveMinimum":0,"maximum":1000000},"unitPrice":{"description":"Birim fiyatı (₺/kg, ₺/m, ₺/L). Verilirse satış fiyatı birim fiyat × adım olarak kuruşa yuvarlanıp hesaplanır.","type":"number","minimum":0},"stockUnit":{"description":"Stok birimi; varsayılan PIECE (adet). Stok, eşik ve hareketler alt birimde tutulur.","type":"string","enum":["PIECE","METRE","SQUARE_METRE","KILOGRAM","GRAM","LITRE"]},"lowStockThreshold":{"description":"Bu adedin altına düşünce düşük stok uyarısı verilir.","type":"integer","minimum":0,"maximum":1000000},"weightGrams":{"description":"Ağırlık, gram.","type":"integer","minimum":0,"maximum":1000000},"desi":{"description":"Kargo desisi.","type":"number","exclusiveMinimum":0,"maximum":99999.99},"attributes":{"description":"Seçenek değerleri gibi serbest özellikler. Örnek: {\"Renk\": \"Kırmızı\", \"Beden\": \"M\"}.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"imageUrls":{"default":[],"description":"Varyant görsellerinin adresleri (en çok 20).","maxItems":20,"type":"array","items":{"type":"string","maxLength":500}}},"required":["productId","sku","name","price"]},"UpdateVariantDto":{"type":"object","properties":{"name":{"description":"Varyant adı. Örnek: \"Kırmızı / M\".","type":"string","minLength":1,"maxLength":200},"barcode":{"description":"Varyant barkodu (en çok 40 karakter).","anyOf":[{"type":"string","maxLength":40},{"type":"null"}]},"price":{"description":"Varyantın KDV dahil satış fiyatı.","type":"number","minimum":0},"compareAtPrice":{"description":"İndirim öncesi (üstü çizili) fiyat.","anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"lowStockThreshold":{"description":"Bu adedin altına düşünce düşük stok uyarısı verilir.","anyOf":[{"type":"integer","minimum":0,"maximum":1000000},{"type":"null"}]},"saleStep":{"description":"Satış adımı, stok biriminin alt biriminde (0,5 kg için 500). Müşteri bu adımın katlarını alır; adet biriminde her zaman 1.","type":"integer","exclusiveMinimum":0,"maximum":1000000},"unitPrice":{"description":"Birim fiyatı (₺/kg, ₺/m, ₺/L). Verilirse satış fiyatı birim fiyat × adım olarak kuruşa yuvarlanıp hesaplanır.","type":"number","minimum":0},"stockUnit":{"description":"Stok birimi; değiştirildiğinde mevcut stok yeni birimin alt birimine çevrilir.","type":"string","enum":["PIECE","METRE","SQUARE_METRE","KILOGRAM","GRAM","LITRE"]},"weightGrams":{"description":"Ağırlık, gram.","anyOf":[{"type":"integer","minimum":0,"maximum":1000000},{"type":"null"}]},"desi":{"description":"Kargo desisi.","anyOf":[{"type":"number","exclusiveMinimum":0,"maximum":99999.99},{"type":"null"}]},"attributes":{"description":"Seçenek değerleri gibi serbest özellikler. Örnek: {\"Renk\": \"Kırmızı\", \"Beden\": \"M\"}.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"imageUrls":{"description":"Varyant görsellerinin adresleri (en çok 20).","maxItems":20,"type":"array","items":{"type":"string","maxLength":500}},"inventory":{"description":"Salt okunur; bu uçla değiştirilemez. Stoğu POST /warehouses/stock ile depo bazında yazın.","not":{}}}},"CreateOrderDto":{"type":"object","properties":{"storeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Siparişin mağazası."},"customerId":{"description":"Müşteri kimliği; verilmezse sipariş müşterisiz (misafir) açılır.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"Para birimi, ISO 4217 üç harfli kod. Örnek: \"TRY\"."},"items":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Ürün kimliği."},"variantId":{"description":"Varyant kimliği; varyantlı üründe zorunludur (400 order_item_variant_required).","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quantity":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Adet."},"unitPrice":{"type":"number","minimum":0,"description":"Birim fiyat. Katalog fiyatından farklıysa fiyat değişikliği olarak denetim kaydına yazılır."},"configuration":{"type":"object","properties":{"selections":{"type":"object","properties":{"dimensions":{"type":"object","propertyNames":{"type":"string","maxLength":40},"additionalProperties":{"type":"number"}},"options":{"type":"object","propertyNames":{"type":"string","maxLength":40},"additionalProperties":{"type":"string","maxLength":80}}}}},"required":["selections"]}},"required":["productId","quantity","unitPrice"]},"description":"Sipariş satırları (1–100)."},"shippingAmount":{"description":"Kargo ücreti.","type":"number","minimum":0},"shippingCarrier":{"description":"Kargo firması adı.","type":"string","minLength":1,"maxLength":60},"shippingRateId":{"description":"Kargo tarifesi kimliği.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"shippingInsuranceOptedIn":{"description":"true ise kargo sigortası eklenir.","type":"boolean"},"shippingInsuranceFee":{"description":"Kargo sigortası ücreti.","type":"number","minimum":0,"maximum":100000},"fulfillmentMethod":{"description":"Teslim yöntemi: SHIP (kargo), PICKUP (mağazadan teslim), LOCAL_DELIVERY (yerel teslimat), DIGITAL (dijital).","type":"string","enum":["SHIP","PICKUP","LOCAL_DELIVERY","DIGITAL"]},"pickupLocationId":{"description":"PICKUP için teslim noktası kimliği.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"shippingAddress":{"description":"Teslimat adresi.","type":"object","properties":{"fullName":{"type":"string","maxLength":160},"phone":{"type":"string"},"line1":{"type":"string","maxLength":240},"line2":{"type":"string","maxLength":240},"district":{"type":"string","maxLength":120},"city":{"type":"string","maxLength":120},"postalCode":{"type":"string","minLength":1,"maxLength":20},"country":{"type":"string","minLength":2,"maxLength":2}}},"billingAddress":{"description":"Fatura adresi.","type":"object","properties":{"fullName":{"type":"string","maxLength":160},"phone":{"type":"string"},"line1":{"type":"string","maxLength":240},"line2":{"type":"string","maxLength":240},"district":{"type":"string","maxLength":120},"city":{"type":"string","maxLength":120},"postalCode":{"type":"string","minLength":1,"maxLength":20},"country":{"type":"string","minLength":2,"maxLength":2}}},"requestedDeliveryDate":{"description":"İstenen teslim tarihi (ISO 8601).","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"discountCode":{"description":"Uygulanacak indirim kodu.","type":"string","maxLength":40},"discountAmount":{"description":"Elle uygulanan indirim tutarı.","type":"number","minimum":0},"paymentMethod":{"description":"Ödeme yöntemi: CASH, CARD, BANK_TRANSFER, CASH_ON_DELIVERY, WALLET, STORE_CREDIT, OTHER. STORE_CREDIT yalnız paymentStatus CAPTURED ile kullanılabilir (400 store_credit_requires_capture).","type":"string","enum":["CASH","CARD","BANK_TRANSFER","CASH_ON_DELIVERY","WALLET","STORE_CREDIT","OTHER"]},"paymentStatus":{"description":"UNPAID (ödenmedi) ya da CAPTURED (tahsil edildi).","type":"string","enum":["UNPAID","CAPTURED"]},"metadata":{"description":"Size ait ek veri; bayi siparişi için wholesaleCustomerId taşıyabilir.","type":"object","properties":{"wholesaleCustomerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":{}}},"required":["storeId","currency","items"]},"RefundOrderBodyDto":{"type":"object","properties":{"reason":{"description":"İade gerekçesi.","type":"string","minLength":1,"maxLength":800},"restock":{"description":"true ise ürünler stoğa geri eklenir; verilmezse sipariş henüz gönderilmediyse eklenir.","type":"boolean"},"notifyCustomer":{"description":"false ise müşteriye iade e-postası gönderilmez; verilmezse gönderilir.","type":"boolean"}}},"CreateShipmentDto":{"type":"object","properties":{"orderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Gönderilen sipariş."},"carrier":{"type":"string","minLength":1,"maxLength":80,"description":"Kargo firması kodu; GET /shipments/carriers ile listelenir."},"carrierName":{"description":"Listede olmayan firma için görünen ad.","type":"string","minLength":1,"maxLength":80},"trackingNumber":{"description":"Kargo takip numarası.","type":"string","minLength":1,"maxLength":120},"trackingUrl":{"description":"Kargo takip sayfası adresi.","type":"string","maxLength":500,"format":"uri"},"note":{"description":"Gönderi notu (en çok 400 karakter).","type":"string","maxLength":400},"weightGrams":{"description":"Paket ağırlığı, gram; firmayla otomatik oluşturmada kullanılır.","type":"integer","exclusiveMinimum":0,"maximum":1000000},"parcelCount":{"description":"Koli sayısı.","type":"integer","exclusiveMinimum":0,"maximum":999},"autoCreateWithCarrier":{"description":"true ise gönderi bağlı kargo firmasında otomatik oluşturulur ve takip numarası alınır. Kapıda ödemeli siparişte 400 carrier_cod_not_supported döner.","type":"boolean"},"handedToCarrier":{"description":"autoCreateWithCarrier false iken ve takip numarası verilmişse, true gönderiyi doğrudan yolda (IN_TRANSIT) işaretler.","type":"boolean"},"fulfillmentOrderId":{"description":"Birden çok depodan gönderilen siparişte bu gönderinin taşıyacağı paket; verilmezse sıradaki açık paket seçilir. Paket açık değilse 400 fulfillment_package_not_open döner.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orderId","carrier"]},"UpdateShipmentDto":{"type":"object","properties":{"status":{"description":"Gönderi durumu: PENDING, READY, IN_TRANSIT, DELIVERED, RETURNED, CANCELLED.","type":"string","enum":["PENDING","READY","IN_TRANSIT","DELIVERED","RETURNED","CANCELLED"]},"carrier":{"description":"Kargo firması kodu; GET /shipments/carriers ile listelenir.","type":"string","minLength":1,"maxLength":80},"carrierName":{"description":"Listede olmayan firma için görünen ad.","anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}]},"trackingNumber":{"description":"Kargo takip numarası.","anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"trackingUrl":{"description":"Kargo takip sayfası adresi.","anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"null"}]},"note":{"description":"Gönderi notu (en çok 400 karakter).","anyOf":[{"type":"string","maxLength":400},{"type":"null"}]}}},"RegisterMediaDto":{"type":"object","properties":{"storeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Mağaza kimliği."},"url":{"type":"string","maxLength":800,"format":"uri","description":"Dosyanın https adresi (en çok 800 karakter); https olmayan adres 400 media_url_must_be_https döner."},"thumbUrl":{"description":"Küçük önizleme görselinin https adresi.","type":"string","maxLength":800,"format":"uri"},"mimeType":{"type":"string","minLength":1,"maxLength":80,"description":"Dosya türü. Örnek: \"image/webp\"."},"sizeBytes":{"description":"Dosya boyutu, bayt.","type":"integer","minimum":0,"maximum":10000000000},"width":{"description":"Genişlik, piksel.","type":"integer","minimum":0,"maximum":100000},"height":{"description":"Yükseklik, piksel.","type":"integer","minimum":0,"maximum":100000},"alt":{"description":"Alternatif metin (en çok 240 karakter).","type":"string","maxLength":240},"folder":{"description":"Medya kütüphanesindeki klasör adı.","type":"string","maxLength":120},"tags":{"description":"Etiketler (en çok 20).","maxItems":20,"type":"array","items":{"type":"string","maxLength":40}},"checksum":{"description":"Dosyanın sağlama değeri (isteğe bağlı).","type":"string","maxLength":128}},"required":["storeId","url","mimeType"]},"ImportRedirectsDto":{"type":"object","properties":{"storeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Mağaza kimliği."},"rows":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"fromPath":{"type":"string","maxLength":1000,"description":"Eski adres."},"toPath":{"type":"string","maxLength":1000,"description":"Yeni adres."},"status":{"description":"301 ya da 302; verilmezse 301.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["fromPath","toPath"]},"description":"İçe aktarılacak satırlar (1–1000). Önce /import/preview ile hataları görün."}},"required":["storeId","rows"]},"CreateRedirectDto":{"type":"object","properties":{"storeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Mağaza kimliği."},"fromPath":{"type":"string","minLength":2,"maxLength":500,"pattern":"^\\/[^\\s?#]*$","description":"Yönlendirilecek eski adres; / ile başlar. Örnek: \"/eski-urun\"."},"toPath":{"type":"string","minLength":1,"maxLength":500,"description":"Yeni adres; mağaza içi yol (/yeni-urun) ya da tam adres."},"status":{"description":"301 (kalıcı, varsayılan) ya da 302 (geçici) yönlendirme.","anyOf":[{"type":"number","const":301},{"type":"number","const":302}]},"isActive":{"description":"false ise yönlendirme uygulanmaz.","type":"boolean"}},"required":["storeId","fromPath","toPath"]},"UpdateRedirectDto":{"type":"object","properties":{"toPath":{"description":"Yeni adres; mağaza içi yol (/yeni-urun) ya da tam adres.","type":"string","minLength":1,"maxLength":500},"status":{"description":"301 (kalıcı, varsayılan) ya da 302 (geçici) yönlendirme.","anyOf":[{"type":"number","const":301},{"type":"number","const":302}]},"isActive":{"description":"false ise yönlendirme uygulanmaz.","type":"boolean"}}},"CreateReturnDto":{"type":"object","properties":{"orderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"İadenin ait olduğu sipariş."},"reason":{"type":"string","enum":["WRONG_ITEM","DAMAGED","NOT_AS_DESCRIBED","CHANGED_MIND","QUALITY_ISSUE","OTHER"],"description":"İade nedeni: WRONG_ITEM (yanlış ürün), DAMAGED (hasarlı), NOT_AS_DESCRIBED (açıklamaya uymuyor), CHANGED_MIND (vazgeçti), QUALITY_ISSUE (kalite sorunu), OTHER."},"description":{"description":"Açıklama (en çok 2000 karakter).","type":"string","maxLength":2000},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"orderItemId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"İade edilen sipariş satırının kimliği."},"quantity":{"type":"integer","minimum":1,"maximum":100000,"description":"İade edilen adet."}},"required":["orderItemId","quantity"]},"description":"İade edilen satırlar (1–200)."}},"required":["orderId","reason","items"]},"UpdateReturnStatusDto":{"type":"object","properties":{"status":{"type":"string","enum":["REQUESTED","APPROVED","RECEIVED","REFUNDED","REJECTED","CANCELLED"],"description":"Yeni durum: REQUESTED, APPROVED, RECEIVED, REFUNDED, REJECTED, CANCELLED."},"rejectionReason":{"description":"REJECTED için ret nedeni (en çok 240 karakter).","type":"string","maxLength":240},"restock":{"description":"true ise iade edilen ürünler stoğa geri eklenir.","type":"boolean"}},"required":["status"]},"GenerateReturnLabelDto":{"type":"object","properties":{"carrier":{"type":"string","minLength":1,"maxLength":80,"description":"İade kargosunu taşıyacak firma kodu."},"labelUrl":{"description":"Hazır etiketin adresi; elle oluşturduysanız.","anyOf":[{"type":"string","maxLength":800,"format":"uri"},{"type":"null"}]},"trackingNumber":{"description":"İade gönderisinin takip ya da iade kodu.","anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"autoCreateWithCarrier":{"description":"true ise etiket bağlı kargo firmasında otomatik oluşturulur. labelUrl, trackingNumber ya da bu alandan biri zorunlu (400 return_label_code_or_url_required).","type":"boolean"}},"required":["carrier"]},"CreateCustomerDto":{"type":"object","properties":{"storeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Mağaza kimliği."},"email":{"type":"string","maxLength":200,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Müşterinin e-posta adresi; mağazada benzersizdir."},"firstName":{"description":"Ad.","type":"string","maxLength":120},"lastName":{"description":"Soyad.","type":"string","maxLength":120},"phone":{"description":"Telefon, uluslararası biçimde. Örnek: \"+905551112233\".","type":"string"},"acceptsMarketing":{"description":"Müşteri e-postayla ticari ileti almaya açık izin verdiyse true. İzni belgelemek gönderen mağazanın sorumluluğundadır.","type":"boolean"},"acceptsSms":{"description":"Müşteri SMS ile ticari ileti almaya açık izin verdiyse true.","type":"boolean"},"tags":{"description":"Müşteri etiketleri (en çok 40, her biri en çok 40 karakter).","maxItems":40,"type":"array","items":{"type":"string","maxLength":40}},"notes":{"description":"Yalnız panelde görünen iç not (en çok 4000 karakter).","type":"string","maxLength":4000}},"required":["storeId","email"]},"UpdateCustomerDto":{"type":"object","properties":{"firstName":{"description":"Ad.","anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"lastName":{"description":"Soyad.","anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"phone":{"description":"Telefon, uluslararası biçimde. Örnek: \"+905551112233\".","type":"array","items":{"type":"string"}},"status":{"description":"Müşteri durumu: ACTIVE (etkin), BLACKLISTED (engelli), DELETED (silinmiş).","type":"string","enum":["ACTIVE","BLACKLISTED","DELETED"]},"acceptsMarketing":{"description":"Müşteri e-postayla ticari ileti almaya açık izin verdiyse true. İzni belgelemek gönderen mağazanın sorumluluğundadır.","type":"boolean"},"acceptsSms":{"description":"Müşteri SMS ile ticari ileti almaya açık izin verdiyse true.","type":"boolean"},"tags":{"description":"Müşteri etiketleri (en çok 40, her biri en çok 40 karakter).","maxItems":40,"type":"array","items":{"type":"string","maxLength":40}},"notes":{"description":"Yalnız panelde görünen iç not (en çok 4000 karakter).","anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"birthDate":{"description":"Doğum tarihi (YYYY-AA-GG).","anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]}}},"LinkFulfillmentShipmentDto":{"type":"object","properties":{"shipmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["shipmentId"]},"CreateWebhookDto":{"type":"object","properties":{"url":{"type":"string","maxLength":500,"format":"uri","description":"Olayların POST ile gönderileceği adres (en çok 500 karakter)."},"description":{"description":"Kendi notunuz (en çok 240 karakter).","type":"string","maxLength":240},"topics":{"minItems":1,"maxItems":40,"type":"array","items":{"type":"string","minLength":3,"maxLength":120},"description":"Abone olunacak olay adları (1–40). Olay listesi geliştirici sitesindeki Webhooks sayfasındadır; bilinmeyen olay 400 unknown_webhook_topic döner."},"storeId":{"description":"Yalnız bu mağazanın olaylarını gönder. Boş bırakılırsa bütün mağazaların olayları gönderilir.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["url","topics"]},"UpdateWebhookDto":{"type":"object","properties":{"url":{"description":"Olayların POST ile gönderileceği adres (en çok 500 karakter).","type":"string","maxLength":500,"format":"uri"},"description":{"description":"Kendi notunuz (en çok 240 karakter).","type":"string","maxLength":240},"topics":{"description":"Abone olunacak olay adları (1–40). Olay listesi geliştirici sitesindeki Webhooks sayfasındadır; bilinmeyen olay 400 unknown_webhook_topic döner.","minItems":1,"maxItems":40,"type":"array","items":{"type":"string","minLength":3,"maxLength":120}},"status":{"description":"ACTIVE (etkin) ya da DISABLED (durdurulmuş).","type":"string","enum":["ACTIVE","DISABLED"]},"storeId":{"description":"Yalnız bu mağazanın olaylarını gönder; null bütün mağazalara döndürür.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}}},"TestWebhookDto":{"type":"object","properties":{"topic":{"description":"Deneme olayının adı; verilmezse \"test.ping\" gönderilir.","type":"string","minLength":1,"maxLength":200},"payload":{"description":"Deneme gövdesi; verilmezse örnek veri gönderilir.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"CreateWarehouseDto":{"type":"object","properties":{"storeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Mağaza kimliği."},"code":{"type":"string","minLength":1,"maxLength":60,"description":"Depo kodu; mağazada benzersiz (1–60 karakter). Örnek: \"IST-01\"."},"name":{"type":"string","minLength":1,"maxLength":200,"description":"Depo adı."},"priority":{"description":"Sipariş dağıtım önceliği (0–9999); küçük değer önce kullanılır.","type":"integer","minimum":0,"maximum":9999},"postalCodes":{"description":"Bu deponun hizmet verdiği posta kodları (en çok 1000).","maxItems":1000,"type":"array","items":{"type":"string","minLength":1,"maxLength":16}},"isActive":{"description":"false ise depo siparişlere atanmaz.","type":"boolean"}},"required":["storeId","code","name"]},"UpsertStockDto":{"type":"object","properties":{"warehouseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Stoğun yazılacağı depo; GET /warehouses ile listelenir."},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Ürün kimliği."},"variantId":{"description":"Varyant kimliği; varyantlı üründe verilmelidir.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quantity":{"type":"integer","minimum":0,"maximum":1000000,"description":"Depodaki eldeki stok adedi; mevcut değerin yerine yazılır."},"incoming":{"description":"Yolda (gelecek) adet.","type":"integer","minimum":0,"maximum":1000000},"lowStockThreshold":{"description":"Bu depo için düşük stok eşiği.","anyOf":[{"type":"integer","minimum":0,"maximum":1000000},{"type":"null"}]}},"required":["warehouseId","productId","quantity"]},"ErrorEnvelope":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Makine okur hata kodu, ör. BAD_REQUEST, store_not_found"},"message":{"type":"string"},"correlationId":{"type":"string","description":"Destek talebinde paylaşılacak istek kimliği"},"issues":{"type":"array","description":"Doğrulama hatasında alan bazlı sorunlar","items":{"type":"object","required":["path","message","code"],"properties":{"path":{"type":"string"},"message":{"type":"string"},"code":{"type":"string"}}}},"details":{"type":"object","additionalProperties":true}}}}}},"responses":{"BadRequest":{"description":"Geçersiz gövde veya parametre","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"Unauthorized":{"description":"Kimlik bilgisi eksik, süresi dolmuş veya iptal edilmiş","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"Forbidden":{"description":"Yetki veya kapsam yetersiz","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"NotFound":{"description":"Kaynak bulunamadı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"TooManyRequests":{"description":"Hız sınırı aşıldı","headers":{"Retry-After":{"description":"Yeniden denemeden önce beklenecek saniye","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"InternalServerError":{"description":"Beklenmeyen sunucu hatası","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"security":[{"access-token":[]},{"tenant-api-key":[]}]}