{
  "openapi": "3.1.0",
  "info": {
    "title": "orchesthra mağaza API'si",
    "version": "v1",
    "description": "Mağazanın siparişleri, ürünleri, stoğu, kategorileri, müşterileri ve kuponları; olay bildirimleri. Belge: https://orchesthra.com/gelistirici"
  },
  "servers": [
    {
      "url": "https://orchesthra.com/api/v1",
      "description": "Merkezi adres: mağaza anahtardan bulunur."
    }
  ],
  "security": [
    {
      "anahtar": []
    }
  ],
  "tags": [
    {
      "name": "siparis",
      "description": "Siparişler: Siparişleri güncellenme sırasıyla çek, tek siparişi numarasıyla oku."
    },
    {
      "name": "kargo",
      "description": "Kargo ve teslim: Depo ya da kendi sisteminle siparişi kargoya ver, kargo hareketini yaz, teslim edildi işaretle, siparişe dahili not düş."
    },
    {
      "name": "urun",
      "description": "Ürünler ve fiyat: Ürünleri ve satıştaki varyantlarını SKU ile oku, varyantın fiyatını yaz."
    },
    {
      "name": "stok",
      "description": "Stok: Varyantın stoğunu mutlak değerle yaz; tek tek ya da 100 satıra kadar toplu."
    },
    {
      "name": "kategori",
      "description": "Kategoriler: Kategori ağacını ve bir kategorideki ürünleri oku."
    },
    {
      "name": "musteri",
      "description": "Müşteriler: Müşteri hesaplarını oku. Ayrı yetki ister ve her okuma mağazanın işlem günlüğüne yazılır."
    },
    {
      "name": "kupon",
      "description": "Kuponlar: Kupon kodlarını ve kurallarını oku."
    },
    {
      "name": "bildirim",
      "description": "Depo bildirim adresi: Yalnız depo (3PL) bağlantısının anahtarıyla: bildirim adresini kendin kaydet ve dene."
    }
  ],
  "paths": {
    "/siparisler": {
      "get": {
        "operationId": "get-siparisler",
        "summary": "Siparişleri listele",
        "description": "Siparişler güncellenme sırasıyla (en eski önce). Eşitleme için guncellenmeSonrasi ile son eşitleme anından sonrasını iste, sayfaları imleçle gez.\n\nMüşterinin e-postası, telefonu ve teslimat adresi (musteri, teslimat) yalnız anahtar siparis:kisisel yetkisini de taşıyorsa gelir.\n\nBaşka altyapıdan aktarılan geçmiş siparişler listede yok.\n\nTanınmayan durum değeri 422 alır; sessizce yok sayılmaz.",
        "tags": [
          "siparis"
        ],
        "x-kapsam": "siparis:oku",
        "parameters": [
          {
            "name": "sinir",
            "in": "query",
            "required": false,
            "description": "Sayfadaki kayıt sayısı, 1–100 (varsayılan 50).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "imlec",
            "in": "query",
            "required": false,
            "description": "Bir önceki yanıttaki sonrakiImlec, olduğu gibi.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "guncellenmeSonrasi",
            "in": "query",
            "required": false,
            "description": "Yalnız bu andan SONRA güncellenenler (ISO 8601, ör. 2026-11-20T00:00:00Z).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "odemeDurumu",
            "in": "query",
            "required": false,
            "description": "Ödeme durumu; virgülle birden çok (PAID,PARTIALLY_REFUNDED).",
            "schema": {
              "type": "string",
              "description": "Virgülle: PENDING, PAID, FAILED, PARTIALLY_REFUNDED, REFUNDED"
            }
          },
          {
            "name": "durum",
            "in": "query",
            "required": false,
            "description": "Sipariş durumu; virgülle birden çok (CONFIRMED,PREPARING).",
            "schema": {
              "type": "string",
              "description": "Virgülle: PAYMENT_PENDING, CONFIRMED, PREPARING, SHIPPED, DELIVERED, CANCELLED, RETURNED, REFUNDED"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Siparişleri listele",
            "content": {
              "application/json": {
                "example": {
                  "veri": [
                    {
                      "id": "cmdemo0siparis000000000001",
                      "numara": "DEMO-1001",
                      "durum": "CONFIRMED",
                      "odemeDurumu": "PAID",
                      "odemeYolu": "CARD",
                      "beklemede": false,
                      "paraBirimi": "TRY",
                      "tutarlar": {
                        "araToplam": "499.80",
                        "indirim": "0.00",
                        "kargo": "0.00",
                        "kdv": "83.30",
                        "genelToplam": "499.80",
                        "iadeEdilen": "0.00"
                      },
                      "tarihler": {
                        "olusturma": "2026-11-20T10:00:00.000Z",
                        "guncellenme": "2026-11-20T10:05:00.000Z",
                        "odeme": "2026-11-20T10:01:00.000Z",
                        "kargo": null,
                        "teslim": null
                      },
                      "kargo": {
                        "firma": "ARAS",
                        "tasiyici": null,
                        "takipNo": null,
                        "takipAdresi": null,
                        "asama": null
                      },
                      "kalemler": [
                        {
                          "sku": "DEMO-SERUM-30",
                          "barkod": "8690000000011",
                          "urunKodu": "DEMO-SERUM",
                          "ad": "Demo Serum",
                          "varyant": "30 ml",
                          "adet": 2,
                          "birimFiyat": "249.90",
                          "satirToplami": "499.80",
                          "kdvOrani": 20
                        }
                      ],
                      "musteri": {
                        "eposta": "demo-musteri@ornek.com",
                        "telefon": "05000000000"
                      },
                      "teslimat": {
                        "adSoyad": "Demo Müşteri",
                        "telefon": "05000000000",
                        "ulke": "Türkiye",
                        "il": "İstanbul",
                        "ilce": "Kadıköy",
                        "mahalle": "Demo Mahallesi",
                        "adres": "Demo Sokak No: 1",
                        "postaKodu": "34000"
                      }
                    }
                  ],
                  "sonrakiImlec": "eyJ1IjoiMjAyNi0xMS0yMFQxMDowNTowMC4wMDBaIiwiaSI6ImNtZGVtbzBzaXBhcmlzMDAwMDAwMDAwMDAxIn0"
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "422": {
            "description": "sinir-gecersiz, imlec-gecersiz, tarih-gecersiz, odeme-durumu-gecersiz, durum-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir-gecersiz",
                  "mesaj": "sinir 1 ile 100 arasında bir tamsayı olmalı."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    },
    "/siparisler/{numara}": {
      "get": {
        "operationId": "get-siparisler-numara",
        "summary": "Tek sipariş",
        "description": "Siparişi numarasıyla okur; biçim listedekiyle ve olay bildirimindekiyle aynı.",
        "tags": [
          "siparis"
        ],
        "x-kapsam": "siparis:oku",
        "parameters": [
          {
            "name": "numara",
            "in": "path",
            "required": true,
            "description": "Sipariş numarası (ör. DEMO-1001).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tek sipariş",
            "content": {
              "application/json": {
                "example": {
                  "veri": {
                    "id": "cmdemo0siparis000000000001",
                    "numara": "DEMO-1001",
                    "durum": "CONFIRMED",
                    "odemeDurumu": "PAID",
                    "odemeYolu": "CARD",
                    "beklemede": false,
                    "paraBirimi": "TRY",
                    "tutarlar": {
                      "araToplam": "499.80",
                      "indirim": "0.00",
                      "kargo": "0.00",
                      "kdv": "83.30",
                      "genelToplam": "499.80",
                      "iadeEdilen": "0.00"
                    },
                    "tarihler": {
                      "olusturma": "2026-11-20T10:00:00.000Z",
                      "guncellenme": "2026-11-20T10:05:00.000Z",
                      "odeme": "2026-11-20T10:01:00.000Z",
                      "kargo": null,
                      "teslim": null
                    },
                    "kargo": {
                      "firma": "ARAS",
                      "tasiyici": null,
                      "takipNo": null,
                      "takipAdresi": null,
                      "asama": null
                    },
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "barkod": "8690000000011",
                        "urunKodu": "DEMO-SERUM",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 2,
                        "birimFiyat": "249.90",
                        "satirToplami": "499.80",
                        "kdvOrani": 20
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok, siparis-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    },
    "/siparisler/{numara}/kargo": {
      "post": {
        "operationId": "post-siparisler-numara-kargo",
        "summary": "Kargoya ver",
        "description": "Panelin \"Kargoya ver\" işi: sipariş kargoda olur, müşteriye kargo e-postası ve SMS'i gider, fatura kesilir.\n\nAynı takip numarasıyla ikinci istek 200 ve tekrar: true alır; ikinci e-posta, olay ya da fatura olmaz.\n\nBaşka bir takip numarası 409 zaten-kargoda alır: takip numarası API'den değişmez, mağaza panelden düzeltir.\n\nİptal, iade, ödenmemiş, beklemede, açık iptal talebi olan ya da paketlere bölünmüş sipariş 409 kargoya-verilemez alır; neden alanı hangisi olduğunu söyler.",
        "tags": [
          "kargo"
        ],
        "x-kapsam": "kargo:yaz",
        "parameters": [
          {
            "name": "numara",
            "in": "path",
            "required": true,
            "description": "Sipariş numarası (ör. DEMO-1001).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "firma",
                  "takipNo"
                ],
                "properties": {
                  "firma": {
                    "type": "string",
                    "description": "Kargo firmasının kodu: aras, yurtici, ptt, hepsijet, surat, sendeo, kolaygelsin, dhl, elden, diger."
                  },
                  "takipNo": {
                    "type": "string",
                    "description": "Takip numarası: boşluksuz, en çok 64 karakter."
                  },
                  "takipAdresi": {
                    "type": "string",
                    "description": "Takip sayfasının tam adresi (http/https). Yoksa bilinen firmalarda kendimiz kurarız."
                  }
                }
              },
              "example": {
                "firma": "hepsijet",
                "takipNo": "HJDEMO1001"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Kargoya ver",
            "content": {
              "application/json": {
                "example": {
                  "veri": {
                    "numara": "DEMO-1001",
                    "durum": "SHIPPED",
                    "odemeDurumu": "PAID",
                    "beklemede": false,
                    "kargo": {
                      "firma": "OTHER",
                      "tasiyici": "hepsijet",
                      "takipNo": "HJDEMO1001",
                      "takipAdresi": "https://hepsijet.com/gonderi-takibi/HJDEMO1001",
                      "asama": "CREATED"
                    },
                    "tarihler": {
                      "kargo": "2026-11-20T13:00:00.000Z",
                      "teslim": null
                    }
                  },
                  "tekrar": false
                }
              }
            }
          },
          "400": {
            "description": "govde-okunamadi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-okunamadi",
                  "mesaj": "Gövde JSON değil ya da beklenen biçimde (nesne/dizi) değil."
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok, siparis-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "409": {
            "description": "zaten-kargoda, kargoya-verilemez",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "zaten-kargoda",
                  "mesaj": "Sipariş başka bir takip numarasıyla kargoda; takipNo alanı kayıtlı numarayı verir."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "422": {
            "description": "firma-gecersiz, takip-no-gecersiz, takip-adresi-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "firma-gecersiz",
                  "mesaj": "Tanınmayan kargo firması kodu; gecerli alanı listeyi verir."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    },
    "/siparisler/{numara}/kargo-hareketi": {
      "post": {
        "operationId": "post-siparisler-numara-kargo-hareketi",
        "summary": "Kargo hareketi yaz",
        "description": "Taşıyıcının hareketini siparişe yazar; \"dağıtımda\" ve \"teslim edilemedi\" aşamalarında müşteriye e-posta gider.\n\nTeslim bu uçtan yazılmaz: POST …/teslim kullan.\n\nAynı aşama ve zaman ikinci kez gelirse kayıt açılmaz, e-posta gitmez; yanıt tekrar: true.\n\nTakip numarası olmayan sipariş 409 kargoda-degil alır: önce POST …/kargo.",
        "tags": [
          "kargo"
        ],
        "x-kapsam": "kargo:yaz",
        "parameters": [
          {
            "name": "numara",
            "in": "path",
            "required": true,
            "description": "Sipariş numarası (ör. DEMO-1001).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "asama",
                  "zaman"
                ],
                "properties": {
                  "asama": {
                    "type": "string",
                    "enum": [
                      "PICKED_UP",
                      "IN_TRANSIT",
                      "OUT_FOR_DELIVERY",
                      "FAILED_ATTEMPT",
                      "RETURNED",
                      "RETURNED_TO_WAREHOUSE"
                    ],
                    "description": "Aşama. RETURNED_TO_WAREHOUSE gönderi depoya geri döndü demek: sipariş iade sürecine alınır, stok bir kez geri eklenir."
                  },
                  "zaman": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Hareketin anı, saat dilimiyle (2026-11-20T15:12:00+03:00). Aynı hareketi tekrar gönderirken aynı zamanla gönder."
                  },
                  "kod": {
                    "type": "string",
                    "description": "Taşıyıcının ham durum kodu, en çok 64 karakter."
                  },
                  "aciklama": {
                    "type": "string",
                    "description": "Müşterinin göreceği açıklama, en çok 200 karakter; yoksa aşamanın Türkçe adı."
                  },
                  "konum": {
                    "type": "string",
                    "description": "Müşterinin göreceği konum, en çok 120 karakter."
                  }
                }
              },
              "example": {
                "asama": "OUT_FOR_DELIVERY",
                "kod": "DAGITIMDA",
                "aciklama": "Dağıtıma çıktı",
                "konum": "Kadıköy",
                "zaman": "2026-11-21T09:12:00+03:00"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Kargo hareketi yaz",
            "content": {
              "application/json": {
                "example": {
                  "veri": {
                    "numara": "DEMO-1001",
                    "durum": "SHIPPED",
                    "odemeDurumu": "PAID",
                    "beklemede": false,
                    "kargo": {
                      "firma": "OTHER",
                      "tasiyici": "hepsijet",
                      "takipNo": "HJDEMO1001",
                      "takipAdresi": "https://hepsijet.com/gonderi-takibi/HJDEMO1001",
                      "asama": "OUT_FOR_DELIVERY"
                    },
                    "tarihler": {
                      "kargo": "2026-11-20T13:00:00.000Z",
                      "teslim": null
                    }
                  },
                  "tekrar": false,
                  "ilerledi": true,
                  "eposta": "gitti"
                }
              }
            }
          },
          "400": {
            "description": "govde-okunamadi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-okunamadi",
                  "mesaj": "Gövde JSON değil ya da beklenen biçimde (nesne/dizi) değil."
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok, siparis-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "409": {
            "description": "kargoda-degil, paketli, depoya-iade-edilemez",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "kargoda-degil",
                  "mesaj": "Siparişin takip numarası yok; önce POST …/kargo."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "422": {
            "description": "asama-gecersiz, kod-gecersiz, aciklama-gecersiz, konum-gecersiz, zaman-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "asama-gecersiz",
                  "mesaj": "Tanınmayan aşama (DELIVERED bu uçtan yazılmaz); gecerli alanı listeyi verir."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    },
    "/siparisler/{numara}/teslim": {
      "post": {
        "operationId": "post-siparisler-numara-teslim",
        "summary": "Teslim edildi",
        "description": "Panelin \"Teslim edildi\" işi: teslim tarihi yazılır, müşteriye teslim e-postası gider; kapıda ödemede ödeme alınmış sayılır.\n\nZaten teslim edilmiş sipariş 200 ve tekrar: true alır.\n\ntahsilat kapıda ödeme dışındaki siparişte yok sayılır; yanıtta uyari yazar.",
        "tags": [
          "kargo"
        ],
        "x-kapsam": "kargo:yaz",
        "parameters": [
          {
            "name": "numara",
            "in": "path",
            "required": true,
            "description": "Sipariş numarası (ör. DEMO-1001).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [],
                "properties": {
                  "tahsilat": {
                    "type": "string",
                    "enum": [
                      "NAKIT",
                      "KART"
                    ],
                    "description": "Kapıda ödemede paranın nasıl alındığı. Gövde boş da olabilir."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Teslim edildi",
            "content": {
              "application/json": {
                "example": {
                  "veri": {
                    "numara": "DEMO-1001",
                    "durum": "DELIVERED",
                    "odemeDurumu": "PAID",
                    "beklemede": false,
                    "kargo": {
                      "firma": "OTHER",
                      "tasiyici": "hepsijet",
                      "takipNo": "HJDEMO1001",
                      "takipAdresi": "https://hepsijet.com/gonderi-takibi/HJDEMO1001",
                      "asama": "DELIVERED"
                    },
                    "tarihler": {
                      "kargo": "2026-11-20T13:00:00.000Z",
                      "teslim": "2026-11-21T14:20:00.000Z"
                    }
                  },
                  "tekrar": false
                }
              }
            }
          },
          "400": {
            "description": "govde-okunamadi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-okunamadi",
                  "mesaj": "Gövde JSON değil ya da beklenen biçimde (nesne/dizi) değil."
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok, siparis-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "409": {
            "description": "tahsilat-farkli, teslim-edilemez",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "tahsilat-farkli",
                  "mesaj": "Siparişte başka bir tahsilat türü yazılı; API'den değişmez."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "422": {
            "description": "tahsilat-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "tahsilat-gecersiz",
                  "mesaj": "tahsilat NAKIT ya da KART olmalı (ya da hiç gönderilmemeli)."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    },
    "/siparisler/{numara}/not": {
      "post": {
        "operationId": "post-siparisler-numara-not",
        "summary": "Siparişe dahili not",
        "description": "Siparişin geçmişine müşterinin görmediği bir not düşer; istersen siparişi beklemeye alır.\n\nNot her zaman \"Dahili:\" önekiyle yazılır; müşteri görmez.\n\nAynı metin son 24 saatte yazıldıysa ikinci kez yazılmaz (tekrar: true).",
        "tags": [
          "kargo"
        ],
        "x-kapsam": "kargo:yaz",
        "parameters": [
          {
            "name": "numara",
            "in": "path",
            "required": true,
            "description": "Sipariş numarası (ör. DEMO-1001).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "metin"
                ],
                "properties": {
                  "metin": {
                    "type": "string",
                    "description": "Not, en çok 1000 karakter."
                  },
                  "beklet": {
                    "type": "boolean",
                    "description": "true: sipariş beklemeye alınır (kargoya verilemez). Beklemeden çıkarmak mağazanın kararı."
                  }
                }
              },
              "example": {
                "metin": "Stok Yetersiz: DEMO-SERUM-30",
                "beklet": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Siparişe dahili not",
            "content": {
              "application/json": {
                "example": {
                  "veri": {
                    "numara": "DEMO-1001",
                    "durum": "CONFIRMED",
                    "odemeDurumu": "PAID",
                    "beklemede": true,
                    "kargo": {
                      "firma": "ARAS",
                      "tasiyici": null,
                      "takipNo": null,
                      "takipAdresi": null,
                      "asama": null
                    },
                    "tarihler": {
                      "kargo": null,
                      "teslim": null
                    }
                  },
                  "tekrar": false,
                  "not": "Dahili: Depo (Demo ERP): Stok Yetersiz: DEMO-SERUM-30",
                  "bekletme": {
                    "durum": "beklemede"
                  }
                }
              }
            }
          },
          "400": {
            "description": "govde-okunamadi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-okunamadi",
                  "mesaj": "Gövde JSON değil ya da beklenen biçimde (nesne/dizi) değil."
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok, siparis-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "422": {
            "description": "metin-gecersiz, beklet-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "metin-gecersiz",
                  "mesaj": "metin zorunlu, en çok 1000 karakter."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    },
    "/urunler": {
      "get": {
        "operationId": "get-urunler",
        "summary": "Ürünleri listele",
        "description": "Ürünler ve satıştaki varyantları: SKU, barkod, fiyat, liste fiyatı, stok, ayrılan. Çok seçenekli üründe eksenler, sette içerik.\n\nArşivlenmiş varyant listede yok.\n\neksenler yalnız seçenek eksenli üründe, setTuru ve bilesenler yalnız sette var.",
        "tags": [
          "urun"
        ],
        "x-kapsam": "urun:oku",
        "parameters": [
          {
            "name": "sinir",
            "in": "query",
            "required": false,
            "description": "Sayfadaki kayıt sayısı, 1–100 (varsayılan 50).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "imlec",
            "in": "query",
            "required": false,
            "description": "Bir önceki yanıttaki sonrakiImlec, olduğu gibi.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ürünleri listele",
            "content": {
              "application/json": {
                "example": {
                  "veri": [
                    {
                      "id": "cmdemo0urun000000000000001",
                      "ad": "Demo Serum",
                      "adres": "demo-serum",
                      "durum": "PUBLISHED",
                      "set": false,
                      "hediyeCeki": false,
                      "guncellenme": "2026-11-20T09:30:00.000Z",
                      "varyantlar": [
                        {
                          "sku": "DEMO-SERUM-30",
                          "barkod": "8690000000011",
                          "ad": "30 ml",
                          "fiyat": "249.90",
                          "listeFiyati": "299.90",
                          "stok": 12,
                          "ayrilan": 1,
                          "varsayilan": true
                        },
                        {
                          "sku": "DEMO-SERUM-50",
                          "barkod": "8690000000028",
                          "ad": "50 ml",
                          "fiyat": "349.90",
                          "listeFiyati": null,
                          "stok": 4,
                          "ayrilan": 0,
                          "varsayilan": false
                        }
                      ]
                    }
                  ],
                  "sonrakiImlec": null
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "422": {
            "description": "sinir-gecersiz, imlec-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir-gecersiz",
                  "mesaj": "sinir 1 ile 100 arasında bir tamsayı olmalı."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    },
    "/varyantlar/{sku}/fiyat": {
      "patch": {
        "operationId": "patch-varyantlar-sku-fiyat",
        "summary": "Fiyat yaz",
        "description": "Varyantın satış fiyatını ve isteğe bağlı liste (üstü çizili) fiyatını yazar.",
        "tags": [
          "urun"
        ],
        "x-kapsam": "fiyat:yaz",
        "parameters": [
          {
            "name": "sku",
            "in": "path",
            "required": true,
            "description": "Varyantın stok kodu.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fiyat"
                ],
                "properties": {
                  "fiyat": {
                    "type": "string",
                    "pattern": "^\\d{1,8}(\\.\\d{1,2})?$",
                    "description": "Metin olarak, 0'dan büyük, en çok iki ondalık: \"249.90\"."
                  },
                  "listeFiyati": {
                    "type": "string",
                    "pattern": "^\\d{1,8}(\\.\\d{1,2})?$",
                    "description": "Satış fiyatından büyük olmalı; null kaldırır, gönderilmezse dokunulmaz."
                  }
                }
              },
              "example": {
                "fiyat": "249.90",
                "listeFiyati": "299.90"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Fiyat yaz",
            "content": {
              "application/json": {
                "example": {
                  "veri": {
                    "sku": "DEMO-SERUM-30",
                    "fiyat": "249.90",
                    "listeFiyati": "299.90"
                  }
                }
              }
            }
          },
          "400": {
            "description": "govde-okunamadi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-okunamadi",
                  "mesaj": "Gövde JSON değil ya da beklenen biçimde (nesne/dizi) değil."
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok, varyant-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "422": {
            "description": "fiyat-gecersiz, liste-fiyati-gecersiz, hediye-ceki",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "fiyat-gecersiz",
                  "mesaj": "fiyat metin olmalı, 0'dan büyük, en çok iki ondalık."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    },
    "/varyantlar/{sku}/stok": {
      "patch": {
        "operationId": "patch-varyantlar-sku-stok",
        "summary": "Stok yaz",
        "description": "Varyantın stoğunu mutlak değere ayarlar. Fark stok geçmişine anahtarın adıyla yazılır.\n\nAynı değer stok hareketi açmaz (degisim: 0).\n\nSet ve paketin stoğu içindekilerden hesaplanır: 422 set-stogu.",
        "tags": [
          "stok"
        ],
        "x-kapsam": "stok:yaz",
        "parameters": [
          {
            "name": "sku",
            "in": "path",
            "required": true,
            "description": "Varyantın stok kodu.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "stok"
                ],
                "properties": {
                  "stok": {
                    "type": "integer",
                    "description": "0 ile 1.000.000 arasında tamsayı."
                  }
                }
              },
              "example": {
                "stok": 12
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Stok yaz",
            "content": {
              "application/json": {
                "example": {
                  "veri": {
                    "sku": "DEMO-SERUM-30",
                    "stok": 12,
                    "degisim": -3
                  }
                }
              }
            }
          },
          "400": {
            "description": "govde-okunamadi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-okunamadi",
                  "mesaj": "Gövde JSON değil ya da beklenen biçimde (nesne/dizi) değil."
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok, varyant-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "422": {
            "description": "stok-gecersiz, set-stogu",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "stok-gecersiz",
                  "mesaj": "stok 0 ile 1.000.000 arasında bir tamsayı olmalı."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    },
    "/stok": {
      "patch": {
        "operationId": "patch-stok",
        "summary": "Toplu stok",
        "description": "Tek istekte en çok 100 varyantın stoğu. Her satır ayrı yazılır; yanıtta satır satır sonuç.\n\nBilinmeyen SKU bütün listeyi reddetmez: o satır hata, öbürleri yazılır.\n\nBütün gövde yalnız biçim yanlışsa reddedilir (dizi değil, boş, 100'den fazla, tekrar eden SKU).",
        "tags": [
          "stok"
        ],
        "x-kapsam": "stok:yaz",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "description": "[{ \"sku\": \"…\", \"stok\": 12 }, …], 1–100 satır, aynı SKU iki kez olmaz."
              },
              "example": [
                {
                  "sku": "DEMO-SERUM-30",
                  "stok": 42
                },
                {
                  "sku": "DEMO-SERUM-50",
                  "stok": 4
                },
                {
                  "sku": "DEMO-YOK",
                  "stok": 3
                }
              ]
            }
          }
        },
        "responses": {
          "200": {
            "description": "Toplu stok",
            "content": {
              "application/json": {
                "example": {
                  "veri": [
                    {
                      "sku": "DEMO-SERUM-30",
                      "durum": "guncellendi",
                      "stok": 42,
                      "degisim": 30
                    },
                    {
                      "sku": "DEMO-SERUM-50",
                      "durum": "ayni",
                      "stok": 4,
                      "degisim": 0
                    },
                    {
                      "sku": "DEMO-YOK",
                      "durum": "hata",
                      "hata": "varyant-yok",
                      "mesaj": "\"DEMO-YOK\" stok kodlu satıştaki varyant yok."
                    }
                  ],
                  "ozet": {
                    "guncellenen": 1,
                    "ayni": 1,
                    "hatali": 1
                  }
                }
              }
            }
          },
          "400": {
            "description": "govde-okunamadi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-okunamadi",
                  "mesaj": "Gövde JSON değil ya da beklenen biçimde (nesne/dizi) değil."
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok, varyant-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "422": {
            "description": "satir-sayisi, sku-gecersiz, sku-tekrar, set-stogu, stok-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "satir-sayisi",
                  "mesaj": "Toplu stokta 1 ile 100 arasında satır gönderilir."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    },
    "/kategoriler": {
      "get": {
        "operationId": "get-kategoriler",
        "summary": "Kategorileri listele",
        "description": "Bütün kategoriler, üst kategorisiyle (ust). Ağacı kendin kur: ust null olanlar en üstte.",
        "tags": [
          "kategori"
        ],
        "x-kapsam": "urun:oku",
        "parameters": [
          {
            "name": "sinir",
            "in": "query",
            "required": false,
            "description": "Sayfadaki kayıt sayısı, 1–100 (varsayılan 50).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "imlec",
            "in": "query",
            "required": false,
            "description": "Bir önceki yanıttaki sonrakiImlec, olduğu gibi.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Kategorileri listele",
            "content": {
              "application/json": {
                "example": {
                  "veri": [
                    {
                      "id": "cmdemo0kategori00000000001",
                      "ad": "Cilt bakımı",
                      "adres": "demo-cilt-bakimi",
                      "ust": null,
                      "sira": 0,
                      "aktif": true,
                      "dinamik": false,
                      "guncellenme": "2026-11-20T07:00:00.000Z"
                    },
                    {
                      "id": "cmdemo0kategori00000000002",
                      "ad": "Serumlar",
                      "adres": "demo-serumlar",
                      "ust": "cmdemo0kategori00000000001",
                      "sira": 1,
                      "aktif": true,
                      "dinamik": false,
                      "guncellenme": "2026-11-20T07:00:00.000Z"
                    }
                  ],
                  "sonrakiImlec": null
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "422": {
            "description": "sinir-gecersiz, imlec-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir-gecersiz",
                  "mesaj": "sinir 1 ile 100 arasında bir tamsayı olmalı."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    },
    "/kategoriler/{adres}/urunler": {
      "get": {
        "operationId": "get-kategoriler-adres-urunler",
        "summary": "Kategorideki ürünler",
        "description": "Kategorideki ürünlerin kimliği, adı, adresi ve durumu. Koşullu (dinamik) kategoride koşula uyan ürünler.\n\nDurumu ne olursa olsun bütün ürünler gelir; yalnız yayındakiler için durum alanına bak (PUBLISHED).",
        "tags": [
          "kategori"
        ],
        "x-kapsam": "urun:oku",
        "parameters": [
          {
            "name": "adres",
            "in": "path",
            "required": true,
            "description": "Kategorinin adresi (listedeki adres alanı).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sinir",
            "in": "query",
            "required": false,
            "description": "Sayfadaki kayıt sayısı, 1–100 (varsayılan 50).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "imlec",
            "in": "query",
            "required": false,
            "description": "Bir önceki yanıttaki sonrakiImlec, olduğu gibi.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Kategorideki ürünler",
            "content": {
              "application/json": {
                "example": {
                  "veri": [
                    {
                      "id": "cmdemo0urun000000000000001",
                      "ad": "Demo Serum",
                      "adres": "demo-serum",
                      "durum": "PUBLISHED"
                    }
                  ],
                  "sonrakiImlec": null
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok, kategori-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "422": {
            "description": "sinir-gecersiz, imlec-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir-gecersiz",
                  "mesaj": "sinir 1 ile 100 arasında bir tamsayı olmalı."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    },
    "/musteriler": {
      "get": {
        "operationId": "get-musteriler",
        "summary": "Müşterileri listele",
        "description": "Müşteri hesapları güncellenme sırasıyla: kimlik, ad, e-posta, telefon. Başka alan dönmez.\n\nAyrı yetki: musteri:oku. Mağaza bu yetkiyi anahtara ayrıca verir; sipariş okuma yetkisi müşteri listesini açmaz.\n\nKayıt döndüren her okuma mağazanın işlem günlüğüne anahtarın adıyla yazılır (kaç kayıt okunduğu, hangi alanlar).\n\nVerileri silinerek kapatılmış hesaplar listede yok.",
        "tags": [
          "musteri"
        ],
        "x-kapsam": "musteri:oku",
        "parameters": [
          {
            "name": "sinir",
            "in": "query",
            "required": false,
            "description": "Sayfadaki kayıt sayısı, 1–100 (varsayılan 50).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "imlec",
            "in": "query",
            "required": false,
            "description": "Bir önceki yanıttaki sonrakiImlec, olduğu gibi.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "guncellenmeSonrasi",
            "in": "query",
            "required": false,
            "description": "Yalnız bu andan SONRA güncellenenler (ISO 8601, ör. 2026-11-20T00:00:00Z).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "eposta",
            "in": "query",
            "required": false,
            "description": "Yalnız bu e-postanın hesabı (büyük/küçük harf fark etmez).",
            "schema": {
              "type": "string",
              "maxLength": 254
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Müşterileri listele",
            "content": {
              "application/json": {
                "example": {
                  "veri": [
                    {
                      "id": "cmdemo0musteri000000000001",
                      "ad": "Demo Müşteri",
                      "eposta": "demo-musteri@ornek.com",
                      "telefon": "05000000000",
                      "tarihler": {
                        "olusturma": "2026-11-20T08:00:00.000Z",
                        "guncellenme": "2026-11-20T08:00:00.000Z"
                      }
                    }
                  ],
                  "sonrakiImlec": null
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "422": {
            "description": "sinir-gecersiz, imlec-gecersiz, tarih-gecersiz, eposta-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir-gecersiz",
                  "mesaj": "sinir 1 ile 100 arasında bir tamsayı olmalı."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    },
    "/musteriler/{id}": {
      "get": {
        "operationId": "get-musteriler-id",
        "summary": "Tek müşteri",
        "description": "Müşteriyi kimliğiyle okur; biçim listedekiyle ve musteri.olustu bildirimindekiyle aynı.\n\nOkuma işlem günlüğüne yazılır.",
        "tags": [
          "musteri"
        ],
        "x-kapsam": "musteri:oku",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Müşterinin kimliği (listedeki id).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tek müşteri",
            "content": {
              "application/json": {
                "example": {
                  "veri": {
                    "id": "cmdemo0musteri000000000001",
                    "ad": "Demo Müşteri",
                    "eposta": "demo-musteri@ornek.com",
                    "telefon": "05000000000",
                    "tarihler": {
                      "olusturma": "2026-11-20T08:00:00.000Z",
                      "guncellenme": "2026-11-20T08:00:00.000Z"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok, musteri-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    },
    "/kuponlar": {
      "get": {
        "operationId": "get-kuponlar",
        "summary": "Kuponları listele",
        "description": "Kupon kodları ve kuralları güncellenme sırasıyla: indirim türü ve değeri, alt sınır, kullanım sınırları, geçerlilik.\n\nAyrı yetki: kupon:oku (kod listesi indirim demek).\n\nKupon API'den oluşturulmaz ve değiştirilmez.",
        "tags": [
          "kupon"
        ],
        "x-kapsam": "kupon:oku",
        "parameters": [
          {
            "name": "sinir",
            "in": "query",
            "required": false,
            "description": "Sayfadaki kayıt sayısı, 1–100 (varsayılan 50).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "imlec",
            "in": "query",
            "required": false,
            "description": "Bir önceki yanıttaki sonrakiImlec, olduğu gibi.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "guncellenmeSonrasi",
            "in": "query",
            "required": false,
            "description": "Yalnız bu andan SONRA güncellenenler (ISO 8601, ör. 2026-11-20T00:00:00Z).",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Kuponları listele",
            "content": {
              "application/json": {
                "example": {
                  "veri": [
                    {
                      "id": "cmdemo0kupon00000000000001",
                      "kod": "DEMO10",
                      "aciklama": "İlk siparişe %10",
                      "tur": "PERCENT",
                      "deger": "10.00",
                      "kapsam": "ALL",
                      "enAzSepet": "300.00",
                      "enCokIndirim": "150.00",
                      "enAzAdet": null,
                      "ucretsizKargo": false,
                      "ilkSiparis": true,
                      "uyelereOzel": false,
                      "aktif": true,
                      "kullanim": {
                        "sinir": 500,
                        "kisiBasi": 1,
                        "kullanilan": 42
                      },
                      "gecerlilik": {
                        "baslangic": "2026-11-20T00:00:00.000Z",
                        "bitis": "2026-12-31T20:59:59.000Z"
                      },
                      "parti": null,
                      "tarihler": {
                        "olusturma": "2026-11-20T06:00:00.000Z",
                        "guncellenme": "2026-11-20T11:00:00.000Z"
                      }
                    }
                  ],
                  "sonrakiImlec": null
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "422": {
            "description": "sinir-gecersiz, imlec-gecersiz, tarih-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir-gecersiz",
                  "mesaj": "sinir 1 ile 100 arasında bir tamsayı olmalı."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    },
    "/kuponlar/{kod}": {
      "get": {
        "operationId": "get-kuponlar-kod",
        "summary": "Tek kupon",
        "description": "Kuponu koduyla okur (büyük/küçük harf fark etmez).",
        "tags": [
          "kupon"
        ],
        "x-kapsam": "kupon:oku",
        "parameters": [
          {
            "name": "kod",
            "in": "path",
            "required": true,
            "description": "Kupon kodu.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tek kupon",
            "content": {
              "application/json": {
                "example": {
                  "veri": {
                    "id": "cmdemo0kupon00000000000001",
                    "kod": "DEMO10",
                    "aciklama": "İlk siparişe %10",
                    "tur": "PERCENT",
                    "deger": "10.00",
                    "kapsam": "ALL",
                    "enAzSepet": "300.00",
                    "enCokIndirim": "150.00",
                    "enAzAdet": null,
                    "ucretsizKargo": false,
                    "ilkSiparis": true,
                    "uyelereOzel": false,
                    "aktif": true,
                    "kullanim": {
                      "sinir": 500,
                      "kisiBasi": 1,
                      "kullanilan": 42
                    },
                    "gecerlilik": {
                      "baslangic": "2026-11-20T00:00:00.000Z",
                      "bitis": "2026-12-31T20:59:59.000Z"
                    },
                    "parti": null,
                    "tarihler": {
                      "olusturma": "2026-11-20T06:00:00.000Z",
                      "guncellenme": "2026-11-20T11:00:00.000Z"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok, kupon-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    },
    "/bildirim": {
      "get": {
        "operationId": "get-bildirim",
        "summary": "Bildirim adresini oku",
        "description": "Depo bağlantısının kayıtlı bildirim adresi; yoksa veri: null. İmza anahtarı dönmez.",
        "tags": [
          "bildirim"
        ],
        "x-kapsam": "siparis:oku",
        "x-yalniz-depo": true,
        "parameters": [],
        "responses": {
          "200": {
            "description": "Bildirim adresini oku",
            "content": {
              "application/json": {
                "example": {
                  "veri": {
                    "adres": "https://depo.ornek.com/orchesthra/olay",
                    "olaylar": [
                      "siparis.odendi",
                      "siparis.iptal",
                      "siparis.adres_degisti"
                    ],
                    "acik": true,
                    "kisiselVeri": true,
                    "ardisikHata": 0,
                    "sonHata": null,
                    "tarihler": {
                      "olusturma": "2026-11-20T05:00:00.000Z",
                      "guncellenme": "2026-11-20T05:00:00.000Z",
                      "sonBasari": "2026-11-20T10:06:00.000Z"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok, depo-anahtari-gerekli",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "put-bildirim",
        "summary": "Bildirim adresini kaydet",
        "description": "Depo bağlantısının tek bildirim adresini kaydeder ya da günceller. İlk kayıtta imza anahtarı BİR KEZ döner (201).\n\nAynı adres ve olaylarla ikinci kayıt 200 ve tekrar: true alır.\n\nKayıt, art arda hatalar yüzünden kapanmış adresi yeniden açar.\n\nİmza anahtarı kaybolursa DELETE ve yeniden PUT: yeni anahtar.",
        "tags": [
          "bildirim"
        ],
        "x-kapsam": "siparis:oku",
        "x-yalniz-depo": true,
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "adres",
                  "olaylar"
                ],
                "properties": {
                  "adres": {
                    "type": "string",
                    "description": "https:// ile başlayan tam adres, en çok 2048 karakter; yerel ve özel ağ adresi olmaz."
                  },
                  "olaylar": {
                    "type": "array",
                    "items": {},
                    "description": "Depo bağlantısının olaylarından en az biri (stok.degisti yok: stoğu depo yazıyor)."
                  }
                }
              },
              "example": {
                "adres": "https://depo.ornek.com/orchesthra/olay",
                "olaylar": [
                  "siparis.odendi",
                  "siparis.iptal",
                  "siparis.adres_degisti"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Bildirim adresini kaydet",
            "content": {
              "application/json": {
                "example": {
                  "veri": {
                    "adres": "https://depo.ornek.com/orchesthra/olay",
                    "olaylar": [
                      "siparis.odendi",
                      "siparis.iptal",
                      "siparis.adres_degisti"
                    ],
                    "acik": true,
                    "kisiselVeri": true,
                    "ardisikHata": 0,
                    "sonHata": null,
                    "tarihler": {
                      "olusturma": "2026-11-20T05:00:00.000Z",
                      "guncellenme": "2026-11-20T05:00:00.000Z",
                      "sonBasari": null
                    }
                  },
                  "gizliAnahtar": "whsec_DEMO000000000000000000000000",
                  "yeni": true,
                  "tekrar": false
                }
              }
            }
          },
          "400": {
            "description": "govde-okunamadi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-okunamadi",
                  "mesaj": "Gövde JSON değil ya da beklenen biçimde (nesne/dizi) değil."
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok, depo-anahtari-gerekli",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "422": {
            "description": "adres-gecersiz, olay-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "adres-gecersiz",
                  "mesaj": "Bildirim adresi https olmalı; yerel ya da özel ağ adresi olmaz."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "delete-bildirim",
        "summary": "Bildirim adresini sil",
        "description": "Adresi ve sıradaki bildirimlerini siler.",
        "tags": [
          "bildirim"
        ],
        "x-kapsam": "siparis:oku",
        "x-yalniz-depo": true,
        "parameters": [],
        "responses": {
          "200": {
            "description": "Bildirim adresini sil",
            "content": {
              "application/json": {
                "example": {
                  "silindi": true,
                  "tekrar": false
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok, depo-anahtari-gerekli",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    },
    "/bildirim/deneme": {
      "post": {
        "operationId": "post-bildirim-deneme",
        "summary": "Deneme bildirimi",
        "description": "Kayıtlı adrese gerçek bildirimle aynı imzayla bir deneme gönderir (olay adı deneme) ve alıcının cevabını döndürür.\n\nDakikada en çok 10 deneme; denemeler adresin hata sayacına girmez.",
        "tags": [
          "bildirim"
        ],
        "x-kapsam": "siparis:oku",
        "x-yalniz-depo": true,
        "parameters": [],
        "responses": {
          "200": {
            "description": "Deneme bildirimi",
            "content": {
              "application/json": {
                "example": {
                  "veri": {
                    "teslim": true,
                    "kod": 204
                  }
                }
              }
            }
          },
          "401": {
            "description": "anahtar-yok, anahtar-gecersiz",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "anahtar-yok",
                  "mesaj": "Authorization: Bearer ork_… başlığı yok ya da biçimi yanlış."
                }
              }
            }
          },
          "403": {
            "description": "paketinizde-yok, kapsam-yok, depo-anahtari-gerekli",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "paketinizde-yok",
                  "mesaj": "Mağazanın paketinde Gelişmiş entegrasyon yok (depo bağlantısının anahtarı her pakette geçer)."
                }
              }
            }
          },
          "404": {
            "description": "marka-yok, bildirim-yok",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "marka-yok",
                  "mesaj": "Adres bir mağazaya ait değil."
                }
              }
            }
          },
          "413": {
            "description": "govde-buyuk",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "govde-buyuk",
                  "mesaj": "Gövde 1 MB'tan büyük."
                }
              }
            }
          },
          "429": {
            "description": "sinir",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "sinir",
                  "mesaj": "Dakikalık istek sınırı aşıldı; Retry-After başlığındaki saniye kadar bekle."
                }
              }
            }
          },
          "502": {
            "description": "magaza-sunucusu-yanit-vermedi",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yanit-vermedi",
                  "mesaj": "Mağazanın sunucusu 30 saniyede cevap vermedi; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          },
          "503": {
            "description": "magaza-sunucusu-yok, gecici-hata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "hata",
                    "mesaj"
                  ],
                  "properties": {
                    "hata": {
                      "type": "string",
                      "description": "Kısa hata kodu"
                    },
                    "mesaj": {
                      "type": "string",
                      "description": "Türkçe açıklama"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "hata": "magaza-sunucusu-yok",
                  "mesaj": "Mağazanın sunucusuna şu an ulaşılamıyor; Retry-After kadar sonra yeniden dene."
                }
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {
    "siparis.olustu": {
      "post": {
        "summary": "Sipariş oluştu",
        "description": "Sitede sipariş oluştu (ödeme beklenirken de). Sipariş başına bir kez.",
        "tags": [
          "olay-siparis"
        ],
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Olay",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Kimlik",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Zaman",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Imza",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "olay": "siparis.olustu",
                "kimlik": "siparis.olustu:cmdemo0siparis000000000001",
                "zaman": "2026-11-20T10:05:02.000Z",
                "marka": "demo",
                "veri": {
                  "siparis": {
                    "id": "cmdemo0siparis000000000001",
                    "numara": "DEMO-1001",
                    "durum": "CONFIRMED",
                    "odemeDurumu": "PAID",
                    "odemeYolu": "CARD",
                    "beklemede": false,
                    "paraBirimi": "TRY",
                    "tutarlar": {
                      "araToplam": "499.80",
                      "indirim": "0.00",
                      "kargo": "0.00",
                      "kdv": "83.30",
                      "genelToplam": "499.80",
                      "iadeEdilen": "0.00"
                    },
                    "tarihler": {
                      "olusturma": "2026-11-20T10:00:00.000Z",
                      "guncellenme": "2026-11-20T10:05:00.000Z",
                      "odeme": "2026-11-20T10:01:00.000Z",
                      "kargo": null,
                      "teslim": null
                    },
                    "kargo": {
                      "firma": "ARAS",
                      "tasiyici": null,
                      "takipNo": null,
                      "takipAdresi": null,
                      "asama": null
                    },
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "barkod": "8690000000011",
                        "urunKodu": "DEMO-SERUM",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 2,
                        "birimFiyat": "249.90",
                        "satirToplami": "499.80",
                        "kdvOrani": 20
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Teslim edildi. Başka her yanıt yeniden denenir."
          }
        }
      }
    },
    "siparis.odendi": {
      "post": {
        "summary": "Ödeme alındı",
        "description": "Siparişin ödemesi ilk kez onaylandı. Sipariş başına bir kez.",
        "tags": [
          "olay-siparis"
        ],
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Olay",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Kimlik",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Zaman",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Imza",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "olay": "siparis.odendi",
                "kimlik": "siparis.odendi:cmdemo0siparis000000000001",
                "zaman": "2026-11-20T10:05:02.000Z",
                "marka": "demo",
                "veri": {
                  "siparis": {
                    "id": "cmdemo0siparis000000000001",
                    "numara": "DEMO-1001",
                    "durum": "CONFIRMED",
                    "odemeDurumu": "PAID",
                    "odemeYolu": "CARD",
                    "beklemede": false,
                    "paraBirimi": "TRY",
                    "tutarlar": {
                      "araToplam": "499.80",
                      "indirim": "0.00",
                      "kargo": "0.00",
                      "kdv": "83.30",
                      "genelToplam": "499.80",
                      "iadeEdilen": "0.00"
                    },
                    "tarihler": {
                      "olusturma": "2026-11-20T10:00:00.000Z",
                      "guncellenme": "2026-11-20T10:05:00.000Z",
                      "odeme": "2026-11-20T10:01:00.000Z",
                      "kargo": null,
                      "teslim": null
                    },
                    "kargo": {
                      "firma": "ARAS",
                      "tasiyici": null,
                      "takipNo": null,
                      "takipAdresi": null,
                      "asama": null
                    },
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "barkod": "8690000000011",
                        "urunKodu": "DEMO-SERUM",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 2,
                        "birimFiyat": "249.90",
                        "satirToplami": "499.80",
                        "kdvOrani": 20
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Teslim edildi. Başka her yanıt yeniden denenir."
          }
        }
      }
    },
    "siparis.guncellendi": {
      "post": {
        "summary": "Sipariş ürünleri panelden düzenlendi",
        "description": "Siparişin ürünleri panelden düzenlendi; gövde siparişin düzenleme sonrası hâli. Her düzenleme ayrı olay.",
        "tags": [
          "olay-siparis"
        ],
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Olay",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Kimlik",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Zaman",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Imza",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "olay": "siparis.guncellendi",
                "kimlik": "siparis.guncellendi:cmdemo0siparis000000000001:2026-11-20T10:05:02.000Z",
                "zaman": "2026-11-20T10:05:02.000Z",
                "marka": "demo",
                "veri": {
                  "siparis": {
                    "id": "cmdemo0siparis000000000001",
                    "numara": "DEMO-1001",
                    "durum": "CONFIRMED",
                    "odemeDurumu": "PAID",
                    "odemeYolu": "CARD",
                    "beklemede": false,
                    "paraBirimi": "TRY",
                    "tutarlar": {
                      "araToplam": "499.80",
                      "indirim": "0.00",
                      "kargo": "0.00",
                      "kdv": "83.30",
                      "genelToplam": "499.80",
                      "iadeEdilen": "0.00"
                    },
                    "tarihler": {
                      "olusturma": "2026-11-20T10:00:00.000Z",
                      "guncellenme": "2026-11-20T10:05:00.000Z",
                      "odeme": "2026-11-20T10:01:00.000Z",
                      "kargo": null,
                      "teslim": null
                    },
                    "kargo": {
                      "firma": "ARAS",
                      "tasiyici": null,
                      "takipNo": null,
                      "takipAdresi": null,
                      "asama": null
                    },
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "barkod": "8690000000011",
                        "urunKodu": "DEMO-SERUM",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 2,
                        "birimFiyat": "249.90",
                        "satirToplami": "499.80",
                        "kdvOrani": 20
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Teslim edildi. Başka her yanıt yeniden denenir."
          }
        }
      }
    },
    "siparis.adres_degisti": {
      "post": {
        "summary": "Teslimat adresi değişti",
        "description": "Teslimat adresi panelden düzeltildi; veri.degisenAlanlar hangi alanların değiştiğini söyler. Her düzeltme ayrı olay.",
        "tags": [
          "olay-siparis"
        ],
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Olay",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Kimlik",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Zaman",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Imza",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "olay": "siparis.adres_degisti",
                "kimlik": "siparis.adres_degisti:cmdemo0siparis000000000001:2026-11-20T10:05:02.000Z",
                "zaman": "2026-11-20T10:05:02.000Z",
                "marka": "demo",
                "veri": {
                  "siparis": {
                    "id": "cmdemo0siparis000000000001",
                    "numara": "DEMO-1001",
                    "durum": "CONFIRMED",
                    "odemeDurumu": "PAID",
                    "odemeYolu": "CARD",
                    "beklemede": false,
                    "paraBirimi": "TRY",
                    "tutarlar": {
                      "araToplam": "499.80",
                      "indirim": "0.00",
                      "kargo": "0.00",
                      "kdv": "83.30",
                      "genelToplam": "499.80",
                      "iadeEdilen": "0.00"
                    },
                    "tarihler": {
                      "olusturma": "2026-11-20T10:00:00.000Z",
                      "guncellenme": "2026-11-20T10:05:00.000Z",
                      "odeme": "2026-11-20T10:01:00.000Z",
                      "kargo": null,
                      "teslim": null
                    },
                    "kargo": {
                      "firma": "ARAS",
                      "tasiyici": null,
                      "takipNo": null,
                      "takipAdresi": null,
                      "asama": null
                    },
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "barkod": "8690000000011",
                        "urunKodu": "DEMO-SERUM",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 2,
                        "birimFiyat": "249.90",
                        "satirToplami": "499.80",
                        "kdvOrani": 20
                      }
                    ]
                  },
                  "degisenAlanlar": [
                    "il",
                    "adres"
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Teslim edildi. Başka her yanıt yeniden denenir."
          }
        }
      }
    },
    "siparis.beklemede": {
      "post": {
        "summary": "Sipariş beklemeye alındı",
        "description": "Sipariş beklemeye ya da risk incelemesine alındı: kargoya verme. Her bekletme ayrı olay.",
        "tags": [
          "olay-siparis"
        ],
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Olay",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Kimlik",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Zaman",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Imza",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "olay": "siparis.beklemede",
                "kimlik": "siparis.beklemede:cmdemo0siparis000000000001:2026-11-20T10:05:02.000Z",
                "zaman": "2026-11-20T10:05:02.000Z",
                "marka": "demo",
                "veri": {
                  "siparis": {
                    "id": "cmdemo0siparis000000000001",
                    "numara": "DEMO-1001",
                    "durum": "CONFIRMED",
                    "odemeDurumu": "PAID",
                    "odemeYolu": "CARD",
                    "beklemede": false,
                    "paraBirimi": "TRY",
                    "tutarlar": {
                      "araToplam": "499.80",
                      "indirim": "0.00",
                      "kargo": "0.00",
                      "kdv": "83.30",
                      "genelToplam": "499.80",
                      "iadeEdilen": "0.00"
                    },
                    "tarihler": {
                      "olusturma": "2026-11-20T10:00:00.000Z",
                      "guncellenme": "2026-11-20T10:05:00.000Z",
                      "odeme": "2026-11-20T10:01:00.000Z",
                      "kargo": null,
                      "teslim": null
                    },
                    "kargo": {
                      "firma": "ARAS",
                      "tasiyici": null,
                      "takipNo": null,
                      "takipAdresi": null,
                      "asama": null
                    },
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "barkod": "8690000000011",
                        "urunKodu": "DEMO-SERUM",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 2,
                        "birimFiyat": "249.90",
                        "satirToplami": "499.80",
                        "kdvOrani": 20
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Teslim edildi. Başka her yanıt yeniden denenir."
          }
        }
      }
    },
    "siparis.beklemeden_cikti": {
      "post": {
        "summary": "Sipariş beklemeden çıkarıldı",
        "description": "Sipariş beklemeden çıkarıldı. Her çıkarma ayrı olay.",
        "tags": [
          "olay-siparis"
        ],
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Olay",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Kimlik",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Zaman",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Imza",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "olay": "siparis.beklemeden_cikti",
                "kimlik": "siparis.beklemeden_cikti:cmdemo0siparis000000000001:2026-11-20T10:05:02.000Z",
                "zaman": "2026-11-20T10:05:02.000Z",
                "marka": "demo",
                "veri": {
                  "siparis": {
                    "id": "cmdemo0siparis000000000001",
                    "numara": "DEMO-1001",
                    "durum": "CONFIRMED",
                    "odemeDurumu": "PAID",
                    "odemeYolu": "CARD",
                    "beklemede": false,
                    "paraBirimi": "TRY",
                    "tutarlar": {
                      "araToplam": "499.80",
                      "indirim": "0.00",
                      "kargo": "0.00",
                      "kdv": "83.30",
                      "genelToplam": "499.80",
                      "iadeEdilen": "0.00"
                    },
                    "tarihler": {
                      "olusturma": "2026-11-20T10:00:00.000Z",
                      "guncellenme": "2026-11-20T10:05:00.000Z",
                      "odeme": "2026-11-20T10:01:00.000Z",
                      "kargo": null,
                      "teslim": null
                    },
                    "kargo": {
                      "firma": "ARAS",
                      "tasiyici": null,
                      "takipNo": null,
                      "takipAdresi": null,
                      "asama": null
                    },
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "barkod": "8690000000011",
                        "urunKodu": "DEMO-SERUM",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 2,
                        "birimFiyat": "249.90",
                        "satirToplami": "499.80",
                        "kdvOrani": 20
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Teslim edildi. Başka her yanıt yeniden denenir."
          }
        }
      }
    },
    "siparis.iptal": {
      "post": {
        "summary": "Sipariş iptal edildi",
        "description": "Sipariş iptal edildi (müşteri ya da panel). Sipariş başına bir kez.",
        "tags": [
          "olay-siparis"
        ],
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Olay",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Kimlik",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Zaman",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Imza",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "olay": "siparis.iptal",
                "kimlik": "siparis.iptal:cmdemo0siparis000000000001",
                "zaman": "2026-11-20T10:05:02.000Z",
                "marka": "demo",
                "veri": {
                  "siparis": {
                    "id": "cmdemo0siparis000000000001",
                    "numara": "DEMO-1001",
                    "durum": "CONFIRMED",
                    "odemeDurumu": "PAID",
                    "odemeYolu": "CARD",
                    "beklemede": false,
                    "paraBirimi": "TRY",
                    "tutarlar": {
                      "araToplam": "499.80",
                      "indirim": "0.00",
                      "kargo": "0.00",
                      "kdv": "83.30",
                      "genelToplam": "499.80",
                      "iadeEdilen": "0.00"
                    },
                    "tarihler": {
                      "olusturma": "2026-11-20T10:00:00.000Z",
                      "guncellenme": "2026-11-20T10:05:00.000Z",
                      "odeme": "2026-11-20T10:01:00.000Z",
                      "kargo": null,
                      "teslim": null
                    },
                    "kargo": {
                      "firma": "ARAS",
                      "tasiyici": null,
                      "takipNo": null,
                      "takipAdresi": null,
                      "asama": null
                    },
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "barkod": "8690000000011",
                        "urunKodu": "DEMO-SERUM",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 2,
                        "birimFiyat": "249.90",
                        "satirToplami": "499.80",
                        "kdvOrani": 20
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Teslim edildi. Başka her yanıt yeniden denenir."
          }
        }
      }
    },
    "siparis.kargolandi": {
      "post": {
        "summary": "Kargoya verildi",
        "description": "Sipariş kargoya verildi. Sipariş başına bir kez.",
        "tags": [
          "olay-siparis"
        ],
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Olay",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Kimlik",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Zaman",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Imza",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "olay": "siparis.kargolandi",
                "kimlik": "siparis.kargolandi:cmdemo0siparis000000000001",
                "zaman": "2026-11-20T10:05:02.000Z",
                "marka": "demo",
                "veri": {
                  "siparis": {
                    "id": "cmdemo0siparis000000000001",
                    "numara": "DEMO-1001",
                    "durum": "CONFIRMED",
                    "odemeDurumu": "PAID",
                    "odemeYolu": "CARD",
                    "beklemede": false,
                    "paraBirimi": "TRY",
                    "tutarlar": {
                      "araToplam": "499.80",
                      "indirim": "0.00",
                      "kargo": "0.00",
                      "kdv": "83.30",
                      "genelToplam": "499.80",
                      "iadeEdilen": "0.00"
                    },
                    "tarihler": {
                      "olusturma": "2026-11-20T10:00:00.000Z",
                      "guncellenme": "2026-11-20T10:05:00.000Z",
                      "odeme": "2026-11-20T10:01:00.000Z",
                      "kargo": null,
                      "teslim": null
                    },
                    "kargo": {
                      "firma": "ARAS",
                      "tasiyici": null,
                      "takipNo": null,
                      "takipAdresi": null,
                      "asama": null
                    },
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "barkod": "8690000000011",
                        "urunKodu": "DEMO-SERUM",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 2,
                        "birimFiyat": "249.90",
                        "satirToplami": "499.80",
                        "kdvOrani": 20
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Teslim edildi. Başka her yanıt yeniden denenir."
          }
        }
      }
    },
    "siparis.teslim": {
      "post": {
        "summary": "Teslim edildi",
        "description": "Sipariş teslim edildi. Sipariş başına bir kez.",
        "tags": [
          "olay-siparis"
        ],
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Olay",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Kimlik",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Zaman",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Imza",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "olay": "siparis.teslim",
                "kimlik": "siparis.teslim:cmdemo0siparis000000000001",
                "zaman": "2026-11-20T10:05:02.000Z",
                "marka": "demo",
                "veri": {
                  "siparis": {
                    "id": "cmdemo0siparis000000000001",
                    "numara": "DEMO-1001",
                    "durum": "CONFIRMED",
                    "odemeDurumu": "PAID",
                    "odemeYolu": "CARD",
                    "beklemede": false,
                    "paraBirimi": "TRY",
                    "tutarlar": {
                      "araToplam": "499.80",
                      "indirim": "0.00",
                      "kargo": "0.00",
                      "kdv": "83.30",
                      "genelToplam": "499.80",
                      "iadeEdilen": "0.00"
                    },
                    "tarihler": {
                      "olusturma": "2026-11-20T10:00:00.000Z",
                      "guncellenme": "2026-11-20T10:05:00.000Z",
                      "odeme": "2026-11-20T10:01:00.000Z",
                      "kargo": null,
                      "teslim": null
                    },
                    "kargo": {
                      "firma": "ARAS",
                      "tasiyici": null,
                      "takipNo": null,
                      "takipAdresi": null,
                      "asama": null
                    },
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "barkod": "8690000000011",
                        "urunKodu": "DEMO-SERUM",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 2,
                        "birimFiyat": "249.90",
                        "satirToplami": "499.80",
                        "kdvOrani": 20
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Teslim edildi. Başka her yanıt yeniden denenir."
          }
        }
      }
    },
    "siparis.iade_edildi": {
      "post": {
        "summary": "Para iadesi yapıldı",
        "description": "Siparişin parası iade edildi (tamamı, bir kısmı ya da pazaryerinde iptal); veri.iade türü ve tutarı söyler. Her para iadesi ayrı olay.",
        "tags": [
          "olay-iade"
        ],
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Olay",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Kimlik",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Zaman",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Imza",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "olay": "siparis.iade_edildi",
                "kimlik": "siparis.iade_edildi:cmdemo0siparis000000000001:cmdemo0paraiadesi000000001",
                "zaman": "2026-11-20T10:05:02.000Z",
                "marka": "demo",
                "veri": {
                  "siparis": {
                    "id": "cmdemo0siparis000000000001",
                    "numara": "DEMO-1001",
                    "durum": "CONFIRMED",
                    "odemeDurumu": "PARTIALLY_REFUNDED",
                    "odemeYolu": "CARD",
                    "beklemede": false,
                    "paraBirimi": "TRY",
                    "tutarlar": {
                      "araToplam": "499.80",
                      "indirim": "0.00",
                      "kargo": "0.00",
                      "kdv": "83.30",
                      "genelToplam": "499.80",
                      "iadeEdilen": "249.90"
                    },
                    "tarihler": {
                      "olusturma": "2026-11-20T10:00:00.000Z",
                      "guncellenme": "2026-11-20T10:05:00.000Z",
                      "odeme": "2026-11-20T10:01:00.000Z",
                      "kargo": null,
                      "teslim": null
                    },
                    "kargo": {
                      "firma": "ARAS",
                      "tasiyici": null,
                      "takipNo": null,
                      "takipAdresi": null,
                      "asama": null
                    },
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "barkod": "8690000000011",
                        "urunKodu": "DEMO-SERUM",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 2,
                        "birimFiyat": "249.90",
                        "satirToplami": "499.80",
                        "kdvOrani": 20
                      }
                    ]
                  },
                  "iade": {
                    "tur": "KISMI",
                    "tutar": "249.90",
                    "zaman": "2026-11-25T10:00:00.000Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Teslim edildi. Başka her yanıt yeniden denenir."
          }
        }
      }
    },
    "iade.olustu": {
      "post": {
        "summary": "İade talebi açıldı",
        "description": "Müşteri iade talebi açtı. Sipariş başına bir kez.",
        "tags": [
          "olay-iade"
        ],
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Olay",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Kimlik",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Zaman",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Imza",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "olay": "iade.olustu",
                "kimlik": "iade.olustu:cmdemo0siparis000000000001",
                "zaman": "2026-11-20T10:05:02.000Z",
                "marka": "demo",
                "veri": {
                  "siparis": {
                    "id": "cmdemo0siparis000000000001",
                    "numara": "DEMO-1001",
                    "durum": "CONFIRMED",
                    "odemeDurumu": "PAID",
                    "odemeYolu": "CARD",
                    "beklemede": false,
                    "paraBirimi": "TRY",
                    "tutarlar": {
                      "araToplam": "499.80",
                      "indirim": "0.00",
                      "kargo": "0.00",
                      "kdv": "83.30",
                      "genelToplam": "499.80",
                      "iadeEdilen": "0.00"
                    },
                    "tarihler": {
                      "olusturma": "2026-11-20T10:00:00.000Z",
                      "guncellenme": "2026-11-20T10:05:00.000Z",
                      "odeme": "2026-11-20T10:01:00.000Z",
                      "kargo": null,
                      "teslim": null
                    },
                    "kargo": {
                      "firma": "ARAS",
                      "tasiyici": null,
                      "takipNo": null,
                      "takipAdresi": null,
                      "asama": null
                    },
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "barkod": "8690000000011",
                        "urunKodu": "DEMO-SERUM",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 2,
                        "birimFiyat": "249.90",
                        "satirToplami": "499.80",
                        "kdvOrani": 20
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Teslim edildi. Başka her yanıt yeniden denenir."
          }
        }
      }
    },
    "iade.onaylandi": {
      "post": {
        "summary": "İade talebi onaylandı",
        "description": "İade ya da değişim talebi panelden onaylandı; veri.iade talebi anlatır. Talep başına bir kez.",
        "tags": [
          "olay-iade"
        ],
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Olay",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Kimlik",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Zaman",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Imza",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "olay": "iade.onaylandi",
                "kimlik": "iade.onaylandi:cmdemo0siparis000000000001:cmdemo0iade000000000000001",
                "zaman": "2026-11-20T10:05:02.000Z",
                "marka": "demo",
                "veri": {
                  "siparis": {
                    "id": "cmdemo0siparis000000000001",
                    "numara": "DEMO-1001",
                    "durum": "CONFIRMED",
                    "odemeDurumu": "PAID",
                    "odemeYolu": "CARD",
                    "beklemede": false,
                    "paraBirimi": "TRY",
                    "tutarlar": {
                      "araToplam": "499.80",
                      "indirim": "0.00",
                      "kargo": "0.00",
                      "kdv": "83.30",
                      "genelToplam": "499.80",
                      "iadeEdilen": "0.00"
                    },
                    "tarihler": {
                      "olusturma": "2026-11-20T10:00:00.000Z",
                      "guncellenme": "2026-11-20T10:05:00.000Z",
                      "odeme": "2026-11-20T10:01:00.000Z",
                      "kargo": null,
                      "teslim": null
                    },
                    "kargo": {
                      "firma": "ARAS",
                      "tasiyici": null,
                      "takipNo": null,
                      "takipAdresi": null,
                      "asama": null
                    },
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "barkod": "8690000000011",
                        "urunKodu": "DEMO-SERUM",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 2,
                        "birimFiyat": "249.90",
                        "satirToplami": "499.80",
                        "kdvOrani": 20
                      }
                    ]
                  },
                  "iade": {
                    "id": "cmdemo0iade000000000000001",
                    "durum": "APPROVED",
                    "tur": "IADE",
                    "neden": "Beden ya da ürün uymadı",
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 1
                      }
                    ],
                    "tarihler": {
                      "olusturma": "2026-11-24T09:00:00.000Z",
                      "sonuclanma": "2026-11-24T12:00:00.000Z"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Teslim edildi. Başka her yanıt yeniden denenir."
          }
        }
      }
    },
    "iade.reddedildi": {
      "post": {
        "summary": "İade talebi reddedildi",
        "description": "İade ya da değişim talebi panelden reddedildi. Talep başına bir kez.",
        "tags": [
          "olay-iade"
        ],
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Olay",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Kimlik",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Zaman",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Imza",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "olay": "iade.reddedildi",
                "kimlik": "iade.reddedildi:cmdemo0siparis000000000001:cmdemo0iade000000000000001",
                "zaman": "2026-11-20T10:05:02.000Z",
                "marka": "demo",
                "veri": {
                  "siparis": {
                    "id": "cmdemo0siparis000000000001",
                    "numara": "DEMO-1001",
                    "durum": "CONFIRMED",
                    "odemeDurumu": "PAID",
                    "odemeYolu": "CARD",
                    "beklemede": false,
                    "paraBirimi": "TRY",
                    "tutarlar": {
                      "araToplam": "499.80",
                      "indirim": "0.00",
                      "kargo": "0.00",
                      "kdv": "83.30",
                      "genelToplam": "499.80",
                      "iadeEdilen": "0.00"
                    },
                    "tarihler": {
                      "olusturma": "2026-11-20T10:00:00.000Z",
                      "guncellenme": "2026-11-20T10:05:00.000Z",
                      "odeme": "2026-11-20T10:01:00.000Z",
                      "kargo": null,
                      "teslim": null
                    },
                    "kargo": {
                      "firma": "ARAS",
                      "tasiyici": null,
                      "takipNo": null,
                      "takipAdresi": null,
                      "asama": null
                    },
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "barkod": "8690000000011",
                        "urunKodu": "DEMO-SERUM",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 2,
                        "birimFiyat": "249.90",
                        "satirToplami": "499.80",
                        "kdvOrani": 20
                      }
                    ]
                  },
                  "iade": {
                    "id": "cmdemo0iade000000000000001",
                    "durum": "REJECTED",
                    "tur": "IADE",
                    "neden": "Beden ya da ürün uymadı",
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 1
                      }
                    ],
                    "tarihler": {
                      "olusturma": "2026-11-24T09:00:00.000Z",
                      "sonuclanma": "2026-11-24T12:00:00.000Z"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Teslim edildi. Başka her yanıt yeniden denenir."
          }
        }
      }
    },
    "iade.tamamlandi": {
      "post": {
        "summary": "İade talebi tamamlandı",
        "description": "İade talebi panelden tamamlandı (ürün geldi, para iadesi yapıldı). Talep başına bir kez.",
        "tags": [
          "olay-iade"
        ],
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Olay",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Kimlik",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Zaman",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Imza",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "olay": "iade.tamamlandi",
                "kimlik": "iade.tamamlandi:cmdemo0siparis000000000001:cmdemo0iade000000000000001",
                "zaman": "2026-11-20T10:05:02.000Z",
                "marka": "demo",
                "veri": {
                  "siparis": {
                    "id": "cmdemo0siparis000000000001",
                    "numara": "DEMO-1001",
                    "durum": "CONFIRMED",
                    "odemeDurumu": "PAID",
                    "odemeYolu": "CARD",
                    "beklemede": false,
                    "paraBirimi": "TRY",
                    "tutarlar": {
                      "araToplam": "499.80",
                      "indirim": "0.00",
                      "kargo": "0.00",
                      "kdv": "83.30",
                      "genelToplam": "499.80",
                      "iadeEdilen": "0.00"
                    },
                    "tarihler": {
                      "olusturma": "2026-11-20T10:00:00.000Z",
                      "guncellenme": "2026-11-20T10:05:00.000Z",
                      "odeme": "2026-11-20T10:01:00.000Z",
                      "kargo": null,
                      "teslim": null
                    },
                    "kargo": {
                      "firma": "ARAS",
                      "tasiyici": null,
                      "takipNo": null,
                      "takipAdresi": null,
                      "asama": null
                    },
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "barkod": "8690000000011",
                        "urunKodu": "DEMO-SERUM",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 2,
                        "birimFiyat": "249.90",
                        "satirToplami": "499.80",
                        "kdvOrani": 20
                      }
                    ]
                  },
                  "iade": {
                    "id": "cmdemo0iade000000000000001",
                    "durum": "COMPLETED",
                    "tur": "IADE",
                    "neden": "Beden ya da ürün uymadı",
                    "kalemler": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "ad": "Demo Serum",
                        "varyant": "30 ml",
                        "adet": 1
                      }
                    ],
                    "tarihler": {
                      "olusturma": "2026-11-24T09:00:00.000Z",
                      "sonuclanma": "2026-11-24T12:00:00.000Z"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Teslim edildi. Başka her yanıt yeniden denenir."
          }
        }
      }
    },
    "stok.degisti": {
      "post": {
        "summary": "Stok değişti",
        "description": "Varyantın stoğu değişti (satış, iade, sayım, mal kabul, panel, API). Bir turdaki hareketler tek bildirimde, varyantın son durumuyla; 1–3 dakika gecikmeli. Varyantın son hareketi başına bir kez.",
        "tags": [
          "olay-urun"
        ],
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Olay",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Kimlik",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Zaman",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Imza",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "olay": "stok.degisti",
                "kimlik": "stok.degisti:cmdemo0varyant000000000001:cmdemo0stokhareketi0000001",
                "zaman": "2026-11-20T10:05:02.000Z",
                "marka": "demo",
                "veri": {
                  "varyant": {
                    "sku": "DEMO-SERUM-30",
                    "barkod": "8690000000011",
                    "stok": 11,
                    "ayrilan": 1,
                    "satilabilir": 10,
                    "arsivde": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Teslim edildi. Başka her yanıt yeniden denenir."
          }
        }
      }
    },
    "urun.degisti": {
      "post": {
        "summary": "Ürün eklendi ya da değişti",
        "description": "Ürün eklendi ya da değişti (ad, durum, varyant, fiyat). Gövde GET /urunler'deki ürünün güncel hâli; 1–3 dakika gecikmeli. Ürünün her değişikliği ayrı olay (aynı turdaki değişiklikler birleşir).",
        "tags": [
          "olay-urun"
        ],
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Olay",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Kimlik",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Zaman",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Imza",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "olay": "urun.degisti",
                "kimlik": "urun.degisti:cmdemo0urun000000000000001:1795167000000",
                "zaman": "2026-11-20T10:05:02.000Z",
                "marka": "demo",
                "veri": {
                  "urun": {
                    "id": "cmdemo0urun000000000000001",
                    "ad": "Demo Serum",
                    "adres": "demo-serum",
                    "durum": "PUBLISHED",
                    "set": false,
                    "hediyeCeki": false,
                    "guncellenme": "2026-11-20T09:30:00.000Z",
                    "varyantlar": [
                      {
                        "sku": "DEMO-SERUM-30",
                        "barkod": "8690000000011",
                        "ad": "30 ml",
                        "fiyat": "249.90",
                        "listeFiyati": "299.90",
                        "stok": 12,
                        "ayrilan": 1,
                        "varsayilan": true
                      },
                      {
                        "sku": "DEMO-SERUM-50",
                        "barkod": "8690000000028",
                        "ad": "50 ml",
                        "fiyat": "349.90",
                        "listeFiyati": null,
                        "stok": 4,
                        "ayrilan": 0,
                        "varsayilan": false
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Teslim edildi. Başka her yanıt yeniden denenir."
          }
        }
      }
    },
    "musteri.olustu": {
      "post": {
        "summary": "Müşteri hesabı açıldı",
        "description": "Yeni müşteri hesabı açıldı (kayıt, Google ya da Apple ile giriş, panelden ekleme). Başka altyapıdan toplu aktarılan müşteriler olay doğurmaz; 1–3 dakika gecikmeli. Müşteri başına bir kez.",
        "tags": [
          "olay-musteri"
        ],
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Olay",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Kimlik",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Zaman",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Orchesthra-Imza",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "olay": "musteri.olustu",
                "kimlik": "musteri.olustu:cmdemo0musteri000000000001",
                "zaman": "2026-11-20T10:05:02.000Z",
                "marka": "demo",
                "veri": {
                  "musteri": {
                    "id": "cmdemo0musteri000000000001",
                    "ad": "Demo Müşteri",
                    "eposta": "demo-musteri@ornek.com",
                    "telefon": "05000000000",
                    "tarihler": {
                      "olusturma": "2026-11-20T08:00:00.000Z",
                      "guncellenme": "2026-11-20T08:00:00.000Z"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Teslim edildi. Başka her yanıt yeniden denenir."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "anahtar": {
        "type": "http",
        "scheme": "bearer",
        "description": "ork_ ile başlayan API anahtarı (panel: Entegrasyonlar → Yazılım bağlantısı)."
      }
    }
  }
}
