{"openapi":"3.0.1","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"https://api.iklim.co","description":"Production server"},{"url":"https://api-test.iklim.co","description":"Test server"},{"url":"http://localhost:8080","description":"Local development environment with api gateway"}],"tags":[{"name":"Kullanıcı Hesapları Servisi","description":"Hesaplarla İlgili Servisleri Yönetir"}],"paths":{"/v1/accounts/update-subscription":{"post":{"tags":["Kullanıcı Hesapları Servisi"],"summary":"Abonelik Planını Güncelle","description":"Hesabın abonelik planını verilen bilgilerle günceller.","operationId":"updateSubscription","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSubscriptionPlanRequest"}}},"required":true},"responses":{"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"}}}},"401":{"description":"Yetkisiz veya Hatalı İmza ile İstek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Unauthorized Example 1":{"summary":"Example response 1","description":"Unauthorized Example 1","value":{"timestamp":"2025-04-14T16:57:50.083970026","status":401,"error":"Unauthorized","message":"Bad Credentials","path":"/endpoint/uri/here"}},"Unauthorized Example 2":{"summary":"Example response 2","description":"Unauthorized Example 2","value":{"timestamp":"2025-04-14T16:57:50.083970026","status":401,"error":"Unauthorized","message":"Invalid request signature","path":"/auth/login"}}}}}},"400":{"description":"İstek Sırasında Gerekli Başlıklar Bulunamadı veya İstek Gövdesi Hatalı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Bad Request Example":{"summary":"Example response","description":"Bad Request Example","value":{"timestamp":"2025-04-14T16:26:54.203118461","status":400,"error":"Bad Request","message":"Missing X-Idempotency-Key header","path":"/endpoint/uri/here"}}}}}},"200":{"description":"Abonelik planı başarıyla güncellendi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSubscriptionPlanResponse"}}}},"500":{"description":"İstek Sırasında Dahili Sunucu Hatası","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Internal Server Error Example":{"summary":"Example response","description":"Internal Server Error Example","value":{"timestamp":"2025-04-14T16:58:10.414972912","status":500,"error":"Internal Server Error","message":"An Error Occurred During Login","path":"/endpoint/uri/here"}}}}}},"409":{"description":"Mükerrer İstek Yapıldı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Conflict Example 1":{"summary":"Example response 1","description":"Conflict Example 1","value":{"timestamp":"2025-04-14T16:57:21.168927321","status":409,"error":"Conflict","message":"Replay attack detected (nonce reused)","path":"/endpoint/uri/here"}},"Conflict Example 2":{"summary":"Example response 2","description":"Conflict Example 2","value":{"timestamp":"2025-04-14T16:56:28.671809875","status":409,"error":"Conflict","message":"Duplicate request detected (X-Idempotency-Key)","path":"/endpoint/uri/here"}}}}}}}}},"/v1/accounts/phone-number-activation-request":{"post":{"tags":["Kullanıcı Hesapları Servisi"],"summary":"Telefon Aktivasyon Talebi","description":"Kullanıcının telefonuna doğrulama kodu göndererek telefon aktivasyon sürecini başlatır.","operationId":"activatePhoneNumberRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneNumberActivationRequest"}}},"required":true},"responses":{"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"}}}},"401":{"description":"Yetkisiz veya Hatalı İmza ile İstek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Unauthorized Example 1":{"summary":"Example response 1","description":"Unauthorized Example 1","value":{"timestamp":"2025-04-14T16:57:50.083970026","status":401,"error":"Unauthorized","message":"Bad Credentials","path":"/endpoint/uri/here"}},"Unauthorized Example 2":{"summary":"Example response 2","description":"Unauthorized Example 2","value":{"timestamp":"2025-04-14T16:57:50.083970026","status":401,"error":"Unauthorized","message":"Invalid request signature","path":"/auth/login"}}}}}},"400":{"description":"İstek Sırasında Gerekli Başlıklar Bulunamadı veya İstek Gövdesi Hatalı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Bad Request Example":{"summary":"Example response","description":"Bad Request Example","value":{"timestamp":"2025-04-14T16:26:54.203118461","status":400,"error":"Bad Request","message":"Missing X-Idempotency-Key header","path":"/endpoint/uri/here"}}}}}},"200":{"description":"Telefon aktivasyon talebi başarıyla gönderildi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneNumberActivationResponse"}}}},"500":{"description":"İstek Sırasında Dahili Sunucu Hatası","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Internal Server Error Example":{"summary":"Example response","description":"Internal Server Error Example","value":{"timestamp":"2025-04-14T16:58:10.414972912","status":500,"error":"Internal Server Error","message":"An Error Occurred During Login","path":"/endpoint/uri/here"}}}}}},"409":{"description":"Mükerrer İstek Yapıldı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Conflict Example 1":{"summary":"Example response 1","description":"Conflict Example 1","value":{"timestamp":"2025-04-14T16:57:21.168927321","status":409,"error":"Conflict","message":"Replay attack detected (nonce reused)","path":"/endpoint/uri/here"}},"Conflict Example 2":{"summary":"Example response 2","description":"Conflict Example 2","value":{"timestamp":"2025-04-14T16:56:28.671809875","status":409,"error":"Conflict","message":"Duplicate request detected (X-Idempotency-Key)","path":"/endpoint/uri/here"}}}}}}}}},"/v1/accounts/create":{"post":{"tags":["Kullanıcı Hesapları Servisi"],"summary":"Hesap Oluştur","description":"Girilen bilgilerle yeni bir hesap oluşturur.","operationId":"create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountRequest"}}},"required":true},"responses":{"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"}}}},"401":{"description":"Yetkisiz veya Hatalı İmza ile İstek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Unauthorized Example 1":{"summary":"Example response 1","description":"Unauthorized Example 1","value":{"timestamp":"2025-04-14T16:57:50.083970026","status":401,"error":"Unauthorized","message":"Bad Credentials","path":"/endpoint/uri/here"}},"Unauthorized Example 2":{"summary":"Example response 2","description":"Unauthorized Example 2","value":{"timestamp":"2025-04-14T16:57:50.083970026","status":401,"error":"Unauthorized","message":"Invalid request signature","path":"/auth/login"}}}}}},"400":{"description":"İstek Sırasında Gerekli Başlıklar Bulunamadı veya İstek Gövdesi Hatalı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Bad Request Example":{"summary":"Example response","description":"Bad Request Example","value":{"timestamp":"2025-04-14T16:26:54.203118461","status":400,"error":"Bad Request","message":"Missing X-Idempotency-Key header","path":"/endpoint/uri/here"}}}}}},"200":{"description":"Hesap başarıyla oluşturuldu","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponse"}}}},"500":{"description":"İstek Sırasında Dahili Sunucu Hatası","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Internal Server Error Example":{"summary":"Example response","description":"Internal Server Error Example","value":{"timestamp":"2025-04-14T16:58:10.414972912","status":500,"error":"Internal Server Error","message":"An Error Occurred During Login","path":"/endpoint/uri/here"}}}}}},"409":{"description":"Mükerrer İstek Yapıldı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Conflict Example 1":{"summary":"Example response 1","description":"Conflict Example 1","value":{"timestamp":"2025-04-14T16:57:21.168927321","status":409,"error":"Conflict","message":"Replay attack detected (nonce reused)","path":"/endpoint/uri/here"}},"Conflict Example 2":{"summary":"Example response 2","description":"Conflict Example 2","value":{"timestamp":"2025-04-14T16:56:28.671809875","status":409,"error":"Conflict","message":"Duplicate request detected (X-Idempotency-Key)","path":"/endpoint/uri/here"}}}}}}}}},"/v1/accounts/account-activation-request":{"post":{"tags":["Kullanıcı Hesapları Servisi"],"summary":"Hesap Aktivasyonu Talebi","description":"Kullanıcıya aktivasyon e-postası göndererek hesap aktivasyon sürecini başlatır.","operationId":"activateUserRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountActivationRequest"}}},"required":true},"responses":{"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"}}}},"401":{"description":"Yetkisiz veya Hatalı İmza ile İstek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Unauthorized Example 1":{"summary":"Example response 1","description":"Unauthorized Example 1","value":{"timestamp":"2025-04-14T16:57:50.083970026","status":401,"error":"Unauthorized","message":"Bad Credentials","path":"/endpoint/uri/here"}},"Unauthorized Example 2":{"summary":"Example response 2","description":"Unauthorized Example 2","value":{"timestamp":"2025-04-14T16:57:50.083970026","status":401,"error":"Unauthorized","message":"Invalid request signature","path":"/auth/login"}}}}}},"400":{"description":"İstek Sırasında Gerekli Başlıklar Bulunamadı veya İstek Gövdesi Hatalı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Bad Request Example":{"summary":"Example response","description":"Bad Request Example","value":{"timestamp":"2025-04-14T16:26:54.203118461","status":400,"error":"Bad Request","message":"Missing X-Idempotency-Key header","path":"/endpoint/uri/here"}}}}}},"200":{"description":"Hesap aktivasyon talebi başarıyla gönderildi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountActivationResponse"}}}},"500":{"description":"İstek Sırasında Dahili Sunucu Hatası","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Internal Server Error Example":{"summary":"Example response","description":"Internal Server Error Example","value":{"timestamp":"2025-04-14T16:58:10.414972912","status":500,"error":"Internal Server Error","message":"An Error Occurred During Login","path":"/endpoint/uri/here"}}}}}},"409":{"description":"Mükerrer İstek Yapıldı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Conflict Example 1":{"summary":"Example response 1","description":"Conflict Example 1","value":{"timestamp":"2025-04-14T16:57:21.168927321","status":409,"error":"Conflict","message":"Replay attack detected (nonce reused)","path":"/endpoint/uri/here"}},"Conflict Example 2":{"summary":"Example response 2","description":"Conflict Example 2","value":{"timestamp":"2025-04-14T16:56:28.671809875","status":409,"error":"Conflict","message":"Duplicate request detected (X-Idempotency-Key)","path":"/endpoint/uri/here"}}}}}}}}},"/v1/accounts/update":{"patch":{"tags":["Kullanıcı Hesapları Servisi"],"summary":"Hesap Güncelle","description":"Hesap bilgilerini (e-posta, telefon veya diğer alanlar) günceller.","operationId":"update","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountRequest"}}},"required":true},"responses":{"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"}}}},"401":{"description":"Yetkisiz veya Hatalı İmza ile İstek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Unauthorized Example 1":{"summary":"Example response 1","description":"Unauthorized Example 1","value":{"timestamp":"2025-04-14T16:57:50.083970026","status":401,"error":"Unauthorized","message":"Bad Credentials","path":"/endpoint/uri/here"}},"Unauthorized Example 2":{"summary":"Example response 2","description":"Unauthorized Example 2","value":{"timestamp":"2025-04-14T16:57:50.083970026","status":401,"error":"Unauthorized","message":"Invalid request signature","path":"/auth/login"}}}}}},"400":{"description":"İstek Sırasında Gerekli Başlıklar Bulunamadı veya İstek Gövdesi Hatalı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Bad Request Example":{"summary":"Example response","description":"Bad Request Example","value":{"timestamp":"2025-04-14T16:26:54.203118461","status":400,"error":"Bad Request","message":"Missing X-Idempotency-Key header","path":"/endpoint/uri/here"}}}}}},"200":{"description":"Hesap başarıyla güncellendi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponse"}}}},"500":{"description":"İstek Sırasında Dahili Sunucu Hatası","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Internal Server Error Example":{"summary":"Example response","description":"Internal Server Error Example","value":{"timestamp":"2025-04-14T16:58:10.414972912","status":500,"error":"Internal Server Error","message":"An Error Occurred During Login","path":"/endpoint/uri/here"}}}}}},"409":{"description":"Mükerrer İstek Yapıldı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Conflict Example 1":{"summary":"Example response 1","description":"Conflict Example 1","value":{"timestamp":"2025-04-14T16:57:21.168927321","status":409,"error":"Conflict","message":"Replay attack detected (nonce reused)","path":"/endpoint/uri/here"}},"Conflict Example 2":{"summary":"Example response 2","description":"Conflict Example 2","value":{"timestamp":"2025-04-14T16:56:28.671809875","status":409,"error":"Conflict","message":"Duplicate request detected (X-Idempotency-Key)","path":"/endpoint/uri/here"}}}}}}}}},"/v1/accounts/{userId}":{"get":{"tags":["Kullanıcı Hesapları Servisi"],"summary":"Hesap Bilgilerini Getir","description":"Belirtilen kullanıcı ID'sine ait hesap detaylarını getirir.","operationId":"getAccount","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"}}}},"401":{"description":"Yetkisiz veya Hatalı İmza ile İstek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Unauthorized Example 1":{"summary":"Example response 1","description":"Unauthorized Example 1","value":{"timestamp":"2025-04-14T16:57:50.083970026","status":401,"error":"Unauthorized","message":"Bad Credentials","path":"/endpoint/uri/here"}},"Unauthorized Example 2":{"summary":"Example response 2","description":"Unauthorized Example 2","value":{"timestamp":"2025-04-14T16:57:50.083970026","status":401,"error":"Unauthorized","message":"Invalid request signature","path":"/auth/login"}}}}}},"400":{"description":"İstek Sırasında Gerekli Başlıklar Bulunamadı veya İstek Gövdesi Hatalı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Bad Request Example":{"summary":"Example response","description":"Bad Request Example","value":{"timestamp":"2025-04-14T16:26:54.203118461","status":400,"error":"Bad Request","message":"Missing X-Idempotency-Key header","path":"/endpoint/uri/here"}}}}}},"500":{"description":"İstek Sırasında Dahili Sunucu Hatası","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Internal Server Error Example":{"summary":"Example response","description":"Internal Server Error Example","value":{"timestamp":"2025-04-14T16:58:10.414972912","status":500,"error":"Internal Server Error","message":"An Error Occurred During Login","path":"/endpoint/uri/here"}}}}}},"200":{"description":"Hesap detayları başarıyla getirildi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponse"}}}},"409":{"description":"Mükerrer İstek Yapıldı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Conflict Example 1":{"summary":"Example response 1","description":"Conflict Example 1","value":{"timestamp":"2025-04-14T16:57:21.168927321","status":409,"error":"Conflict","message":"Replay attack detected (nonce reused)","path":"/endpoint/uri/here"}},"Conflict Example 2":{"summary":"Example response 2","description":"Conflict Example 2","value":{"timestamp":"2025-04-14T16:56:28.671809875","status":409,"error":"Conflict","message":"Duplicate request detected (X-Idempotency-Key)","path":"/endpoint/uri/here"}}}}}}}}},"/v1/accounts/activate-phone-number":{"get":{"tags":["Kullanıcı Hesapları Servisi"],"summary":"Telefon Numarasını Aktive Et","description":"Kullanıcı ID, hesap ID ve telefon doğrulama anahtarı ile telefon numarasını aktive eder.","operationId":"activatePhoneNumber","parameters":[{"name":"userId","in":"query","required":true,"schema":{"type":"string"}},{"name":"accountId","in":"query","required":true,"schema":{"type":"string"}},{"name":"phoneNumberVerificationToken","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"}}}},"401":{"description":"Yetkisiz veya Hatalı İmza ile İstek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Unauthorized Example 1":{"summary":"Example response 1","description":"Unauthorized Example 1","value":{"timestamp":"2025-04-14T16:57:50.083970026","status":401,"error":"Unauthorized","message":"Bad Credentials","path":"/endpoint/uri/here"}},"Unauthorized Example 2":{"summary":"Example response 2","description":"Unauthorized Example 2","value":{"timestamp":"2025-04-14T16:57:50.083970026","status":401,"error":"Unauthorized","message":"Invalid request signature","path":"/auth/login"}}}}}},"400":{"description":"İstek Sırasında Gerekli Başlıklar Bulunamadı veya İstek Gövdesi Hatalı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Bad Request Example":{"summary":"Example response","description":"Bad Request Example","value":{"timestamp":"2025-04-14T16:26:54.203118461","status":400,"error":"Bad Request","message":"Missing X-Idempotency-Key header","path":"/endpoint/uri/here"}}}}}},"204":{"description":"Telefon numarası başarıyla aktive edildi"},"500":{"description":"İstek Sırasında Dahili Sunucu Hatası","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Internal Server Error Example":{"summary":"Example response","description":"Internal Server Error Example","value":{"timestamp":"2025-04-14T16:58:10.414972912","status":500,"error":"Internal Server Error","message":"An Error Occurred During Login","path":"/endpoint/uri/here"}}}}}},"409":{"description":"Mükerrer İstek Yapıldı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Conflict Example 1":{"summary":"Example response 1","description":"Conflict Example 1","value":{"timestamp":"2025-04-14T16:57:21.168927321","status":409,"error":"Conflict","message":"Replay attack detected (nonce reused)","path":"/endpoint/uri/here"}},"Conflict Example 2":{"summary":"Example response 2","description":"Conflict Example 2","value":{"timestamp":"2025-04-14T16:56:28.671809875","status":409,"error":"Conflict","message":"Duplicate request detected (X-Idempotency-Key)","path":"/endpoint/uri/here"}}}}}}}}},"/v1/accounts/activate-account":{"get":{"tags":["Kullanıcı Hesapları Servisi"],"summary":"Hesabı Aktive Et","description":"Kullanıcı ID, hesap ID ve e-posta doğrulama anahtarı ile hesabı aktive eder.","operationId":"activateUser","parameters":[{"name":"userId","in":"query","required":true,"schema":{"type":"string"}},{"name":"accountId","in":"query","required":true,"schema":{"type":"string"}},{"name":"emailVerificationToken","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"}}}},"401":{"description":"Yetkisiz veya Hatalı İmza ile İstek","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Unauthorized Example 1":{"summary":"Example response 1","description":"Unauthorized Example 1","value":{"timestamp":"2025-04-14T16:57:50.083970026","status":401,"error":"Unauthorized","message":"Bad Credentials","path":"/endpoint/uri/here"}},"Unauthorized Example 2":{"summary":"Example response 2","description":"Unauthorized Example 2","value":{"timestamp":"2025-04-14T16:57:50.083970026","status":401,"error":"Unauthorized","message":"Invalid request signature","path":"/auth/login"}}}}}},"400":{"description":"İstek Sırasında Gerekli Başlıklar Bulunamadı veya İstek Gövdesi Hatalı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Bad Request Example":{"summary":"Example response","description":"Bad Request Example","value":{"timestamp":"2025-04-14T16:26:54.203118461","status":400,"error":"Bad Request","message":"Missing X-Idempotency-Key header","path":"/endpoint/uri/here"}}}}}},"200":{"description":"Hesap başarıyla aktive edildi","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountResponse"}}}},"500":{"description":"İstek Sırasında Dahili Sunucu Hatası","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Internal Server Error Example":{"summary":"Example response","description":"Internal Server Error Example","value":{"timestamp":"2025-04-14T16:58:10.414972912","status":500,"error":"Internal Server Error","message":"An Error Occurred During Login","path":"/endpoint/uri/here"}}}}}},"409":{"description":"Mükerrer İstek Yapıldı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StandardErrorResponse"},"examples":{"Conflict Example 1":{"summary":"Example response 1","description":"Conflict Example 1","value":{"timestamp":"2025-04-14T16:57:21.168927321","status":409,"error":"Conflict","message":"Replay attack detected (nonce reused)","path":"/endpoint/uri/here"}},"Conflict Example 2":{"summary":"Example response 2","description":"Conflict Example 2","value":{"timestamp":"2025-04-14T16:56:28.671809875","status":409,"error":"Conflict","message":"Duplicate request detected (X-Idempotency-Key)","path":"/endpoint/uri/here"}}}}}}}}}},"components":{"schemas":{"StandardErrorResponse":{"required":["error","message","path","status","timestamp"],"type":"object","properties":{"timestamp":{"type":"string","description":"Hata Zaman Damgası","format":"date-time"},"status":{"type":"integer","description":"Hata Durum Kodu","format":"int32"},"error":{"type":"string","description":"Hata Adı","example":"Error Name"},"message":{"type":"string","description":"Hata Açıklaması","example":"Error Message"},"path":{"type":"string","description":"Hata Veren Endpoint URI","example":"/endpoint/uri/here"}}},"ApiServiceLimit":{"required":["maxInvocation","serviceName","version"],"type":"object","properties":{"version":{"type":"string","description":"Servis Versiyonu","example":"v1"},"serviceName":{"type":"string","description":"Servis Adı","example":"lightnings"},"maxInvocation":{"type":"integer","description":"Maksimum Çağrı Hakkı","format":"int64","example":1000}},"description":"API Servis Limitleri"},"GeoBoundary":{"required":["country","region"],"type":"object","properties":{"country":{"type":"string","description":"Ülke","example":"Türkiye"},"region":{"type":"string","description":"Bölge","example":"All"}},"description":"swagger.schema.accounts.update-subscription-request.details.plan-details.geo-boundary"},"LimitResetRecurrence":{"required":["limitType"],"type":"object","properties":{"limitType":{"type":"string","description":"Limit Türü","example":"DAILY/WEEKLY/MONTHLY/YEARLY/QUOTA","enum":["DAILY","WEEKLY","MONTHLY","YEARLY","QUOTA"]},"limitResetInterval":{"type":"integer","description":"Limit Yenileme Aralığı","format":"int32","example":1}},"description":"Limit Yenileme Döngüsü"},"SubscriptionPlanDetail":{"required":["apiServiceLimits","limitResetRecurrence"],"type":"object","properties":{"limitResetRecurrence":{"$ref":"#/components/schemas/LimitResetRecurrence"},"geoBoundary":{"$ref":"#/components/schemas/GeoBoundary"},"apiServiceLimits":{"type":"array","description":"API Servis Limitleri","items":{"$ref":"#/components/schemas/ApiServiceLimit"}}},"description":"swagger.schema.accounts.update-subscription-request.details.plan-details"},"SubscriptionPlanDetails":{"required":["details","subscriptionExpirationEpoch"],"type":"object","properties":{"subscriptionExpirationEpoch":{"type":"integer","description":"Abonelik Geçerlilik Bitiş Tarihi","format":"int64","example":1767214799999},"details":{"type":"array","description":"swagger.schema.accounts.update-subscription-request.details.plan-details","items":{"$ref":"#/components/schemas/SubscriptionPlanDetail"}}}},"UpdateSubscriptionPlanRequest":{"required":["accountId","subscriptionPlan","userId"],"type":"object","properties":{"accountId":{"type":"string","description":"Aboneliği Güncellenecek Hesabın Kimlik Belirteci","format":"uuid","example":"296ff917-9b4b-4dc1-987d-2c17bdac7133"},"userId":{"type":"string","description":"Aboneliği Güncellenecek Kullanıcının Kimlik Belirteci","format":"uuid","example":"296ff917-9b4b-4dc1-987d-2c17bdac7133"},"subscriptionPlan":{"type":"string","description":"Yeni Abonelik Planı","example":"NONE/TRIAL/BASIC_MONTHLY/BASIC_YEARLY/PREMIUM_MONTHLY/PREMIUM_YEARLY/CUSTOM","enum":["NONE","TRIAL","BASIC_MONTHLY","BASIC_YEARLY","PREMIUM_MONTHLY","PREMIUM_YEARLY","CUSTOM"]},"planDetails":{"$ref":"#/components/schemas/SubscriptionPlanDetails"}}},"UpdateSubscriptionPlanResponse":{"type":"object","properties":{"userId":{"type":"string","format":"uuid"},"accountId":{"type":"string","format":"uuid"},"subscriptionPlan":{"type":"string","enum":["NONE","TRIAL","BASIC_MONTHLY","BASIC_YEARLY","PREMIUM_MONTHLY","PREMIUM_YEARLY","CUSTOM"]},"subscriptionExpirationEpoch":{"type":"integer","format":"int64"},"warnings":{"type":"array","items":{"type":"string"}}}},"PhoneNumberActivationRequest":{"required":["accountId","phoneNumberActivationPageLink","userId"],"type":"object","properties":{"userId":{"type":"string","description":"Mobil Telefon Aktivasyonu İçin Kullanıcı Kimlik Belirteci","format":"uuid","example":"296ff917-9b4b-4dc1-987d-2c17bdac7133"},"accountId":{"type":"string","description":"Mobil Telefon Aktivasyonu İçin Hesap Kimlik Belirteci","format":"uuid","example":"a5b5687b-ad68-44c1-b80c-c96de0d34b0a"},"phoneNumberActivationPageLink":{"type":"string","description":"Mobil Telefon Aktivasyon Sayfası Bağlantısı","example":"https://api-manager.iklim.co/activation/mobile-phone-number"}}},"PhoneNumberActivationResponse":{"type":"object","properties":{"userId":{"type":"string","description":"Mobil Telefon Aktivasyonu Yapılan Kullanıcı Kimlik Belirteci"},"accountId":{"type":"string","description":"Mobil Telefon Aktivasyonu Yapılan Hesap Kimlik Belirteci"},"recipientPhoneNumber":{"type":"string","description":"SMS Gönderilen Mobil Telefon Numarası"},"tokenExpirationEpoch":{"type":"integer","description":"SMS Aktivasyon Belirtecinin Geçerlilik Süresi","format":"int64"},"smsSent":{"type":"boolean","description":"SMS Başarıyla Gönderildi Mi?"}}},"CreateAccountRequest":{"required":["subscriptionPlan","type","userId"],"type":"object","properties":{"userId":{"type":"string","description":"Hesap Oluşturma İçin Kullanıcı Kimlik Belirteci","format":"uuid","example":"296ff917-9b4b-4dc1-987d-2c17bdac7133"},"type":{"type":"string","description":"Oluşturulacak Hesap Türü","example":"ORGANIZATION/INDIVIDUAL","enum":["INDIVIDUAL","ORGANIZATION"]},"mobilePhoneNumber":{"type":"string","description":"Oluşturulan Hesabın Mobil Telefon Numarası","example":"905321112233"},"location":{"type":"string","description":"Oluşturulan Hesabın Adresi","example":"Cyberpark, Cyberplaza, A Blok, Kat 2, 06800, Bilkent, Ankara, Türkiye"},"company":{"type":"string","description":"swagger.swagger.schema.accounts.create-request.company","example":"TARLAIO İKLİM VE TARIM TEKNOLOJİLERİ A.Ş."},"industry":{"type":"string","description":"Oluşturulan Hesabın Endüstri/Sektör","example":"Yazılım Geliştirme, SaaS"},"profilePictureUrl":{"type":"string","description":"Oluşturulan Hesabın Profil Resmi Bağlantısı","example":"https://*******.png"},"subscriptionPlan":{"type":"string","description":"Oluşturulan Hesabın Abonelik Planı","example":"NONE/TRIAL/BASIC_MONTHLY/BASIC_YEARLY/PREMIUM_MONTHLY/PREMIUM_YEARLY/CUSTOM","enum":["NONE","TRIAL","BASIC_MONTHLY","BASIC_YEARLY","PREMIUM_MONTHLY","PREMIUM_YEARLY","CUSTOM"]}}},"AccountResponse":{"type":"object","properties":{"id":{"type":"string","description":"Hesap Kimlik Belirteci","format":"uuid"},"userId":{"type":"string","description":"Kullanıcı Kimlik Belirteci","format":"uuid"},"type":{"type":"string","description":"Hesap Türü","enum":["INDIVIDUAL","ORGANIZATION"]},"createdAt":{"type":"string","description":"Hesap Oluşturulma Tarihi","format":"date-time"},"updatedAt":{"type":"string","description":"Hesap Güncellenme Tarihi","format":"date-time"},"mobilePhoneNumber":{"type":"string","description":"Hesabın Mobil Telefon Numarası"},"location":{"type":"string","description":"Hesabın Adresi"},"company":{"type":"string","description":"Hesabın Şirket Adı"},"industry":{"type":"string","description":"Hesabın Endüstri/Sektör Bilgisi"},"profilePictureUrl":{"type":"string","description":"Hesabın Profil Resmi Bağlantısı"},"subscriptionPlan":{"type":"string","description":"Hesabın Abonelik Planı","enum":["NONE","TRIAL","BASIC_MONTHLY","BASIC_YEARLY","PREMIUM_MONTHLY","PREMIUM_YEARLY","CUSTOM"]},"emailVerified":{"type":"boolean","description":"E-posta Doğrulandı Mı?"},"mobilePhoneNumberVerified":{"type":"boolean","description":"Mobil Telefon Numarası Doğrulandı Mı?"}}},"AccountActivationRequest":{"required":["type","userId"],"type":"object","properties":{"userId":{"type":"string","description":"Kullanıcı Aktivasyonu İçin Kullanıcı Kimlik Belirteci","format":"uuid","example":"296ff917-9b4b-4dc1-987d-2c17bdac7133"},"type":{"type":"string","description":"Kullanıcı Aktivasyonu İçin Hesap Türü","example":"ORGANIZATION/INDIVIDUAL","enum":["INDIVIDUAL","ORGANIZATION"]},"mobilePhoneNumber":{"type":"string","description":"Kullanıcı Aktivasyonu İçin Mobil Telefon Numarası","example":"905321112233"},"location":{"type":"string","description":"Kullanıcı Aktivasyonu İçin Adres","example":"Cyberpark, Cyberplaza, A Blok, Kat 2, 06800, Bilkent, Ankara, Türkiye"},"company":{"type":"string","description":"Kullanıcı Aktivasyonu İçin Şirket Adı","example":"TARLAIO İKLİM VE TARIM TEKNOLOJİLERİ A.Ş."},"industry":{"type":"string","description":"Kullanıcı Aktivasyonu İçin Endüstri/Sektör","example":"Yazılım Geliştirme, SaaS"},"profilePictureUrl":{"type":"string","description":"Kullanıcı Aktivasyonu İçin Profil Resmi Bağlantısı","example":"https://*******.png"},"accountActivationPageLink":{"type":"string","description":"Hesap Aktivasyon Sayfası Bağlantısı","example":"https://api-manager.iklim.co/activation/account"}}},"AccountActivationResponse":{"type":"object","properties":{"userId":{"type":"string","description":"Aktive Edilen Kullanıcının Kimlik Belirteci"},"accountId":{"type":"string","description":"Aktive Edilen Hesabın Kimlik Belirteci"},"recipientEmail":{"type":"string","description":"Aktive Edilen Kullanıcının E-postası"},"tokenExpirationEpoch":{"type":"integer","description":"Aktivasyon Belirtecinin Geçerlilik Süresi","format":"int64","example":1750423307000},"emailSent":{"type":"boolean","description":"Aktivasyon E-postası Gönderildi Mi?","example":true}}},"UpdateAccountRequest":{"required":["accountId"],"type":"object","properties":{"accountId":{"type":"string","description":"Güncellenecek Hesap Kimlik Belirteci","format":"uuid","example":"296ff917-9b4b-4dc1-987d-2c17bdac7133"},"type":{"type":"string","description":"Güncellenecek Hesap Türü","example":"ORGANIZATION/INDIVIDUAL","enum":["INDIVIDUAL","ORGANIZATION"]},"mobilePhoneNumber":{"type":"string","description":"Güncellenecek Hesabın Mobil Telefon Numarası","example":"905321112233"},"location":{"type":"string","description":"Güncellenecek Hesabın Adresi","example":"Cyberpark, Cyberplaza, A Blok, Kat 2, 06800, Bilkent, Ankara, Türkiye"},"company":{"type":"string","description":"Güncellenecek Hesabın Şirket Adı","example":"TARLAIO İKLİM VE TARIM TEKNOLOJİLERİ A.Ş."},"industry":{"type":"string","description":"Güncellenecek Hesabın Endüstri/Sektör Bilgisi","example":"Yazılım Geliştirme, SaaS"},"profilePictureUrl":{"type":"string","description":"Güncellenecek Hesabın Profil Resmi Bağlantısı","example":"https://*******.png"}}}}}}