{
  "openapi": "3.0.0",
  "info": {
    "version": "4.1.0",
    "title": "Paraşüt - API V4",
    "description": "\n# CHANGE LOG\n\n### **2026-10-23**\n\n#### Added\n\n- Yeni kaynaklar: Gelen e-İrsaliye (`inbound_e_despatches`), Çek/Senet (`checks`), Açılış Bakiyesi (`opening_balances`), Fiyat Listesi (`price_lists`), Depo Transferi (`warehouse_transfers`), Yorum (`comments`), Döviz Kuru (`exchange_rates`) ve Webhook (`webhooks`).\n\n- Webhook'lar Geliştirici Portalı'ndaki API istemcisine aittir ve API paketi webhook içeren istemcilerce yönetilir. Oluştururken verilen 64 karakterlik `client_key` her webhook isteğinde `X-Client-Key` header'ı olarak gönderilir; `uri` HTTPS olmalıdır. Webhook istekleri JSON gövdeyle gönderilir ve tekrarlarında değişmeyen bir `event_id` taşır; her `model` için gövdenin şeması **WEBHOOK İSTEKLERİ** bölümündedir.\n\n- e-Belge: e-Fatura `resend`, `respond`, `create_purchase_bill`, `signed_ubl`, `archive`/`unarchive`; e-Arşiv `signed_ubl`; giden e-İrsaliye akışı (`legalize`, `resend`, `e_despatch`, `pdf`, `ubl`) ve `e_despatch_inboxes`.\n\n- Fatura–irsaliye bağlama (`link_shipment_documents`, `link_invoices`, `unlink_invoices`) ve `match`; satış faturasında idempotans için `external_reference_key` ilişkisi ve `find_by_external_reference_key`.\n\n- Hareket ve bakiye: cari, çalışan ve kasa/banka için `transaction_history_items`; çalışan `balance_info` ve `employee_debit_transactions`; ürün `history`, `product_invoice_history_items`, `product_shipment_document_history_items` ve `by_ids`.\n\n- Kasa/banka `adjust_balance` ve `money_transfers`; kategoriye öğe ekleme/çıkarma; `GET /stock_updates/{id}`; depo `archive`/`unarchive` ve depo bazlı `inventory_levels`; `DELETE /payments/{id}`.\n\n- Satış faturası, fiş/fatura, banka gideri, maaş ve vergi için `payments` listeleri ve `details` uçları; fiş/fatura `mark_as_cancelled` ve `move_to_awaiting_e_invoices`; irsaliye `archive`/`unarchive`.\n\n#### Changed\n\n- e-Fatura ve e-Arşiv oluşturma yanıtı 202 (trackable job) olarak belgelendi; e-Fatura kaydına `status_code` ve `status_message` eklendi.\n\n- `Error` nesnesine `code`, `source` ve `meta`, liste `meta` bilgisine `per_page` eklendi; banka gideri, maaş ve vergi ödeme listeleri \"Ödemeler\" olarak adlandırıldı; depo stok seviyesi yolu `/products/{product_id}/inventory_levels` oldu.\n\n- Kimlik doğrulama bölümü güncellendi: yeni istemciler varsayılan olarak confidential client, PKCE zorunlu.\n\n- Düzeltmeler: e-SMM PDF yolu `/e_smms/{id}/pdf` olarak düzeltildi; satış faturasının `active_e_document` ilişkisi `e_smms` da olabilir; vergi kaynağının tipi `taxes`, teklif detayının tipi `sales_offer_details` ve teklif detay listesi bir dizi olarak belgelendi; e-Fatura `custom_requirement_params` için `products` alanı, irsaliye kalemleri için `warehouse` ilişkisi eklendi ve irsaliye `contact` tipi `contacts` olarak düzeltildi; PKCE `code_verifier` 43–128 karakter sınırı netleştirildi.\n\n# GİRİŞ\n\n## API Hakkında\n\nParaşüt API'yi kullanmak için önce devhub'dan doğru başvuru seçeneği ile başvuru yapılmalıdır.\n\n- API'de çoğunlukla JSONAPI (http://jsonapi.org/) standartlarına uymaya çalıştık.\n\n- Dokümantasyon oluşturulmasında ise OpenAPI 3 kullandık.\n\n## Genel Bilgiler\n\n- API metodlarına erişmek için `BASE_URL` olarak `https://api.parasut.com/v4/company-id` adresi kullanılır. `company-id` parametresi erişilmek istenen firmanın Paraşüt kayıt numarasıdır ve Paraşüt hesabında profil alanından veya uygulama adresinden elde edilebilir.\n  - Örneğin 115 numaralı firmanın müşteri/tedarikçi listesine erişmek için `https://api.parasut.com/v4/115/contacts` adresi kullanılır.\n- İstekleri gönderirken `Content-Type` header'ı olarak `application/json`\nveya `application/vnd.api+json` göndermelisiniz.\n\n- Yeni bir kayıt oluştururken **ilgili** kaydın `ID` parametresini boş\ngöndermeli veya hiç göndermemelisiniz.\n  - Örnek: Satış faturası oluştururken `data->id` boş olmalı, ama `relationships->contact->data->id` dolu olmalı, çünkü gönderdiğiniz müşterinizin ID'si daha önceden elinizde bulunmalıdır. Aynı şekilde `relationships->details->data` içerisinde tanımladığınız ID'ler de boş olmalı, çünkü henüz fatura kalemi yaratmadınız.\n- API endpointlerine ulaşmak için, aldığınız `access_token`'ı sorgulara\n`Authorization: Bearer access_token` header'ı olarak göndermelisiniz. Token\nedinme akışı için [Kaynaklar](/kaynaklar) sayfasındaki [OAuth Rehberi](/oauth-rehberi) sayfasına bakınız.\n\n- API entegrasyonunda kullanılan kullanıcının entegrasyon kurabilme izni olmalıdır. Bu rol ve diğer yetki rolleri çerçevesinde işlem yapılabilir. Yetkisiz durumlarda HTTP 403 cevabı alırsınız.\n\n- Rate limit bilgileriniz başvuru yaptığınız pakete göre değişiklik gösterir. Paketiniz 10 saniyede kaç istek yapabileceğinizi, 1 ayda toplam ne kadar istek yapabileceğinizi ve hangi firmalar için işlem yapabileceğinizi belirler. Limitiniz dolduğunda HTTP 429 cevabı alırsınız; cevapta tekrar ne zaman istek yapabileceğinize dair süre bilgisi de bulunur.\n\n- `access_token` aldığınız kullanıcının genel bilgilerini görmek için\n[/me](#operation/showMe) adresini kullanabilirsiniz.\n\n# Authentication\n\n<!-- ReDoc-Inject: <security-definitions> -->\n\nParaşüt API kimlik doğrulama için OAuth 2.0 **Authorization Code** akışını\nkullanır ve **OpenID Connect** desteklenir.\n\n`CLIENT_ID`, `REDIRECT_URI` ve (confidential client'larda) `CLIENT_SECRET` değerlerini Geliştirici Portalı'ndaki API Bilgilerim sayfasından alırsınız.\n\nTüm endpoint URL'leri, desteklenen scope'lar ve imzalama anahtarları için\nOIDC Discovery kullanın:\n\n- **Prod:** `https://id.parasut.com/realms/parasut/.well-known/openid-configuration`\n\n- **Staging:** `https://id-staging.parasut.com/realms/parasut/.well-known/openid-configuration`\n\nAdım adım açıklama, parametre tablosu ve ekran görüntüleri için Geliştirici\nPortalı'ndaki [Kimlik doğrulama rehberi](/oauth-rehberi) sayfasına bakın.\n\n## İstemci türü\n\nYeni API istemcileri varsayılan olarak **confidential client**¹ olarak\noluşturulur: token ve yenileme isteklerinde `client_id` ile birlikte\n`CLIENT_SECRET` gönderilir. `CLIENT_SECRET` **yalnızca backend'inizde**\nsaklanır; tarayıcıya, mobil uygulama paketine veya loglara konmaz.\nDeğeri Geliştirici Portalı'ndaki **API Bilgilerim** sayfasında maskeli\nolarak görüntüleyebilir, kopyalayabilir ve yenileyebilirsiniz. Secret\ne-posta ile gönderilmez.\n\nTüm istemcilerde **PKCE** (Proof Key for Code Exchange, [RFC 7636](https://datatracker.ietf.org/doc/html/rfc7636))\nzorunludur. PKCE ile yetkilendirme kodu yalnızca `code_verifier` bilen tarafça\ntoken'a çevrilebilir.\n\n¹ **İstisna – public client:** Backend'i olmayan ve client secret'ı güvenli biçimde saklayamayan mobil veya masaüstü uygulamalar başvuru sırasında public client talep edebilir. Public client'ın secret'ı olmaz; token alma ve yenileme son kullanıcının cihazında PKCE ile yapılır ve token isteklerinde `client_secret` gönderilmez. Daha önce oluşturulmuş istemciler public olarak kalır.\n\n## Client secret yenileme\n\n`CLIENT_SECRET` değerinin sızdığından şüphelenirseniz API Bilgilerim\nsayfasındaki **Secret'ı Yenile** ile yeni bir secret oluşturun. Yeni\nsecret oluşturulduğu anda eski secret **hemen geçersiz olur**; geçiş\nsüresi yoktur. Eski secret ile yapılan token ve yenileme istekleri\nreddedilir, bu nedenle yeniledikten hemen sonra backend'inizdeki değeri\ngüncelleyin. Daha önce alınmış access token'lar süreleri dolana kadar geçerli\nkalır.\n\n## Staging ortamı\n\nStaging client'ınız sizin için oluşturulan Paraşüt staging şirketine\nbağlıdır; bu şirket 6 ay sonra otomatik silinir. Staging'de yukarıdaki\nstaging OIDC Discovery adresindeki uç noktaları kullanın.\n\n## PKCE: code_verifier ve code_challenge\n\n1. **code_verifier:** `A-Z`, `a-z`, `0-9`, `-`, `.`, `_`, `~` karakterlerinden oluşan,\n   en az 43, en fazla 128 karakterlik, yüksek entropili rastgele bir dize üretin\n   (RFC 7636 §4.1).\n2. **code_challenge:** `code_verifier` üzerinde SHA-256 uygulayıp çıktıyı\n   **Base64url** (padding `=` olmadan) kodlayın.\n3. Yetkilendirme isteğinde `code_challenge` ve `code_challenge_method=S256`\n   gönderin; token isteğinde aynı oturum için ürettiğiniz ham\n   **code_verifier** değerini gönderin.\n\nPKCE zorunludur ve yalnızca `S256` kabul edilir: `code_challenge`\niçermeyen veya `S256` dışında bir yöntem kullanan yetkilendirme istekleri reddedilir.\n## Authorization Code akışı (PKCE ile)\n\n### 1. Kullanıcıyı yetkilendirme ekranına yönlendirin\n\n`state` parametresini CSRF koruması için rastgele üretip sunucu oturumuyla\neşleştirin.\n\n```\nhttps://id.parasut.com/realms/parasut/protocol/openid-connect/auth\n  ?client_id=CLIENT_ID\n  &redirect_uri=REDIRECT_URI\n  &response_type=code\n  &scope=openid\n  &state=RANDOM_STATE\n  &code_challenge=BASE64URL_SHA256_CODE_VERIFIER\n  &code_challenge_method=S256\n  &kc_idp_hint=parasut   # opsiyonel\n```\n\n| Parametre | Örnek | Açıklama |\n|-----------|--------|----------|\n| `client_id` | `CLIENT_ID` | Size verilen uygulama kimliği |\n| `redirect_uri` | `REDIRECT_URI` | Başvuruda kayıtlı geri dönüş adresi (en fazla 3; başvurudan sonra değiştirilemez) |\n| `response_type` | `code` | Authorization Code akışı |\n| `scope` | `openid` | Talep edilen izin kapsamı |\n| `state` | rastgele dize | CSRF koruması |\n| `code_challenge` | Base64url(SHA256(verifier)) | **Zorunlu.** PKCE özeti |\n| `code_challenge_method` | `S256` | **Zorunlu.** Yalnızca S256 desteklenir |\n| `kc_idp_hint` | `parasut` | **Opsiyonel.** Kimlik sağlayıcı seçim ekranını atlayıp doğrudan Paraşüt giriş ekranına yönlendirir. |\n\nYetkilendirmeyi başlatmanın üç yolu:\n\n- **3. taraf butonu:** Uygulamanıza \"Paraşüt hesabımı bağla\" benzeri bir\n  buton koyup kullanıcıyı yukarıdaki URL'ye yönlendirin.\n\n- **Paraşüt Uygulamalar sayfası:** Uygulamanız Paraşüt Uygulamalar sayfasında\n  yayınlanıyorsa kullanıcı \"Kullanmaya Başla\"ya tıkladığında Paraşüt,\n  kullanıcıyı uygulamanızın `/oauth/start` (veya benzeri) ucuna deep-link\n  ile yönlendirir; akışı oradan itibaren backend yönlendirmesindeki gibi\n  siz sürdürürsünüz. PKCE ve `state`'in güvenli yönetilebilmesi için OAuth\n  2.0/2.1 BCP IdP-initiated akışları önermez; authorization URL üretimi\n  her zaman 3. taraf uygulamada başlamalıdır.\n\n- **Backend yönlendirmesi:** Arayüzünüz yoksa sunucunuz authorization\n  URL'sini üretip kullanıcıyı doğrudan Paraşüt giriş ekranına\n  yönlendirebilir. URL'ye `kc_idp_hint=parasut` ekleyerek kimlik sağlayıcı\n  seçim ekranını atlayabilirsiniz.\n\n### 2. Kullanıcı girişi ve consent\n\nKullanıcı Paraşüt giriş ekranında kimlik doğrular ve uygulamanızın\nerişim kapsamını gösteren **consent** adımını onaylar.\n\n### 3. Authorization code\n\nOnay sonrası tarayıcı `redirect_uri`'nize yönlendirilir:\n\n```\nREDIRECT_URI?code=AUTHORIZATION_CODE&state=RANDOM_STATE\n```\n\n`state` değerini oturumdakiyle karşılaştırın; uyuşmuyorsa isteği reddedin.\n\n### 4. Code ile access_token (token exchange)\n\nConfidential client'larda bu adım **sunucu tarafında** yapılmalıdır;\n`client_secret` ve `code_verifier` asla tarayıcıya, mobil uygulama\npaketine veya loglara sızmamalıdır (public client için bkz.\n**İstemci türü** bölümündeki dipnot ¹).\n\n```bash\ncurl -X POST https://id.parasut.com/realms/parasut/protocol/openid-connect/token \\\n-H \"Content-Type: application/x-www-form-urlencoded\" \\\n-d \"grant_type=authorization_code\" \\\n-d \"client_id=CLIENT_ID\" \\\n-d \"client_secret=CLIENT_SECRET\" \\\n-d \"code=AUTHORIZATION_CODE\" \\\n-d \"redirect_uri=REDIRECT_URI\" \\\n-d \"code_verifier=ORIGINAL_RANDOM_CODE_VERIFIER\"\n```\n\n**HTTP Basic:** `client_id` ve `client_secret` değerlerini form alanı\nyerine HTTP Basic kimlik doğrulamasıyla da gönderebilirsiniz\n(`Authorization: Basic BASE64(CLIENT_ID:CLIENT_SECRET)`); bu durumda\n`client_secret` satırını istek gövdesinden çıkarın.\n\n### Yanıt\n\n```json\n{\n  \"access_token\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXV...\",\n  \"token_type\": \"Bearer\",\n  \"expires_in\": 7200,\n  \"refresh_token\": \"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpX...\",\n  \"refresh_expires_in\": 2592000,\n  \"scope\": \"openid\"\n}\n```\n\n`access_token`'ı API çağrılarında `Authorization: Bearer …` olarak gönderin.\n`expires_in` ve `refresh_expires_in` saniye cinsindendir; süre dolmadan\nyenileme yapmanız önerilir.\n\n### 5. Token yenileme\n\n```bash\ncurl -X POST https://id.parasut.com/realms/parasut/protocol/openid-connect/token \\\n-H \"Content-Type: application/x-www-form-urlencoded\" \\\n-d \"grant_type=refresh_token\" \\\n-d \"client_id=CLIENT_ID\" \\\n-d \"client_secret=CLIENT_SECRET\" \\\n-d \"refresh_token=REFRESH_TOKEN\"\n```\n\nConfidential client'larda yenileme isteği de `client_secret` ile (form\nalanı veya HTTP Basic) gönderilir (public client için bkz.\n**İstemci türü** bölümündeki dipnot ¹).\n\nYanıtta genellikle yeni `access_token` ile birlikte yeni bir\n`refresh_token` da gelir; sonraki yenilemede **dönen son**\n`refresh_token`'ı kullanın.\n"
  },
  "servers": [
    {
      "url": "https://api.parasut.com/v4"
    }
  ],
  "security": [
    {
      "bearer": []
    }
  ],
  "tags": [
    {
      "name": "Accounts",
      "x-displayName": "KASA VE BANKA"
    },
    {
      "name": "ApiHome",
      "x-displayName": "ME"
    },
    {
      "name": "BankFees",
      "x-displayName": "BANKA GİDERİ"
    },
    {
      "name": "Checks",
      "x-displayName": "ÇEK / SENET"
    },
    {
      "name": "Comments",
      "x-displayName": "YORUM"
    },
    {
      "name": "Contacts",
      "x-displayName": "MÜŞTERİ / TEDARİKÇİ"
    },
    {
      "name": "EArchives",
      "x-displayName": "E-ARŞİV"
    },
    {
      "name": "EDespatchInboxes",
      "x-displayName": "E-İRSALİYE GELEN KUTUSU"
    },
    {
      "name": "EDespatches",
      "x-displayName": "E-İRSALİYE"
    },
    {
      "name": "EInvoiceInboxes",
      "x-displayName": "E-FATURA GELEN KUTUSU"
    },
    {
      "name": "EInvoices",
      "x-displayName": "E-FATURA"
    },
    {
      "name": "ESmms",
      "x-displayName": "E-SMM"
    },
    {
      "name": "Employees",
      "x-displayName": "ÇALIŞAN"
    },
    {
      "name": "ExchangeRates",
      "x-displayName": "DÖVİZ KURU"
    },
    {
      "name": "InboundEDespatches",
      "x-displayName": "GELEN E-İRSALİYE"
    },
    {
      "name": "InventoryLevels",
      "x-displayName": "DEPO STOK SEVİYESİ"
    },
    {
      "name": "ItemCategories",
      "x-displayName": "KATEGORİ"
    },
    {
      "name": "OpeningBalances",
      "x-displayName": "AÇILIŞ BAKİYESİ"
    },
    {
      "name": "PriceLists",
      "x-displayName": "FİYAT LİSTESİ"
    },
    {
      "name": "Products",
      "x-displayName": "ÜRÜN"
    },
    {
      "name": "PurchaseBills",
      "x-displayName": "FİŞ / FATURA"
    },
    {
      "name": "Salaries",
      "x-displayName": "MAAŞ"
    },
    {
      "name": "SalesOffers",
      "x-displayName": "TEKLİF"
    },
    {
      "name": "SalesInvoices",
      "x-displayName": "SATIŞ FATURASI"
    },
    {
      "name": "ShipmentDocuments",
      "x-displayName": "İRSALİYE"
    },
    {
      "name": "StockMovements",
      "x-displayName": "STOK HAREKETİ"
    },
    {
      "name": "StockUpdates",
      "x-displayName": "STOK GÜNCELLEME"
    },
    {
      "name": "Tags",
      "x-displayName": "ETİKET"
    },
    {
      "name": "Taxes",
      "x-displayName": "VERGİ"
    },
    {
      "name": "TrackableJobs",
      "x-displayName": "TRACKABLE JOB"
    },
    {
      "name": "Transactions",
      "x-displayName": "İŞLEM"
    },
    {
      "name": "WarehouseTransfers",
      "x-displayName": "DEPO TRANSFERİ"
    },
    {
      "name": "Warehouses",
      "x-displayName": "DEPO"
    },
    {
      "name": "Webhooks",
      "x-displayName": "WEBHOOK",
      "description": "Webhook'lar, firmanızda bir kayıt oluşturulduğunda, güncellendiğinde veya silindiğinde Paraşüt'ün belirlediğiniz adrese `POST` isteği göndermesini sağlar. Bu bölümdeki uçlarla webhook aboneliklerinizi listeler, görüntüler, oluşturur, günceller ve silersiniz.\n\n## Erişim\n\nWebhook uçlarını yalnızca Geliştirici Portalı'ndan alınmış ve API paketi webhook içeren bir API istemcisinin access token'ı ile çağırabilirsiniz. Paketiniz webhook içermiyorsa istekler **403** döner ve hatanın `title` değeri `API client's package does not include webhooks` olur. Geliştirici Portalı'ndaki bir API istemcisine ait olmayan bir access token ile yapılan istekler de **403** (`Webhooks are only available to Developer Portal API clients`) döner.\n\nWebhook kayıtları API istemcisine (`client_id`) aittir: aynı firmada her istemci yalnızca kendi webhook'larını görür ve yönetir. Listelemek ve görüntülemek için **Ayarlar** okuma yetkisi, oluşturmak, güncellemek ve silmek için **Ayarlar** tam yetkisi gerekir. Bir istemci, bir firma için her `model` + `action` ikilisinden yalnızca bir webhook tanımlayabilir.\n\n## Hata yanıtları\n\nHata yanıtları JSON:API biçimindedir (`Content-Type: application/vnd.api+json`). Gövde, bir veya daha fazla hata nesnesi içeren bir `errors` dizisidir: `title` hatanın kısa açıklaması, `detail` alan adıyla birlikte tam açıklamasıdır; doğrulama hatalarında `source.pointer` hatalı alanı gösterir.\n\n```json\n{\n  \"errors\": [\n    {\n      \"title\": \"must be https\",\n      \"detail\": \"Uri must be https\",\n      \"source\": { \"pointer\": \"/data/attributes/uri\" }\n    }\n  ]\n}\n```\n\n| Durum | Ne zaman döner |\n| --- | --- |\n| **400** | İstek gövdesinde `data` yok ya da `data` / `data.attributes` bir nesne değil; gövde geçerli bir JSON değil |\n| **401** | Access token geçersiz ya da süresi dolmuş veya kullanıcının bu `company_id` için erişimi yok |\n| **402** | Firmanın Paraşüt kullanım süresi sona ermiş |\n| **403** | API paketiniz webhook içermiyor, kullanıcının gerekli **Ayarlar** yetkisi ya da üçüncü taraf entegrasyon yetkisi yok veya API istemcinizin bu firmaya erişimi yok |\n| **404** | Webhook (`id`) bulunamadı ya da başka bir API istemcisine ait |\n| **422** | Doğrulama hatası: `data.type` `webhook` değil; `client_key` biçimi geçersiz; `uri` geçersiz, HTTPS değil ya da kabul edilmeyen bir adres; `model` veya `action` geçersiz ya da bu `model` + `action` ikilisi desteklenmiyor; aynı `model` + `action` için zaten bir webhook var; mevcut bir webhook'un `model` veya `action` değeri değiştirilmek istendi |\n| **500**, **503** | Paraşüt tarafında geçici bir sorun; isteği daha sonra yeniden deneyin |\n\nBu biçimin iki istisnası vardır:\n\n- **402** yanıtında `errors` dizisi hata nesneleri değil, metinler içerir: `{\"errors\": [\"Paraşüt kullanım süreniz sona ermiş.\"]}`.\n- Geçerli bir JSON olmayan istek gövdesi uca ulaşmadan **400** ile reddedilir; yanıt JSON:API değildir (`Content-Type: application/json`, `{\"error\": \"Invalid JSON\"}`).\n\nDoğrulama kuralları istek şemalarında yer alır; isteği göndermeden önce bunları kendi tarafınızda kontrol etmenizi öneririz. İstek gövdesindeki `data.type` tekil `webhook` olmalıdır, `webhooks` değil. Hata mesajları İngilizcedir ve zamanla değişebilir; hatayı programatik olarak ayırt etmek için HTTP durum kodunu ve `source.pointer` değerini kullanın.\n\n## Desteklenen event'ler\n\n| `model` | `create` | `update` | `delete` |\n| --- | :---: | :---: | :---: |\n| `shipment_document` (İrsaliye) | ✓ | ✓ | ✓ |\n| `stock_movement` (Stok hareketi) | ✓ | ✓ | ✓ |\n| `product` (Ürün) | ✓ | ✓ | ✓ |\n| `contact` (Müşteri / Tedarikçi) | ✓ | ✓ | ✓ |\n| `sales_invoice` (Satış faturası) | ✓ | ✓ | – |\n| `stock_update` (Stok güncelleme) | ✓ | – | – |\n| `company` (Firma) | – | ✓ | – |\n| `purchase_bill` (Fiş / Fatura) | ✓ | ✓ | – |\n| `inbound_e_invoice` (Gelen e-Fatura) | ✓ | – | – |\n\nBu tabloya zamanla yeni `model` ve `action` değerleri eklenebilir. API yanıtlarına ve webhook isteklerine yeni alanlar, enum alanlarına yeni değerler, webhook isteklerine yeni header'lar eklenebilir. API yanıtlarında ve webhook isteklerinde tanımadığınız `model`, `action` ya da başka bir enum değeri gelirse hata vermeyin, yok sayın; tanımadığınız alanları ve header'ları da yok sayın.\n\nSatış faturasının PDF'i oluştuğunda gönderilen `sales_invoice` `update` event'inin verisine `pdf_url` alanı eklenir. Bu bağlantı **2 saat** geçerlidir.\n\nBazı event'ler her kayıt için gönderilmez:\n\n- **`sales_invoice` `update`:** yalnızca e-Fatura ya da e-Arşiv belgesi olan (`relationships.active_e_document` tipi `e_invoices` ya da `e_archives`) faturalar için gönderilir; e-SMM'si olan faturalar için gönderilmez. Teklifler ve tekrarlayan fatura şablonları (`item_type`: `estimate`, `recurring_invoice`, `recurring_estimate`, `recurring_export`) için gönderilmez. `create` bu türler için de gönderilir; gerekiyorsa `item_type` ile ayıklayın.\n- **`purchase_bill` `create` ve `update`:** gelen bir e-Faturaya bağlı (`relationships.active_e_document` dolu) fiş/faturalar ve tekrarlayan fiş/fatura şablonları (`item_type`: `recurring_purchase_bill`) için gönderilmez. Gelen e-Faturaları `inbound_e_invoice` event'iyle izleyin.\n- **`stock_movement`:** stok güncellemesinden ve depo transferinden doğan stok hareketleri için `create`, `update` ve `delete` gönderilmez. Stok güncellemelerini `stock_update` event'iyle izleyin; depo transferleri için webhook yoktur.\n\n## Webhook isteği\n\nAbone olduğunuz event gerçekleştiğinde webhook'un `uri` adresine `Content-Type: application/json` ile bir `POST` isteği gönderilir:\n\n```json\n{\n  \"event_id\": \"9f2c4e7a1b3d5f60718293a4b5c6d7e8\",\n  \"company_id\": 123,\n  \"resource\": \"contact\",\n  \"action\": \"update\",\n  \"event_date\": \"2025-01-10T10:55:00Z\",\n  \"data\": {\n    \"id\": 456,\n    \"company_id\": 123,\n    \"created_at\": \"2025-01-09T08:00:00.000Z\",\n    \"updated_at\": \"2025-01-10T10:54:59.123Z\",\n    \"data\": { \"id\": \"456\", \"type\": \"contacts\", \"attributes\": { \"name\": \"...\" } }\n  }\n}\n```\n\n| Alan | Açıklama |\n| --- | --- |\n| `event_id` | Event'in bu webhook için kimliği; aynı event'in tekrar gönderimlerinde değişmez. Tekrar gelen istekleri ayıklamak için kullanın; biçimine güvenmeyin, yalnızca eşitlik için karşılaştırın |\n| `company_id` | Firma ID |\n| `resource` | Webhook'un `model` değeri |\n| `action` | `create`, `update` veya `delete` |\n| `event_date` | Paraşüt'ün event'i işlediği zaman (ISO 8601, UTC). Kaydın değiştiği an değildir; sıralama için kullanmayın |\n| `data` | Kaydın verisi (nesne) |\n\n`data`, kaydın API v4'teki JSON:API gösterimini (`data.data`, varsa `data.included`) ve en üst seviyede `id`, `company_id`, `created_at`, `updated_at` alanlarını içerir. `company` event'inde ise `data` firmanın şu alanlarını düz olarak içerir: `id`, `name`, `legal_name`, `tax_number`, `tax_office`, `mersis_no`, `city`, `district`, `occupation_field`, `category`, `owner_email`, `contact_person`, `contact_phone_number`, `e_invoice_vkn`, `e_invoicing_enabled`, `e_invoice_inbox`, `e_invoice_outbox`, `e_invoice_trade_registry`, `trial_status`, `trial_end_date`, `new_subscription_status`, `subscription_renewal_date`, `accessible_until`, `tmp_access_end_date`, `subscription_tmp_access_end_date`, `credit_balance`, `credit_service_balance`, `logo_url`, `created_at`, `updated_at`.\n\n`delete` event'inde `data`, kaydın silinmeden hemen önceki hâlidir ve diğer event'lerle aynı yapıdadır; kayıtla birlikte silinen ilişkili kayıtlar `data.included` içinde yer almayabilir.\n\nHer `model` için gövdenin şeması **WEBHOOK İSTEKLERİ** bölümündedir.\n\n`data`'ya zamanla yeni alanlar, enum alanlarına yeni değerler eklenebilir. Bilinmeyen alanları ve değerleri yok sayın ve gövdeye katı bir şema doğrulaması uygulamayın; garanti edilen alanlar yukarıda listelenenlerdir.\n\n## Webhook isteğini doğrulama\n\nWebhook oluştururken bir `client_key` belirlersiniz: `A-Z`, `a-z` ve `0-9` karakterlerinden oluşan, tam **64 karakterlik** gizli bir değer. Örneğin `openssl rand -hex 32` komutuyla üretebilirsiniz. Her webhook isteği bu değeri `X-Client-Key` header'ında taşır:\n\n```\nX-Client-Key: <client_key>\n```\n\nİsteğin Paraşüt'ten geldiğini doğrulamak için header'daki değeri sakladığınız `client_key` ile karşılaştırın. Zamanlama saldırılarına karşı sabit zamanlı bir karşılaştırma kullanın (ör. Ruby'de `Rack::Utils.secure_compare`, Node.js'te `crypto.timingSafeEqual`) ve eşleşmeyen istekleri reddedin.\n\n`client_key` API yanıtlarında hiçbir zaman dönmez; değeri kendi tarafınızda güvenli biçimde saklayın. Değeri kaybederseniz ya da sızdığından şüphelenirseniz webhook'u yeni bir `client_key` ile güncelleyin ([Update](#operation/updateWebhook)); sonraki istekler yeni değerle gönderilir. `client_key` silinemez, yalnızca değiştirilebilir.\n\n`uri` HTTPS olmalıdır; `http` adresler kabul edilmez. `uri` internetten erişilebilen bir adres olmalıdır: özel ağ, yerel (`localhost`) ya da bağlantı-yerel (link-local) adreslere işaret eden bir `uri` oluşturma ve güncellemede **422** ile reddedilebilir ve bu adreslere webhook isteği gönderilmeyebilir.\n\nİstekleri kaynak IP'ye göre de kısıtlamak isterseniz Paraşüt'ün çıkış IP adreslerini destek ekibinden talep edebilirsiniz.\n\n## Teslimat ve yeniden deneme\n\nEndpoint'iniz `2xx` döndüğünde istek teslim edilmiş sayılır. Bağlantı 10 saniyede kurulamazsa ya da yanıt 30 saniyede gelmezse istek başarısız sayılır.\n\n| Durum | Ne olur |\n| --- | --- |\n| `2xx` | Teslim edildi |\n| `5xx`, `408`, `429`, zaman aşımı, bağlantı ya da SSL hatası | Artan aralıklarla 10 kereye kadar, yaklaşık 4–5 saat boyunca yeniden denenir; sonra bu event için istek gönderilmez |\n| Diğer `4xx`, `3xx` | Yeniden denenmez; yönlendirmeler takip edilmez |\n\nZaman aşımı süreleri, deneme sayısı ve deneme aralıkları zamanla değişebilir.\n\nAynı event size birden fazla kez ulaşabilir; tekrarları `event_id` ile ayıklayın. Uzun süren işleri isteği aldıktan sonra arka planda yapın ve hemen `2xx` dönün.\n\nSürekli başarısız olan webhook'lar devre dışı bırakılabilir.\n\n## Teslimat garantisi yoktur\n\nWebhook istekleri en iyi çaba ilkesiyle gönderilir; her değişiklik için bir istek gönderileceği garanti edilmez. Kısa sürede art arda değişen bir kayıt için yalnızca son hâli gönderilebilir: örneğin bir kayıt için `create` isteği hiç gelmeden `update` ya da `delete` isteği gelebilir. Kayıtların eksiksiz bir kopyasını tutmanız gerekiyorsa webhook isteklerini bir değişiklik bildirimi olarak kullanın ve verileri düzenli aralıklarla API'den eşitleyin.\n\n## Sıralama garantisi yoktur\n\nWebhook istekleri, işlemlerin Paraşüt'te gerçekleştiği sırayla gelmeyebilir; sıra garanti edilmez. Örneğin bir kayıt art arda iki kez güncellendiyse ikinci güncellemenin isteği ilkinden önce gelebilir; bir kaydın `update` isteği `create` isteğinden önce gelebilir. `event_date` sıralama için uygun değildir.\n\nGelen istekleri şu kurallarla değerlendirin:\n\n- Aynı kayda (`resource` + `data.id`) ait istekleri `data.updated_at` değerine göre karşılaştırın; `updated_at` değeri daha eski olan bir isteği daha yenisinin üzerine işlemeyin.\n- Bir kayıt için `delete` isteği aldıktan sonra aynı kayda ait gelen `create` ve `update` isteklerini işlemeyin. Kaydın son güncellemesine ait istek, silme isteğinden sonra ulaşabilir; silinmiş bir kaydı bu istekle yeniden oluşturmayın.\n- Kaydın güncel hâline ihtiyacınız olduğunda onu API'den okuyun."
    },
    {
      "name": "WebhookEvents",
      "x-displayName": "WEBHOOK İSTEKLERİ",
      "description": "Abone olduğunuz event gerçekleştiğinde Paraşüt'ün webhook'un `uri` adresine gönderdiği `POST` istekleri. Bu istekleri siz çağırmazsınız; Paraşüt sizin sunucunuza gönderir.\n\nHer `model` için bir istek tanımı vardır. Gövdenin zarfı (`event_id`, `company_id`, `resource`, `action`, `event_date`, `data`) hepsinde aynıdır; `data` modele göre değişir. Kimlik doğrulama, teslimat, yeniden deneme ve sıralama kuralları **WEBHOOK** bölümündedir.\n\nŞemalar gövdede en az bulunacak alanları tanımlar. Gövdeye yeni alanlar, enum alanlarına yeni değerler eklenebilir, isteklere yeni header'lar eklenebilir; bilinmeyen alanları, değerleri ve header'ları yok sayın."
    }
  ],
  "paths": {
    "/{company_id}/accounts": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Accounts"
        ],
        "operationId": "listAccounts",
        "summary": "Index",
        "description": "",
        "parameters": [
          {
            "name": "filter[name]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[currency]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[bank_name]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[bank_branch]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[account_type]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[iban]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, balance, balance_in_trl*",
            "schema": {
              "type": "string",
              "default": "-id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Hesaplar",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Account"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Accounts"
        ],
        "operationId": "createAccount",
        "summary": "Create",
        "description": "",
        "requestBody": {
          "$ref": "#/components/requestBodies/createAccountAccountForm"
        },
        "responses": {
          "201": {
            "description": "Hesap",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Account"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/accounts/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Hesap ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Accounts"
        ],
        "operationId": "showAccount",
        "summary": "Show",
        "description": "",
        "responses": {
          "200": {
            "description": "Hesap",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Account"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Accounts"
        ],
        "operationId": "updateAccount",
        "summary": "Edit",
        "description": "",
        "requestBody": {
          "$ref": "#/components/requestBodies/createAccountAccountForm"
        },
        "responses": {
          "200": {
            "description": "Hesap",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Account"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Accounts"
        ],
        "operationId": "deleteAccount",
        "summary": "Delete",
        "description": "",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/accounts/{id}/transactions": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Hesap ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Accounts"
        ],
        "operationId": "listAccountTransactions",
        "summary": "Transactions",
        "description": "",
        "parameters": [
          {
            "name": "filter[date]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: debit_account, credit_account*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "İşlemler",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Transaction"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "accounts",
                              "payments"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/accounts/{id}/debit_transactions": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Kasa/Banka Hesabı ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "Accounts"
        ],
        "operationId": "createDebitTransaction",
        "summary": "Debit Transaction",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: debit_account, credit_account, payments*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createDebitTransactionTransactionForm"
        },
        "responses": {
          "201": {
            "description": "İşlem",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Transaction"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "accounts",
                              "payments"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/accounts/{id}/credit_transactions": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Kasa/Banka Hesabı ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "Accounts"
        ],
        "operationId": "createCreditTransaction",
        "summary": "Credit Transaction",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: debit_account, credit_account, payments*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createDebitTransactionTransactionForm"
        },
        "responses": {
          "201": {
            "description": "İşlem",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Transaction"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "accounts",
                              "payments"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/accounts/{account_id}/transaction_history_items": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "account_id",
          "description": "Hesap ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Accounts"
        ],
        "operationId": "listAccountTransactionHistoryItems",
        "summary": "Transaction history",
        "description": "Kasa/banka hesabının hesap ekstresini döner: hesabın borç ya da alacak tarafında yer aldığı tüm işlemler, en yeniden en eskiye, her satırda o işlemden sonraki yürüyen bakiyeyle (`trl_balance`, `usd_balance`, `eur_balance`, `gbp_balance`). İlk `initial_account_balance` / `balance_adjustment` kaydından daha eski satırlarda bakiyeler `null` döner.\n\nFiltreler `filter[...]` değil, doğrudan sorgu parametresidir. İşlem türü ya da tarih filtresi verildiğinde yürüyen bakiye yeniden hesaplanmaz; her satır güncel bakiyeyi tekrar eder. Sıralama sabittir (tarih ve ID azalan); `sort` kullanılmaz.\n\nYalnızca hesabın kendi para birimindeki bakiye dolu gelir; diğer üç bakiye alanı `null` döner.",
        "parameters": [
          {
            "name": "transaction_type_filter",
            "in": "query",
            "description": "Yalnızca bu türdeki işlemler (tek değer). `filter[...]` değil, doğrudan sorgu parametresidir.",
            "schema": {
              "$ref": "#/components/schemas/TransactionType"
            }
          },
          {
            "name": "tag_ids_filter",
            "in": "query",
            "description": "Virgülle ayrılmış etiket ID'leri; işleme bağlı faturaların, fişlerin ve maaşların etiketlerine bakılır",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "transaction_from_date_filter",
            "in": "query",
            "description": "Bu tarihten itibaren (YYYY-MM-DD, dahil)",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "transaction_to_date_filter",
            "in": "query",
            "description": "Bu tarihe kadar (YYYY-MM-DD, dahil)",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 10
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: transaction, transaction.sales_invoice, transaction.purchase_bill, transaction.opening_balance, transaction.payments*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Hesap ekstresi satırları",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TransactionHistoryItem"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "transactions",
                              "sales_invoices",
                              "purchase_bills",
                              "opening_balances",
                              "payments"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ExportableListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/accounts/{id}/adjust_balance": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Hesap ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "Accounts"
        ],
        "operationId": "adjustAccountBalance",
        "summary": "Adjust balance",
        "description": "Hesabın bakiyesini verilen tarihte verilen tutara sabitler: o tarih için tek bir `balance_adjustment` işlemi oluşturur ya da günceller. Sabitlemeyi geri almak için bu işlemi `DELETE /transactions/{id}` ile silin.\n\n422 koşulları: `Tarih doldurulmalı`, `Meblağ doldurulmalı`, `Hesap arşivlenmiş.`, `Banka entegrasyonu olan hesaplarda bakiye sabitleme yapılamaz.`",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: transactions*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "transactions"
                        ]
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Sabitleme tarihi (YYYY-MM-DD)"
                          },
                          "amount": {
                            "type": "number",
                            "description": "Hesabın bu tarihte göstermesi gereken yeni bakiye; 0 ya da negatif olabilir"
                          },
                          "description": {
                            "type": "string",
                            "description": "Açıklama"
                          }
                        },
                        "required": [
                          "date",
                          "amount"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Hesap",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Account"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "transactions"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/accounts/money_transfers": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "Accounts"
        ],
        "operationId": "createAccountMoneyTransfer",
        "summary": "Money transfer",
        "description": "İki kasa/banka hesabı arasında para transferi oluşturur (`money_transfer` işlemi: alacak tarafı kaynak hesap, borç tarafı hedef hesap). Hesaplar arşivlenmemiş olmalıdır; arşivli ya da bulunamayan hesap için 404 döner.\n\nTutarlar 0'dan büyük ve 10.000.000.000'dan küçük olmalıdır (400 `data->attributes->source_amount must be bigger than zero`, `... must be lower than 10000000000`); aynı para birimindeki hesaplarda iki tutar eşit olmalıdır (400 `amounts cannot be different when currencies of accounts are the same`). 422: `Tarih doldurulmalı`.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: debit_account, credit_account*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "transactions"
                        ]
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "İşlem tarihi (YYYY-MM-DD)"
                          },
                          "description": {
                            "type": "string",
                            "description": "Açıklama"
                          },
                          "source_account_id": {
                            "type": "integer",
                            "description": "Kaynak hesap ID (alacak tarafı)"
                          },
                          "target_account_id": {
                            "type": "integer",
                            "description": "Hedef hesap ID (borç tarafı)"
                          },
                          "source_amount": {
                            "type": "number",
                            "description": "Kaynak hesaptan çıkan tutar (kaynak hesabın para biriminde)"
                          },
                          "target_amount": {
                            "type": "number",
                            "description": "Hedef hesaba giren tutar (hedef hesabın para biriminde)"
                          }
                        },
                        "required": [
                          "date",
                          "source_account_id",
                          "target_account_id",
                          "source_amount",
                          "target_amount"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "İşlem",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Transaction"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "accounts"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/me": {
      "get": {
        "tags": [
          "ApiHome"
        ],
        "operationId": "showMe",
        "summary": "Show",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: user_roles, companies, profile*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Me",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Me"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "user_roles",
                              "companies",
                              "profiles"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/bank_fees": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "BankFees"
        ],
        "operationId": "createBankFee",
        "summary": "Create",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, tags*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createBankFeeBankFeeForm"
        },
        "responses": {
          "201": {
            "description": "Banka Gideri",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BankFee"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/bank_fees/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Banka Gideri ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "BankFees"
        ],
        "operationId": "showBankFee",
        "summary": "Show",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, tags*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Banka Gideri",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BankFee"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "BankFees"
        ],
        "operationId": "updateBankFee",
        "summary": "Edit",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, tags*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createBankFeeBankFeeForm"
        },
        "responses": {
          "200": {
            "description": "Banka Gideri",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BankFee"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "BankFees"
        ],
        "operationId": "deleteBankFee",
        "summary": "Delete",
        "description": "",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/bank_fees/{id}/archive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Banka Gideri ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "BankFees"
        ],
        "operationId": "archiveBankFee",
        "summary": "Archive",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, tags*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Banka Gideri",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BankFee"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/bank_fees/{id}/unarchive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Banka Gideri ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "BankFees"
        ],
        "operationId": "unarchiveBankFee",
        "summary": "Unarchive",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, tags*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Banka Gideri",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BankFee"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/bank_fees/{id}/payments": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Banka Gideri ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "BankFees"
        ],
        "operationId": "listBankFeePayments",
        "summary": "Payments",
        "description": "Banka giderine ait ödemeleri listeler. Her ödeme, ilgili kasa/banka işlemine (`transaction`) bağlıdır.",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: transaction, transaction.payments, transaction.debit_account, transaction.credit_account, transaction.check, transaction.opening_balance, transaction.purchase_bill, transaction.pos_transaction_info, transaction.contact_transfer*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ödemeler",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Payment"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "transactions",
                              "payments",
                              "accounts",
                              "checks",
                              "opening_balances",
                              "purchase_bills",
                              "pos_transaction_infos",
                              "contact_transfers"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "BankFees"
        ],
        "operationId": "payBankFee",
        "summary": "Pay",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: payable, transaction*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/payBankFeePaymentForm"
        },
        "responses": {
          "201": {
            "description": "Ödeme",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Payment"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "sales_invoices",
                              "purchase_bills",
                              "taxes",
                              "bank_fees",
                              "salaries",
                              "checks",
                              "transactions"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/checks": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Checks"
        ],
        "operationId": "listChecks",
        "summary": "Index",
        "description": "Çek ve senetleri listeler. Alınan çek: `issued_by` dolu; verilen çek: `given_to` dolu; ciro edilmiş çek: ikisi de dolu. `meta` içinde filtrelenmiş kümenin ve firmanın toplamları döner (firma ayarında alt toplamlar kapalıysa `0`).",
        "parameters": [
          {
            "name": "filter[issue_date]",
            "in": "query",
            "description": "Düzenlenme tarihi (YYYY-MM-DD); `eq|lt|gt|gteq|lteq|not_eq` operatörleriyle de kullanılabilir",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "filter[due_date]",
            "in": "query",
            "description": "Vade tarihi (YYYY-MM-DD); operatörlerle de kullanılabilir",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "filter[currency]",
            "in": "query",
            "description": "Para birimi",
            "schema": {
              "type": "string",
              "enum": [
                "TRL",
                "USD",
                "EUR",
                "GBP"
              ]
            }
          },
          {
            "name": "filter[net_total]",
            "in": "query",
            "description": "Çek tutarı",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "filter[query]",
            "in": "query",
            "description": "Açıklama, seri numarası ve cari üzerinde metin araması",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[item_type]",
            "in": "query",
            "description": "Virgülle ayrılmış - *Available: outstanding_check_ins, outstanding_check_outs, cashed_check_ins, cashed_check_outs, transferred_check*",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[check_type]",
            "in": "query",
            "description": "Virgülle ayrılmış - *Available: check_types_in, check_types_out, check_types_all*",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, issue_date, due_date, issued_by_id, remaining_in_trl, amount*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: issued_by, given_to, payments*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Çek/Senetler",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Check"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "contacts",
                              "payments"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/CheckListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Checks"
        ],
        "operationId": "createCheck",
        "summary": "Create",
        "description": "Çek/senet oluşturur. `issued_by` (alınan) ya da `given_to` (verilen) ilişkilerinden **tam olarak biri** gönderilir; isteğe bağlı `payable` ile çek bir satış faturasına (`sales_invoices`) ya da fişe/faturaya (`purchase_bills`) öncelikli eşleştirilir. Alınan çek `check_in`, verilen çek `check_out` işlemi oluşturur; `remaining_in_trl` o günkü kurla hesaplanır.\n\n400: `must send one of the issued_by or given_to relations.`, `must send only one of the issued_by or given_to relations not both.`, `payable->data->type must be: sales_invoices, purchase_bills`.\n\n422: `Listelenmemiş müşterilere çek ile ödeme/tahsilat eklenemez.`, `Tarih açılış bakiyesi tarihinden sonra olmalı.`, `diğer banka adı boş olamaz.` (`OTHER` için `bank_name` zorunlu), `hem banka adı hem de diğer banka dolu olamaz.`",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: issued_by, given_to, payments*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "checks"
                        ]
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "net_total": {
                            "type": "number",
                            "description": "Çek tutarı (0'dan büyük)"
                          },
                          "currency": {
                            "type": "string",
                            "enum": [
                              "TRL",
                              "USD",
                              "EUR",
                              "GBP"
                            ]
                          },
                          "issue_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Düzenlenme tarihi; carinin açılış bakiyesi tarihinden sonra olmalı"
                          },
                          "due_date": {
                            "type": "string",
                            "format": "date",
                            "description": "Vade tarihi"
                          },
                          "description": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "bank_identifier": {
                            "$ref": "#/components/schemas/BankIdentifier"
                          },
                          "bank_name": {
                            "type": "string",
                            "description": "Yalnızca `bank_identifier: OTHER` ile; bilinen banka seçildiğinde boş olmalı"
                          },
                          "serial_number": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "net_total",
                          "currency",
                          "issue_date",
                          "due_date"
                        ]
                      },
                      "relationships": {
                        "type": "object",
                        "properties": {
                          "issued_by": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "contacts"
                                    ]
                                  }
                                }
                              }
                            }
                          },
                          "given_to": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "contacts"
                                    ]
                                  }
                                }
                              }
                            }
                          },
                          "payable": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "sales_invoices",
                                      "purchase_bills"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Çek/Senet",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Check"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "contacts",
                              "payments"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/checks/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Çek/Senet ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Checks"
        ],
        "operationId": "showCheck",
        "summary": "Show",
        "description": "Çeki/senedi döner.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: issued_by, given_to, payments, histories*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Çek/Senet",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Check"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "contacts",
                              "payments",
                              "check_histories"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Checks"
        ],
        "operationId": "deleteCheck",
        "summary": "Delete",
        "description": "Çeki ve geçmişindeki tüm işlem ve ödeme kayıtlarını siler; bağlı belgelerin kalan tutarları ve bakiyeler yeniden hesaplanır. Banka entegrasyonundan gelen hareketler silinmez, eşleşmemiş para girişi/çıkışına dönüşür.\n\n422: `Tahsilat/ödeme, bilinmeyen para girişi/bilinmeyen para çıkışı olarak güncellenemedi.`",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/checks/{id}/transfer": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Çek/Senet ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "Checks"
        ],
        "operationId": "transferCheck",
        "summary": "Transfer",
        "description": "Alınan çeki bir tedarikçiye ciro eder: `given_to` atanır, çek tahsil edilmiş sayılır (`is_cashed: true`, `remaining_in_trl: 0`), `date` tarihli bir çek işlemi ve geçmiş kaydı oluşur; isteğe bağlı `payable` (`purchase_bills`) ile tedarikçinin fişine eşleştirilir. `relationships.given_to` zorunludur.\n\n400: `relationships->given_to must be provided`, `payable->data->type must be: purchase_bills`. 422: `Çeki başkasına verdiğiniz için bu işlemi tekrar edemezsiniz.`, `Listelenmemiş müşteriler ile Çek işlemi yapılamaz.`",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: issued_by, given_to, payments*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "checks"
                        ]
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Ciro tarihi"
                          }
                        },
                        "required": [
                          "date"
                        ]
                      },
                      "relationships": {
                        "type": "object",
                        "properties": {
                          "given_to": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "contacts"
                                    ]
                                  }
                                }
                              }
                            }
                          },
                          "payable": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "purchase_bills"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Çek/Senet",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Check"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "contacts",
                              "payments"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/checks/{id}/payments": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Çek/Senet ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Checks"
        ],
        "operationId": "listCheckPayments",
        "summary": "Payments",
        "description": "Çekin tahsilat/ödeme kayıtlarını listeler; parametreler ve yanıt `GET /sales_invoices/{id}/payments` ile aynıdır (`payable` ilişkisi `checks`).",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: transaction, transaction.payments, transaction.debit_account, transaction.credit_account, transaction.check, transaction.opening_balance, transaction.purchase_bill, transaction.pos_transaction_info, transaction.contact_transfer*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Çek tahsilat/ödemeleri",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Payment"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "transactions",
                              "payments",
                              "accounts",
                              "checks",
                              "opening_balances",
                              "purchase_bills",
                              "pos_transaction_infos",
                              "contact_transfers"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Checks"
        ],
        "operationId": "createCheckPayment",
        "summary": "Pay",
        "description": "Çeki tahsil eder (alınan çek: `check_cash_in`, hesap borçlanır) ya da öder (verilen çek: `check_cash_out`, hesap alacaklanır). Tutar her zaman çekin tamamıdır: `amount` ve `target_amount` gönderilmez, `description` ve `exchange_rate` dikkate alınmaz. Hesabın para birimi çekin para birimiyle aynı olmalı ve hesabın banka entegrasyonu olmamalıdır.\n\n400: `data->attributes->amount must not be sent for Check payments`, `data->attributes->target_amount must not be sent for Check payments`, `If the payment is for Check, account currency must be same as Check currency`, `Account should not have a bank integration`.\n\n422: `Ödeme / tahsilat yapılacak hesabın para birimi ile çekin para birimi aynı olmalıdır.`, `Transfer edilmiş bir çeke ödeme / tahsilat eklenemez.`, `Çekin ödemesi / tahsilatı var.`",
        "requestBody": {
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "payments"
                        ]
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "İşlem tarihi"
                          },
                          "account_id": {
                            "type": "integer",
                            "description": "Çekle aynı para biriminde, banka entegrasyonu olmayan aktif hesap"
                          }
                        },
                        "required": [
                          "date",
                          "account_id"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Ödeme",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Payment"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "transactions",
                              "checks"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/comments": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Comments"
        ],
        "operationId": "listComments",
        "summary": "Index",
        "description": "Bir kaydın yorumlarını listeler. `commentable_type` ve `commentable_id` zorunludur ve doğrudan sorgu parametresidir (`filter[...]` değil). Sonuçlar her zaman en yeniden en eskiye gelir; `sort` yalnızca `id` alır ve eşitlikleri çözer.\n\n422: geçersiz ya da eksik `commentable_type` (`commentable_type must be one of: PurchaseBill, SalesInvoice, EInvoice, Contact, Employee, Tax, BankFee, Salary, ShipmentDocument, SalesOffer, Product, WarehouseTransfer`). 404: kayıt firmada bulunamadı.",
        "parameters": [
          {
            "name": "commentable_type",
            "in": "query",
            "required": true,
            "description": "Yorumlanan kaydın türü (sınıf adı)",
            "schema": {
              "$ref": "#/components/schemas/CommentableClass"
            }
          },
          {
            "name": "commentable_id",
            "in": "query",
            "required": true,
            "description": "Yorumlanan kaydın ID'si",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: commentable*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Yorumlar",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Comment"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "purchase_bills",
                              "sales_invoices",
                              "e_invoices",
                              "contacts",
                              "employees",
                              "taxes",
                              "bank_fees",
                              "salaries",
                              "shipment_documents",
                              "sales_offers",
                              "products",
                              "warehouse_transfers"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity - geçersiz ya da eksik `commentable_type`, ya da `page[size]` 25'ten büyük",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Comments"
        ],
        "operationId": "createComment",
        "summary": "Create",
        "description": "Bir kayda yorum ekler; yorumu yapan, isteği yapan kullanıcıdır. Bir kayıtta en fazla 120 yorum olabilir (422 `Maksimum 120 yorum sayısına ulaşıldı.`). Fiş/fatura, satış faturası, cari, teklif ve depo transferi yorumlarında ilgili kullanıcılara bildirim e-postası gider; paylaşım iş birlikçilerine yalnızca `is_public: true` ise.\n\nDosya eki API ile gönderilemez (yalnızca Paraşüt arayüzünden). 400: `relationships->commentable->type must be: purchase_bills, sales_invoices, e_invoices, contacts, employees, taxes, bank_fees, salaries, shipment_documents, sales_offers, products, warehouse_transfers`.",
        "requestBody": {
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "comments"
                        ]
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "comment": {
                            "type": "string",
                            "description": "Yorum metni (sunucuda HTML kaçışlanır)"
                          },
                          "is_public": {
                            "type": "boolean",
                            "default": false,
                            "description": "`true` ise paylaşım iş birlikçilerine de bildirilir"
                          }
                        },
                        "required": [
                          "comment"
                        ]
                      },
                      "relationships": {
                        "type": "object",
                        "properties": {
                          "commentable": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "purchase_bills",
                                      "sales_invoices",
                                      "e_invoices",
                                      "contacts",
                                      "employees",
                                      "taxes",
                                      "bank_fees",
                                      "salaries",
                                      "shipment_documents",
                                      "sales_offers",
                                      "products",
                                      "warehouse_transfers"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Yorum",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Comment"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "purchase_bills",
                              "sales_invoices",
                              "e_invoices",
                              "contacts",
                              "employees",
                              "taxes",
                              "bank_fees",
                              "salaries",
                              "shipment_documents",
                              "sales_offers",
                              "products",
                              "warehouse_transfers"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/comments/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Yorum ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Comments"
        ],
        "operationId": "showComment",
        "summary": "Show",
        "description": "Yorumu döner. Yorumun bağlı olduğu kayıt bu firmada değilse 404 döner.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: commentable*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Yorum",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Comment"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "purchase_bills",
                              "sales_invoices",
                              "e_invoices",
                              "contacts",
                              "employees",
                              "taxes",
                              "bank_fees",
                              "salaries",
                              "shipment_documents",
                              "sales_offers",
                              "products",
                              "warehouse_transfers"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Comments"
        ],
        "operationId": "updateComment",
        "summary": "Update",
        "description": "Yorum metnini günceller; yalnızca `comment` değiştirilebilir (`is_public` ve ek değiştirilemez). Kayıt üzerinde tam yetkisi olan her kullanıcı düzenleyebilir.",
        "requestBody": {
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "comments"
                        ]
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "comment": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "comment"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Yorum",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Comment"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Comments"
        ],
        "operationId": "deleteComment",
        "summary": "Delete",
        "description": "Yorumu siler.",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/contacts": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Contacts"
        ],
        "operationId": "listContacts",
        "summary": "Index",
        "description": "",
        "parameters": [
          {
            "name": "filter[name]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[email]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[tax_number]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[tax_office]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[city]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[account_type]",
            "in": "query",
            "description": "Available: *customer, supplier*\n",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, balance, name, email*",
            "schema": {
              "type": "string",
              "default": "-balance"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, contact_portal, contact_people*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Müşteriler/Tedarikçiler",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Contact"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "contact_portals",
                              "contact_people"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Contacts"
        ],
        "operationId": "createContact",
        "summary": "Create",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, contact_portal, contact_people*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createContactContactForm"
        },
        "responses": {
          "201": {
            "description": "Müşteri/Tedarikçi",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Contact"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "contact_portals",
                              "contact_people"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/contacts/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Müşteri/Tedarikçi ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Contacts"
        ],
        "operationId": "showContact",
        "summary": "Show",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, contact_portal, contact_people*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Müşteri/Tedarikçi",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Contact"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "contact_portals",
                              "contact_people"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Contacts"
        ],
        "operationId": "updateContact",
        "summary": "Edit",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, contact_portal, contact_people*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createContactContactForm"
        },
        "responses": {
          "200": {
            "description": "Müşteri/Tedarikçi",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Contact"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "contact_portals",
                              "contact_people"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Contacts"
        ],
        "operationId": "deleteContact",
        "summary": "Delete",
        "description": "",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/contacts/{id}/contact_debit_transactions": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Müşteri/Tedarikçi ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "Contacts"
        ],
        "operationId": "collectFromContact",
        "summary": "Tahsilat",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: debit_account, credit_account, payments*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "transactions"
                        ]
                      },
                      "attributes": {
                        "$ref": "#/components/schemas/ContactCollectionFormAttributes"
                      }
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "İşlem",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Transaction"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "accounts",
                              "payments"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/contacts/{id}/contact_credit_transactions": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Müşteri/Tedarikçi ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "Contacts"
        ],
        "operationId": "payToContact",
        "summary": "Ödeme",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: debit_account, credit_account, payments*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "transactions"
                        ]
                      },
                      "attributes": {
                        "$ref": "#/components/schemas/ContactPaymentFormAttributes"
                      }
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "İşlem",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Transaction"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "accounts",
                              "payments"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/contacts/{contact_id}/transaction_history_items": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "contact_id",
          "description": "Müşteri/Tedarikçi ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Contacts"
        ],
        "operationId": "listContactTransactionHistoryItems",
        "summary": "Transaction history",
        "description": "Carinin hesap ekstresini döner: carinin borç ya da alacak tarafında yer aldığı tüm işlemler, en yeniden en eskiye, her satırda o işlemden sonraki yürüyen bakiyeyle (`trl_balance`, `usd_balance`, `eur_balance`, `gbp_balance`). İlk `initial_account_balance` / `balance_adjustment` kaydından daha eski satırlarda bakiyeler `null` döner.\n\nFiltreler `filter[...]` değil, doğrudan sorgu parametresidir. İşlem türü ya da tarih filtresi verildiğinde yürüyen bakiye yeniden hesaplanmaz; her satır güncel bakiyeyi tekrar eder. Sıralama sabittir (tarih ve ID azalan); `sort` kullanılmaz.",
        "parameters": [
          {
            "name": "transaction_type_filter",
            "in": "query",
            "description": "Yalnızca bu türdeki işlemler (tek değer). `filter[...]` değil, doğrudan sorgu parametresidir.",
            "schema": {
              "$ref": "#/components/schemas/TransactionType"
            }
          },
          {
            "name": "tag_ids_filter",
            "in": "query",
            "description": "Virgülle ayrılmış etiket ID'leri; işleme bağlı faturaların, fişlerin ve maaşların etiketlerine bakılır",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "transaction_from_date_filter",
            "in": "query",
            "description": "Bu tarihten itibaren (YYYY-MM-DD, dahil)",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "transaction_to_date_filter",
            "in": "query",
            "description": "Bu tarihe kadar (YYYY-MM-DD, dahil)",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 10
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: transaction, transaction.sales_invoice, transaction.purchase_bill, transaction.opening_balance, transaction.payments*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Hesap ekstresi satırları",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TransactionHistoryItem"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "transactions",
                              "sales_invoices",
                              "purchase_bills",
                              "opening_balances",
                              "payments"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ExportableListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_archives": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "EArchives"
        ],
        "operationId": "createEArchive",
        "summary": "Create",
        "description": "",
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "e_archives"
                        ]
                      },
                      "attributes": {
                        "$ref": "#/components/schemas/EArchiveFormAttributes"
                      },
                      "relationships": {
                        "type": "object",
                        "properties": {
                          "sales_invoice": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "sales_invoices"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Trackable Job",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TrackableJob"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_archives/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "EArchive ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "EArchives"
        ],
        "operationId": "showEArchive",
        "summary": "Show",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: sales_invoice*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "e-Arşiv",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/EArchive"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "sales_invoices"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_archives/{id}/pdf": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "EArchive ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "EArchives"
        ],
        "operationId": "showEArchivePdf",
        "summary": "Show PDF",
        "description": "",
        "responses": {
          "200": {
            "description": "e-Arşiv PDF",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/EDocumentPdf"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_archives/{id}/signed_ubl": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "e-Arşiv ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "EArchives"
        ],
        "operationId": "showEArchiveSignedUbl",
        "summary": "Signed UBL",
        "description": "e-Arşiv faturasının imzalı UBL (XML) dosyasını döner. Dosya sunucuda hazırsa `application/xml` olarak indirilir (POS satışlarında imzasız UBL); e-belge sağlayıcısında tutuluyorsa imzalı bir indirme adresine 302 ile yönlendirilir.\n\nDosya henüz hazır değilse `signed ubl is not ready` metniyle (JSON:API değil, düz metin) 404 döner ve arka planda getirme başlatılır; bir süre sonra tekrar deneyin.",
        "responses": {
          "200": {
            "description": "e-Arşiv imzalı UBL (XML); `Content-Disposition: attachment; filename=\"<id>_ubl.xml\"`",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "Sağlayıcıdaki imzalı dosyaya yönlendirme",
            "headers": {
              "Location": {
                "description": "İmzalı UBL dosyasının adresi",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found - dosya henüz hazır değil; gövde düz metin `signed ubl is not ready`",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_despatch_inboxes": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "EDespatchInboxes"
        ],
        "operationId": "listEDespatchInboxes",
        "summary": "Index",
        "description": "Verilen vergi numarasına ait aktif e-İrsaliye posta kutularını listeler.",
        "parameters": [
          {
            "name": "tax_number",
            "in": "query",
            "required": true,
            "description": "VKN veya TCKN",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "e-İrsaliye posta kutuları",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EDespatchInbox"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_invoice_inboxes": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "EInvoiceInboxes"
        ],
        "operationId": "listEInvoiceInboxes",
        "summary": "Index",
        "description": "",
        "parameters": [
          {
            "name": "filter[vkn]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          }
        ],
        "responses": {
          "200": {
            "description": "E-fatura posta kutuları",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EInvoiceInbox"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_invoices": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "EInvoices"
        ],
        "operationId": "createEInvoice",
        "summary": "Create",
        "description": "",
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "e_invoices"
                        ]
                      },
                      "attributes": {
                        "$ref": "#/components/schemas/EInvoiceFormAttributes"
                      },
                      "relationships": {
                        "type": "object",
                        "properties": {
                          "invoice": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "sales_invoices"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Trackable Job",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TrackableJob"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_invoices/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "EInvoice ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "EInvoices"
        ],
        "operationId": "showEInvoice",
        "summary": "Show",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: invoice*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "e-Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/EInvoice"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "sales_invoices",
                              "purchase_bills"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_invoices/{id}/pdf": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "EInvoice ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "EInvoices"
        ],
        "operationId": "showEInvoicePdf",
        "summary": "Show PDF",
        "description": "",
        "responses": {
          "200": {
            "description": "e-Fatura PDF",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/EDocumentPdf"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_invoices/{id}/resend": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "EInvoice ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "EInvoices"
        ],
        "operationId": "resendEInvoice",
        "summary": "Resend",
        "description": "Gönderimi başarısız olmuş (status `failed`) bir e-Faturayı tekrar gönderir. Gönderim arka planda yapılır; işlemin sonucunu dönen trackable_jobs kaydını sorgulayarak takip edebilirsiniz.\n\nDurumu `failed` olmayan e-Faturalar için, firmanın aktif bir e-Fatura entegrasyonu yoksa veya aynı satış faturası için gönderim zaten sürüyorsa 422 döner.\n\n**Yeniden gönderime uygunluk:** Firmanın e-Fatura entegrasyonuna bağlı olarak `status_code` değeri de kontrol edilir: aşağıdaki kodlardan biri değilse istek yine 202 ile kabul edilir, ancak trackable_jobs kaydı `status: error` ve `E-faturanız yeniden gönderime uygun değil` hatasıyla sonuçlanır.\n\n`1110, 1111, 1120, 1130, 1131, 1132, 1133, 1140, 1141, 1142, 1143, 1150, 1160, 1161, 1162, 1170, 1171, 1172, 1175, 1176, 1177, 1180, 1181, 1182, 1183, 1190, 1195, 1215, 1230`",
        "responses": {
          "202": {
            "description": "Trackable Job",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TrackableJob"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_invoices/{id}/signed_ubl": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "e-Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "EInvoices"
        ],
        "operationId": "showEInvoiceSignedUbl",
        "summary": "Signed UBL",
        "description": "e-Faturanın imzalı UBL (XML) dosyasını döner. Dosya sunucuda hazırsa `application/xml` olarak indirilir (POS satışlarında imzasız UBL); e-belge sağlayıcısında tutuluyorsa imzalı bir indirme adresine 302 ile yönlendirilir.\n\nDosya henüz hazır değilse `signed ubl is not ready` metniyle (JSON:API değil, düz metin) 404 döner ve arka planda getirme başlatılır; bir süre sonra tekrar deneyin.",
        "responses": {
          "200": {
            "description": "e-Fatura imzalı UBL (XML); `Content-Disposition: attachment; filename=\"<id>_ubl.xml\"`",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "Sağlayıcıdaki imzalı dosyaya yönlendirme",
            "headers": {
              "Location": {
                "description": "İmzalı UBL dosyasının adresi",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found - dosya henüz hazır değil; gövde düz metin `signed ubl is not ready`",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_invoices/{id}/respond": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "e-Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "EInvoices"
        ],
        "operationId": "respondEInvoice",
        "summary": "Respond",
        "description": "Gelen ticari e-Faturayı yanıtlar (kabul ya da ret). Yanıt arka planda gönderilir; sonucu dönen trackable_jobs kaydından takip edin. Yanıt e-Faturanın `response_type` alanına yansır ve `include=responses` ile ayrıntısı (`e_invoice_responses`) görülebilir.\n\nYalnızca yanıtlanabilir e-Faturalar için çalışır: `status` `successful`, senaryo `commercial`, yanıt süresi dolmamış ve daha önce yanıtlanmamış. Aksi halde istek 202 ile kabul edilir ama iş bir şey yapmadan `done` biter. İstek başına bir iş kuyruğa alınır.\n\nİş hataları (trackable_jobs `status: error`): `Aktif e-fatura entegrasyonu sağlayıcısı bulunamadı.`, `Gönderilen e-Fatura kabul yanıtlanamaz.`, `Yanıt beklemeyen e-Fatura yanıtlanamaz.`, `Temel e-Fatura yanıtlanamaz.`, `Son yanıtlama tarihi geçmiş ticari e-Fatura yanıtlanamaz.`, `e-Fatura yanıtı gönderilemedi. Lütfen tekrar deneyiniz.`, `Bakım çalışması nedeniyle e-belge işlemleri geçici olarak durdurulmuştur. Lütfen daha sonra tekrar deneyiniz.`",
        "requestBody": {
          "description": "`data.type` gönderilmesi gerekmez; yalnızca `data.attributes` okunur.",
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "response_type": {
                            "type": "string",
                            "description": "Kabul ya da ret",
                            "enum": [
                              "accept",
                              "reject"
                            ]
                          },
                          "note": {
                            "type": "string",
                            "description": "Yanıt notu"
                          }
                        },
                        "required": [
                          "response_type"
                        ]
                      }
                    },
                    "required": [
                      "attributes"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Trackable Job",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TrackableJob"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - `response_type must be: accept or reject` ya da eksik `data`/`attributes`",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_invoices/{id}/create_purchase_bill": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "e-Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "EInvoices"
        ],
        "operationId": "createEInvoicePurchaseBill",
        "summary": "Create purchase bill",
        "description": "Gelen e-Faturadan gider fişi/faturası oluşturur (eşzamanlı, 201). Gerekirse tedarikçi carisi, ürünler ve özel gereksinim bilgileri (IDIS) de oluşturulur; e-Fatura oluşan fişe bağlanır ve aynı e-Fatura için ikinci çağrı 422 döner.\n\nParametreler düz JSON gövdesinde, `data` altında değil, gönderilir ve JSON türünde olmalıdır (`\"true\"`/`\"false\"` metinleri anlaşılmaz).\n\n422 koşulları: `e-invoice already has a purchase bill`, `Sadece gelen e-Faturalar için kullanılabilir.`, `Aktarılan e-Fatura hazırlanıyor, lütfen birkaç saniye sonra tekrar deneyin.`, `Fiş/Faturanın tedarikçisinin cari takibi yapılır olmak zorundadır.`, `E-fatura tipi içeri alınmaya uygun değil.`, `Arşivlenmiş E-faturadan gider faturası oluşturulamaz.`",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, spender, details, details.product, payments, tags, active_e_document, pay_to, supplier*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Düz JSON gövdesi (JSON:API değil); değerler JSON türünde olmalıdır.",
          "required": false,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "properties": {
                  "details": {
                    "type": "boolean",
                    "default": true,
                    "description": "`true`: fatura kalemleri aktarılır (detaylı fiş); `false`: kalemsiz hızlı fiş"
                  },
                  "supplier": {
                    "description": "`true`: UBL'deki VKN ile cari bulunur ya da oluşturulur; bir cari ID (tam sayı): VKN eşleşmezse bu cari kullanılır; `false`: tedarikçi atanmaz. Varsayılan `true`."
                  },
                  "warehouse": {
                    "type": "integer",
                    "description": "Tüm kalemlere uygulanacak depo ID'si"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Oluşturulan fiş/fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PurchaseBill"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "employees",
                              "purchase_bill_details",
                              "products",
                              "payments",
                              "tags",
                              "e_invoices",
                              "contacts"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_invoices/{id}/archive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "e-Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "EInvoices"
        ],
        "operationId": "archiveEInvoice",
        "summary": "Archive",
        "description": "Gelen e-Faturayı arşivler.\n\n422 koşulları: `E-fatura hali hazırda arşivlenmiş.`, `Gider faturası oluşturulmuş E-fatura arşivlenemez.`",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: invoice, responses*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "e-Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/EInvoice"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "sales_invoices",
                              "purchase_bills",
                              "e_invoice_responses"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_invoices/{id}/unarchive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "e-Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "EInvoices"
        ],
        "operationId": "unarchiveEInvoice",
        "summary": "Unarchive",
        "description": "Arşivlenmiş e-Faturayı arşivden çıkarır.\n\n422 koşulları: `E-fatura hali hazırda arşivden çıkartılmış.`, `Gider faturası oluşturulmuş E-fatura arşivlenemez.`",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: invoice, responses*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "e-Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/EInvoice"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "sales_invoices",
                              "purchase_bills",
                              "e_invoice_responses"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_smms": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "ESmms"
        ],
        "operationId": "createESmm",
        "summary": "Create",
        "description": "",
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "e_smms"
                        ]
                      },
                      "attributes": {
                        "$ref": "#/components/schemas/ESmmCommonFormAttributes"
                      },
                      "relationships": {
                        "type": "object",
                        "properties": {
                          "sales_invoice": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "sales_invoices"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "e-Makbuz",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ESmm"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "sales_invoices",
                              "purchase_bills"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_smms/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "ESmm ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "ESmms"
        ],
        "operationId": "showESmm",
        "summary": "Show",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: sales_invoice*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "e-Makbuz",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ESmm"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/e_smms/{id}/pdf": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "ESmm ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "ESmms"
        ],
        "operationId": "showESmmPdf",
        "summary": "Show PDF",
        "description": "",
        "responses": {
          "200": {
            "description": "e-Makbuz PDF",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/EDocumentPdf"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/employees": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Employees"
        ],
        "operationId": "listEmployees",
        "summary": "Index",
        "description": "",
        "parameters": [
          {
            "name": "filter[name]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[email]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, balance, name, email*",
            "schema": {
              "type": "string",
              "default": "-balance"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, managed_by_user, managed_by_user_role*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Çalışanlar",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Employee"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "users",
                              "user_roles"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Employees"
        ],
        "operationId": "createEmployee",
        "summary": "Create",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, managed_by_user, managed_by_user_role*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createEmployeeEmployeeForm"
        },
        "responses": {
          "201": {
            "description": "Çalışan",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Employee"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "users",
                              "user_roles"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/employees/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Çalışan ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Employees"
        ],
        "operationId": "showEmployee",
        "summary": "Show",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, managed_by_user, managed_by_user_role*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Çalışan",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Employee"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "users",
                              "user_roles"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Employees"
        ],
        "operationId": "updateEmployee",
        "summary": "Edit",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, managed_by_user, managed_by_user_role*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createEmployeeEmployeeForm"
        },
        "responses": {
          "200": {
            "description": "Çalışan",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Employee"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "users",
                              "user_roles"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Employees"
        ],
        "operationId": "deleteEmployee",
        "summary": "Delete",
        "description": "",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/employees/{id}/archive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Çalışan ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "Employees"
        ],
        "operationId": "archiveEmployee",
        "summary": "Archive",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, managed_by_user, managed_by_user_role*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Çalışan",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Employee"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "users",
                              "user_roles"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/employees/{id}/unarchive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Çalışan ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "Employees"
        ],
        "operationId": "unarchiveEmployee",
        "summary": "Unarchive",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, managed_by_user, managed_by_user_role*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Çalışan",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Employee"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "users",
                              "user_roles"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/employees/{employee_id}/balance_info": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "employee_id",
          "description": "Çalışan ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Employees"
        ],
        "operationId": "showEmployeeBalanceInfo",
        "summary": "Balance info",
        "description": "Çalışanın bakiye özetini döner: gecikmiş ve vadesi gelmemiş maaşlar ile masraf fişleri, para birimi bazında tutarlar ve TL karşılıkları. `salaries` ve `purchase_bills` ilişkileri çalışanın ödenmemiş kayıtlarıdır.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: salaries, purchase_bills*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Çalışan bakiye özeti",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/EmployeeBalanceInfo"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "salaries",
                              "purchase_bills"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/employees/{employee_id}/transaction_history_items": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "employee_id",
          "description": "Çalışan ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Employees"
        ],
        "operationId": "listEmployeeTransactionHistoryItems",
        "summary": "Transaction history",
        "description": "Çalışanın hesap ekstresini döner: çalışanın borç ya da alacak tarafında yer aldığı tüm işlemler, en yeniden en eskiye, her satırda o işlemden sonraki yürüyen bakiyeyle (`trl_balance`, `usd_balance`, `eur_balance`, `gbp_balance`). İlk `initial_account_balance` / `balance_adjustment` kaydından daha eski satırlarda bakiyeler `null` döner.\n\nFiltreler `filter[...]` değil, doğrudan sorgu parametresidir. İşlem türü ya da tarih filtresi verildiğinde yürüyen bakiye yeniden hesaplanmaz; her satır güncel bakiyeyi tekrar eder. Sıralama sabittir (tarih ve ID azalan); `sort` kullanılmaz.",
        "parameters": [
          {
            "name": "transaction_type_filter",
            "in": "query",
            "description": "Yalnızca bu türdeki işlemler (tek değer). `filter[...]` değil, doğrudan sorgu parametresidir.",
            "schema": {
              "$ref": "#/components/schemas/TransactionType"
            }
          },
          {
            "name": "tag_ids_filter",
            "in": "query",
            "description": "Virgülle ayrılmış etiket ID'leri; işleme bağlı faturaların, fişlerin ve maaşların etiketlerine bakılır",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "transaction_from_date_filter",
            "in": "query",
            "description": "Bu tarihten itibaren (YYYY-MM-DD, dahil)",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "transaction_to_date_filter",
            "in": "query",
            "description": "Bu tarihe kadar (YYYY-MM-DD, dahil)",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 10
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: transaction, transaction.sales_invoice, transaction.purchase_bill, transaction.opening_balance, transaction.payments*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Hesap ekstresi satırları",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/TransactionHistoryItem"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "transactions",
                              "sales_invoices",
                              "purchase_bills",
                              "opening_balances",
                              "payments"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ExportableListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/employees/{id}/employee_debit_transactions": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Çalışan ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "Employees"
        ],
        "operationId": "payToEmployee",
        "summary": "Ödeme",
        "description": "Çalışana ödeme ekler (`employee_debit` işlemi: borç tarafı çalışan, alacak tarafı ödeme hesabı). `payable_ids` ile çalışanın ödenmemiş maaşlarını ve masraf fişlerini öncelikli olarak eşleştirebilirsiniz. Çalışan için tahsilat (alacak) işlemi yoktur.\n\nBanka entegrasyonu olan hesaplar kullanılamaz (400 `Account should not have a bank integration`). TL dışı hesaplarda `exchange_rate` ya da `target_amount` zorunludur (422 `Döviz kuru doldurulmalı`). Diğer 422 koşulları: `Tarih doldurulmalı`, `Hesap doldurulmalı`, `Meblağ doldurulmalı`.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: debit_account, credit_account, payments*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "transactions"
                        ]
                      },
                      "attributes": {
                        "$ref": "#/components/schemas/EmployeePaymentFormAttributes"
                      }
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "İşlem",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Transaction"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "accounts",
                              "employees",
                              "payments"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/exchange_rates": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "ExchangeRates"
        ],
        "operationId": "listExchangeRates",
        "summary": "Index",
        "description": "Verilen tarih için (varsayılan bugün) USD, EUR ve GBP kurlarını döner: her para birimi için tarihe eşit ya da ondan önceki en son TCMB kuru. Yanıt sayfalanmaz ve `meta` içermez. Henüz kur kaydı yoksa `id` boş ve kurlar `0` gelir.\n\n400: tarih biçimi geçersiz (yanıt gövdesizdir). 404: 2000 yılından önceki tarihler.",
        "parameters": [
          {
            "name": "filter[date]",
            "in": "query",
            "description": "Kur tarihi (YYYY-MM-DD); varsayılan bugün",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Döviz kurları",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ExchangeRate"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - geçersiz tarih biçimi (yanıt gövdesizdir)",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found - 2000 yılından önceki tarih",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/products/{product_id}/inventory_levels": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "product_id",
          "description": "Ürün ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "InventoryLevels"
        ],
        "operationId": "listInventoryLevels",
        "summary": "Index",
        "description": "Ürünün varolan depolardaki tüm stok seviyelerini listeler.",
        "parameters": [
          {
            "name": "filter[warehouses.name]",
            "in": "query",
            "description": "Sonuçların filtrelenmesini istediğiniz depo ismi.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[archived]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "filter[has_stock]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "filter[stock_count]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, stock_count*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: product, warehouse*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Depo stok seviyeleri",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/InventoryLevel"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "products",
                              "warehouses"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/inbound_e_despatches": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "InboundEDespatches"
        ],
        "operationId": "listInboundEDespatches",
        "summary": "Index",
        "description": "Firmaya gelen e-İrsaliyeleri listeler. Varsayılan olarak yalnızca henüz yanıtlanmamış irsaliyeler döner (`filter[responded]=false`); yanıtlananlar için `filter[responded]=true` gönderin. `filter[response_status]` yalnızca `filter[responded]=true` ile birlikte anlamlıdır.\n\nBilinmeyen filtre, sıralama ya da `include` değeri 400 döner; `page[size]` en fazla 25 olabilir (422).",
        "parameters": [
          {
            "name": "filter[issue_date]",
            "in": "query",
            "description": "Düzenlenme tarihi (YYYY-MM-DD); `filter[issue_date][gt]=...` gibi `eq|lt|gt|gteq|lteq|not_eq` operatörleriyle de kullanılabilir",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "filter[query]",
            "in": "query",
            "description": "`contact_name` ve `despatch_no` üzerinde metin araması",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[imported]",
            "in": "query",
            "description": "`true`: yalnızca irsaliyeye dönüştürülmüş (içe aktarılmış) olanlar",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "filter[not_imported]",
            "in": "query",
            "description": "`true`: yalnızca henüz içe aktarılmamış olanlar",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "filter[responded]",
            "in": "query",
            "description": "`false` (varsayılan): yalnızca yanıtlanmamışlar; `true`: yalnızca yanıtlanmışlar",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "filter[response_status]",
            "in": "query",
            "description": "Virgülle ayrılmış yanıt durumları - *Available: waiting, expired, legalized, sent, rejected* (yalnızca `filter[responded]=true` ile)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: issue_date, contact_name*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: shipment_document*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Gelen e-İrsaliyeler",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/InboundEDespatch"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "shipment_documents"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/inbound_e_despatches/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Gelen e-İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "InboundEDespatches"
        ],
        "operationId": "showInboundEDespatch",
        "summary": "Show",
        "description": "Gelen e-İrsaliyeyi döner.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: shipment_document, contact*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Gelen e-İrsaliye",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/InboundEDespatch"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "shipment_documents",
                              "contacts"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/inbound_e_despatches/{id}/pdf": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Gelen e-İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "InboundEDespatches"
        ],
        "operationId": "showInboundEDespatchPdf",
        "summary": "Show PDF",
        "description": "Gelen e-İrsaliyenin PDF'ine erişim bilgisini döner (`url` bir saat geçerlidir). PDF henüz hazır değilse 204 döner.",
        "responses": {
          "200": {
            "description": "Gelen e-İrsaliye PDF",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/EDocumentPdf"
                    }
                  }
                }
              }
            }
          },
          "204": {
            "description": "PDF henüz hazır değil"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/inbound_e_despatches/{id}/ubl": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Gelen e-İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "InboundEDespatches"
        ],
        "operationId": "showInboundEDespatchUbl",
        "summary": "Show UBL",
        "description": "Gelen e-İrsaliyenin UBL dosyasının imzalı indirme adresine 302 ile yönlendirir. Dosya henüz hazır değilse 204 döner.",
        "responses": {
          "204": {
            "description": "UBL henüz hazır değil"
          },
          "302": {
            "description": "UBL dosyasına yönlendirme",
            "headers": {
              "Location": {
                "description": "İmzalı indirme adresi",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/inbound_e_despatches/{id}/accept": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Gelen e-İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "InboundEDespatches"
        ],
        "operationId": "acceptInboundEDespatch",
        "summary": "Accept",
        "description": "Gelen e-İrsaliyeyi kabul yanıtı ile yanıtlar. Yanıt arka planda gönderilir; sonucu dönen trackable_jobs kaydından takip edin. İş tamamlandığında `response_type` `accepted`, `response_status` `waiting` olur; sağlayıcı yanıtı işledikçe `legalized` ya da `failed` olur.\n\nYalnızca henüz yanıtlanmamış (`response_status` boş) irsaliyeler yanıtlanabilir. Aynı irsaliye için yanıt gönderimi sürüyorsa 422 `İrsaliye cevabı gönderilme aşamasında.`, firmanın aktif e-İrsaliye entegrasyonu yoksa 422 `Bu firmaya ait aktif bir e-irsaliye entegrasyonu bulunmamaktadır.` döner.",
        "responses": {
          "202": {
            "description": "Trackable Job",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TrackableJob"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity - `Bu firmaya ait aktif bir e-irsaliye entegrasyonu bulunmamaktadır.` ya da `İrsaliye cevabı gönderilme aşamasında.`",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/inbound_e_despatches/{id}/respond": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Gelen e-İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "InboundEDespatches"
        ],
        "operationId": "respondInboundEDespatch",
        "summary": "Respond (partial)",
        "description": "Gelen e-İrsaliyeyi kalem bazında kısmi kabul ile yanıtlar. Gövde bir JSON:API kaynak nesnesi değil, `data` altında kalem dizisidir; her kalem `inbound_despatch_advice` yanıtındaki `line_no` ile eşleşir. İş tamamlandığında `response_type` `partial` olur. Diğer kurallar ve hatalar `accept` ile aynıdır.",
        "requestBody": {
          "description": "Düz bir `data` dizisi; JSON:API kaynak nesnesi değildir.",
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "attributes": {
                          "type": "object",
                          "properties": {
                            "line_no": {
                              "type": "integer",
                              "description": "`inbound_despatch_advice` kalem numarası"
                            },
                            "accepted_quantity": {
                              "type": "number",
                              "description": "Kabul edilen miktar"
                            },
                            "rejected_quantity": {
                              "type": "number",
                              "description": "Reddedilen miktar"
                            },
                            "missing_quantity": {
                              "type": "number",
                              "description": "Eksik gelen miktar"
                            },
                            "extra_quantity": {
                              "type": "number",
                              "description": "Fazla gelen miktar"
                            },
                            "note": {
                              "type": "string",
                              "description": "Kalem notu"
                            }
                          },
                          "required": [
                            "line_no"
                          ]
                        }
                      },
                      "required": [
                        "attributes"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Trackable Job",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TrackableJob"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity - `Bu firmaya ait aktif bir e-irsaliye entegrasyonu bulunmamaktadır.` ya da `İrsaliye cevabı gönderilme aşamasında.`",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/inbound_e_despatches/{id}/reject": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Gelen e-İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "InboundEDespatches"
        ],
        "operationId": "rejectInboundEDespatch",
        "summary": "Reject",
        "description": "Gelen e-İrsaliyeyi ret yanıtı ile yanıtlar; ret gerekçesi alanı yoktur. Diğer kurallar ve hatalar `accept` ile aynıdır; iş tamamlandığında `response_type` `rejected` olur.",
        "responses": {
          "202": {
            "description": "Trackable Job",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TrackableJob"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity - `Bu firmaya ait aktif bir e-irsaliye entegrasyonu bulunmamaktadır.` ya da `İrsaliye cevabı gönderilme aşamasında.`",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/inbound_e_despatches/{id}/resend_response": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Gelen e-İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "InboundEDespatches"
        ],
        "operationId": "resendInboundEDespatchResponse",
        "summary": "Resend response",
        "description": "Gönderimi başarısız olmuş (`response_status: failed`) irsaliye yanıtını yeniden gönderir; başarılı olursa durum `waiting` olur. Arka planda çalışır; sonucu dönen trackable_jobs kaydından takip edin.\n\nİş hataları (trackable_jobs `status: error`): `İrsaliye yanıtı tekrar gönderime uygun değil` (durum `failed` değilse), `E-İrsaliye entegrasyonu aktif değil`. Eşzamanlı istek ve entegrasyon hataları `accept` ile aynıdır (422).",
        "responses": {
          "202": {
            "description": "Trackable Job",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TrackableJob"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity - `Bu firmaya ait aktif bir e-irsaliye entegrasyonu bulunmamaktadır.` ya da `İrsaliye cevabı gönderilme aşamasında.`",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/inbound_e_despatches/{id}/convert_to_shipment_document": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Gelen e-İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "InboundEDespatches"
        ],
        "operationId": "convertInboundEDespatchToShipmentDocument",
        "summary": "Convert to shipment document (preview)",
        "description": "Gelen e-İrsaliyeden gelen irsaliye (`inflow: true`) taslağı üretir; hiçbir kayıt oluşturmaz ve durumu değiştirmez. Taslakta sevk adresi, taşıyıcı bilgileri ve her irsaliye kalemi için bir satır bulunur: ürün tam ad eşleşmesiyle firmanın aktif ürünlerinden seçilir, eşleşme yoksa `product_name`/`unit` ile yeni ürün önerilir; depo varsayılan depodur. IDIS özel gereksinim bilgileri belge ve kalem düzeyinde eklenir.\n\nTaslağı kaydetmek için `POST /shipment_documents` çağrısına `relationships.inbound_e_despatch` (`inbound_e_despatches`) ilişkisini ekleyin; irsaliye böylece içe aktarılmış (`imported`) sayılır. `contact_id` verilirse yanıt o cariyi `contact` ilişkisinde taşır; cari bulunamazsa 404 döner.",
        "parameters": [
          {
            "name": "contact_id",
            "in": "query",
            "description": "Taslağa atanacak cari ID (isteğe bağlı)",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Gelen irsaliye taslağı",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/EDespatchPreview"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "e_despatch_preview_detail",
                              "products",
                              "warehouses",
                              "inbound_e_despatch_preview_custom_requirement_infos",
                              "contacts"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found - irsaliye ya da `contact_id` ile verilen cari yok",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/inbound_e_despatches/{id}/inbound_despatch_advice": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Gelen e-İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "InboundEDespatches"
        ],
        "operationId": "showInboundDespatchAdvice",
        "summary": "Inbound despatch advice",
        "description": "Gelen e-İrsaliyenin UBL içeriğini (gönderen, adresler, taşıma bilgileri ve kalemler) döner. Kalemler (`inbound_despatch_advice_details`) her zaman `included` içinde gelir. Sağlayıcıda kayıt bulunamazsa 204 döner.",
        "responses": {
          "200": {
            "description": "Gelen e-İrsaliye içeriği",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/InboundDespatchAdvice"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "inbound_despatch_advice_details"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "204": {
            "description": "Sağlayıcıda kayıt bulunamadı"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/item_categories": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "ItemCategories"
        ],
        "operationId": "listItemCategories",
        "summary": "Index",
        "description": "",
        "parameters": [
          {
            "name": "filter[name]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[category_type]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, name, category_type*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: parent_category, subcategories*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Kategoriler",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ItemCategory"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "ItemCategories"
        ],
        "operationId": "createItemCategory",
        "summary": "Create",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: parent_category, subcategories*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createItemCategoryItemCategoryForm"
        },
        "responses": {
          "201": {
            "description": "Kategori",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ItemCategory"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/item_categories/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Kategori ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "ItemCategories"
        ],
        "operationId": "showItemCategory",
        "summary": "Show",
        "description": "Ayrıntısını görmek istediğiniz kategorinin id'sini göndererek gerekli bilgilere ulaşabilirsiniz.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: parent_category, subcategories*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Kategori",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ItemCategory"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "ItemCategories"
        ],
        "operationId": "updateItemCategory",
        "summary": "Edit",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: parent_category, subcategories*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createItemCategoryItemCategoryForm"
        },
        "responses": {
          "200": {
            "description": "Kategori",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ItemCategory"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "ItemCategories"
        ],
        "operationId": "deleteItemCategory",
        "summary": "Delete",
        "description": "",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/item_categories/{id}/items/{categorizable_id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Kategori ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "categorizable_id",
          "description": "Kategoriye eklenecek/çıkarılacak kaydın ID'si",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "ItemCategories"
        ],
        "operationId": "addItemCategoryItem",
        "summary": "Add item",
        "description": "Bir kaydı kategoriye ekler. Kaydın türü gönderilmez: kategorinin `category_type` değeri (`Product`, `Contact`, `Employee`, `SalesInvoice`, `Expenditure`) `categorizable_id` ile hangi kaydın bulunacağını belirler. Yanıt kategori değil, kategoriye eklenen kaydın kendisidir (`products`, `contacts`, `employees`, `sales_invoices` ya da fiş/fatura kaynağı).",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler (kaydın türüne göre)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Kategoriye eklenen kayıt",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "Kategorinin `category_type` değerine göre Product, Contact, Employee, SalesInvoice ya da fiş/fatura kaynağı (kategori değil)"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "ItemCategories"
        ],
        "operationId": "removeItemCategoryItem",
        "summary": "Remove item",
        "description": "Bir kaydı kategoriden çıkarır. Kaydın türü, `addItemCategoryItem` ile aynı şekilde kategorinin `category_type` değerinden belirlenir; yanıt kategorisi kaldırılmış kaydın kendisidir.\n\nKayıt artık bu kategoride değilse 409 `Kategori daha önce değiştirilmiş` döner.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler (kaydın türüne göre)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Kategorisi kaldırılan kayıt",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "description": "Kategorinin `category_type` değerine göre Product, Contact, Employee, SalesInvoice ya da fiş/fatura kaynağı (kategori değil)"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Conflict - kayıt artık bu kategoride değil (`Kategori daha önce değiştirilmiş`)",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/products": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Products"
        ],
        "operationId": "listProducts",
        "summary": "Index",
        "description": "",
        "parameters": [
          {
            "name": "filter[name]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[code]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, name*",
            "schema": {
              "type": "string",
              "default": "-id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: inventory_levels, category*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ürünler",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Product"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "inventory_levels",
                              "item_categories"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Products"
        ],
        "operationId": "createProduct",
        "summary": "Create",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: inventory_levels, category*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createProductProductForm"
        },
        "responses": {
          "201": {
            "description": "Ürün",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Product"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "inventory_levels",
                              "item_categories"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/products/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Ürün ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Products"
        ],
        "operationId": "showProduct",
        "summary": "Show",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: inventory_levels, category*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ürün",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Product"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "inventory_levels",
                              "item_categories"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Products"
        ],
        "operationId": "updateProduct",
        "summary": "Edit",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: inventory_levels, category*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createProductProductForm"
        },
        "responses": {
          "200": {
            "description": "Ürün",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Product"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "inventory_levels",
                              "item_categories"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Products"
        ],
        "operationId": "deleteProduct",
        "summary": "Delete",
        "description": "",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/products/{id}/history": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Ürün ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Products"
        ],
        "operationId": "listProductHistories",
        "summary": "History",
        "description": "Ürünün alış ve satış fiyatı ile para birimi değişikliklerinin geçmişini en yeniden en eskiye döner. Değişikliği yapan kullanıcı (`done_by`) her zaman `included` içinde gelir; `filter`, `sort` ve `include` parametreleri kullanılmaz.\n\n`data` alanı kısaltılmış anahtarlarla eski/yeni değerleri taşır: alış için `obc`/`bc` (para birimi) ve `obp`/`bp` (fiyat); satış için `oc`/`c` (para birimi) ve `olp`/`lp` (liste fiyatı).",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fiyat geçmişi",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProductHistory"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "users"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/products/{product_id}/product_invoice_history_items": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "product_id",
          "description": "Ürün ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Products"
        ],
        "operationId": "listProductInvoiceHistoryItems",
        "summary": "Invoice history",
        "description": "Ürünün geçtiği fatura kalemlerini en yeniden en eskiye döner: satış faturaları, alış faturaları ya da ikisi birden. `filter[sales_invoices]` ve `filter[purchase_bills]` parametrelerinden en az biri `true` olmalıdır. Tekrarlama şablonları ve POS sepetleri listelenmez. Faturanın müşterisi/tedarikçisi her zaman `included` içinde gelir; `include` parametresi kullanılmaz.",
        "parameters": [
          {
            "name": "filter[sales_invoices]",
            "in": "query",
            "description": "`true` ise satış faturası kalemleri listelenir (ikisinden en az biri `true` olmalı)",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "filter[purchase_bills]",
            "in": "query",
            "description": "`true` ise alış faturası kalemleri listelenir (ikisinden en az biri `true` olmalı)",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fatura kalemleri",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProductInvoiceHistoryItem"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "sales_invoices",
                              "purchase_bills",
                              "contacts"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ExportableListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/products/{product_id}/product_shipment_document_history_items": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "product_id",
          "description": "Ürün ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Products"
        ],
        "operationId": "listProductShipmentDocumentHistoryItems",
        "summary": "Shipment document history",
        "description": "Ürünün irsaliyelerden kaynaklanan stok hareketlerini en yeniden en eskiye döner. İrsaliye ve bağlı cari her zaman `included` içinde gelir; `filter`, `sort` ve `include` parametreleri kullanılmaz. Kayıt `id` değeri her istekte yeniden üretilir; saklanmamalıdır.",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          }
        ],
        "responses": {
          "200": {
            "description": "İrsaliye hareketleri",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProductShipmentDocumentHistoryItem"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "shipment_documents",
                              "contacts"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/products/by_ids": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Products"
        ],
        "operationId": "listProductsByIds",
        "summary": "By IDs",
        "description": "Verilen ID'lere sahip ürünleri tek istekte döner (en fazla 50 ID). Sayfalama yoktur; bulunamayan ya da erişilemeyen ID'ler yanıtta yer almaz.\n\n400: `parameter->ids is required`, `parameter->ids must be sent as a comma separated list`, `parameter->ids must contain at least one id`, `parameter->ids cannot exceed 50 items`.",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "required": true,
            "description": "Virgülle ayrılmış ürün ID'leri (en fazla 50)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, inventory_levels*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ürünler",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Product"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "inventory_levels"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/opening_balances/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Açılış bakiyesi ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "OpeningBalances"
        ],
        "operationId": "showOpeningBalance",
        "summary": "Show",
        "description": "Carinin açılış bakiyesi kaydını döner. Borç (`debit`) kayıtları satış, alacak (`credit`) kayıtları gider yetkisi ister. Açılış bakiyesi listeleme ve oluşturma uçları yoktur; kayıt cari üzerinden oluşur.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: contact, payments*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Açılış bakiyesi",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/OpeningBalance"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "contacts",
                              "payments"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "OpeningBalances"
        ],
        "operationId": "deleteOpeningBalance",
        "summary": "Delete",
        "description": "Açılış bakiyesini siler: ödemeleri serbest bırakılıp yeniden eşleştirilir, işlemi kaldırılır; cari arşivdeyse arşivden çıkar ve carinin açılış bakiyesi tarihi temizlenir.",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/opening_balances/{id}/payments": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Açılış bakiyesi ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "OpeningBalances"
        ],
        "operationId": "listOpeningBalancePayments",
        "summary": "Payments",
        "description": "Açılış bakiyesine bağlı tahsilat/ödeme kayıtlarını tarih sırasıyla döner. Sayfalanmaz ve `meta` içermez; `payable` ilişkisi `opening_balances`tır.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: transaction, payable*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tahsilat/ödemeler",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Payment"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "transactions",
                              "opening_balances"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/price_lists": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "PriceLists"
        ],
        "operationId": "listPriceLists",
        "summary": "Index",
        "description": "Fiyat listelerini listeler. Filtre yoktur.",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, name*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fiyat listeleri",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PriceList"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "PriceLists"
        ],
        "operationId": "createPriceList",
        "summary": "Create",
        "description": "Fiyat listesi oluşturur. `item_type`: `all` (tüm ürünler, toplu indirim), `category` (bir kategorinin ürünleri, toplu indirim; `category` ilişkisi zorunlu), `custom` (seçili ürünler; `details` ile ürün bazlı indirim). `batch_discount_percentage` `custom` dışındaki türlerde zorunludur; `custom` listede verilirse tüm kalemlerin indirimi ona eşit olmalıdır.\n\n422: `Liste adı doldurulmalı`, `Kategori sadece kategorili ürünler için oluşturulan fiyat listelerinde bulunabilir.`, `Fiyat listesi kalemleri sadece seçili ürünler için oluşturulan fiyat listelerinde bulunabilir.`, `Fiyat listesinde toplu indirim bulunduğunda fiyat listesi kalemlerinde farklı bir indirim bulunamaz.`, `Ürün farklı bir firmaya ait olamaz.`; liste adı firma içinde tekildir.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, details, details.product*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "price_lists"
                        ]
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Firma içinde tekil"
                          },
                          "item_type": {
                            "type": "string",
                            "enum": [
                              "custom",
                              "category",
                              "all"
                            ]
                          },
                          "batch_discount_percentage": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100,
                            "description": "Toplu indirim yüzdesi; `custom` dışındaki türlerde zorunlu"
                          }
                        },
                        "required": [
                          "name",
                          "item_type"
                        ]
                      },
                      "relationships": {
                        "type": "object",
                        "properties": {
                          "category": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "item_categories"
                                    ]
                                  }
                                }
                              }
                            }
                          },
                          "details": {
                            "type": "object",
                            "description": "Yalnızca `item_type: custom` için kalemler",
                            "properties": {
                              "data": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Güncellemede mevcut kalemin ID'si; yeni kalemde gönderilmez"
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "price_list_details"
                                      ]
                                    },
                                    "attributes": {
                                      "type": "object",
                                      "properties": {
                                        "discount_percentage": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 100,
                                          "default": 0
                                        }
                                      }
                                    },
                                    "relationships": {
                                      "type": "object",
                                      "properties": {
                                        "product": {
                                          "type": "object",
                                          "properties": {
                                            "data": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string",
                                                  "maxLength": 255
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "maxLength": 255,
                                                  "description": "Type of the resource",
                                                  "enum": [
                                                    "products"
                                                  ]
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Fiyat listesi",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PriceList"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "price_list_details",
                              "products"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/price_lists/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fiyat listesi ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "PriceLists"
        ],
        "operationId": "showPriceList",
        "summary": "Show",
        "description": "Fiyat listesini döner.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, details, details.product*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fiyat listesi",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PriceList"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "price_list_details",
                              "products"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "PriceLists"
        ],
        "operationId": "updatePriceList",
        "summary": "Update",
        "description": "Fiyat listesini günceller; gövde oluşturma ile aynıdır. `details` gönderildiğinde `id` verilen kalemler güncellenir, dizide yer almayan mevcut kalemler **silinir**, `data: []` tüm kalemleri kaldırır; `details` hiç gönderilmezse kalemler değişmez. 422 koşulları oluşturma ile aynıdır.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, details, details.product*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "price_lists"
                        ]
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Firma içinde tekil"
                          },
                          "item_type": {
                            "type": "string",
                            "enum": [
                              "custom",
                              "category",
                              "all"
                            ]
                          },
                          "batch_discount_percentage": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100,
                            "description": "Toplu indirim yüzdesi; `custom` dışındaki türlerde zorunlu"
                          }
                        },
                        "required": [
                          "name",
                          "item_type"
                        ]
                      },
                      "relationships": {
                        "type": "object",
                        "properties": {
                          "category": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "item_categories"
                                    ]
                                  }
                                }
                              }
                            }
                          },
                          "details": {
                            "type": "object",
                            "description": "Yalnızca `item_type: custom` için kalemler",
                            "properties": {
                              "data": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Güncellemede mevcut kalemin ID'si; yeni kalemde gönderilmez"
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "price_list_details"
                                      ]
                                    },
                                    "attributes": {
                                      "type": "object",
                                      "properties": {
                                        "discount_percentage": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 100,
                                          "default": 0
                                        }
                                      }
                                    },
                                    "relationships": {
                                      "type": "object",
                                      "properties": {
                                        "product": {
                                          "type": "object",
                                          "properties": {
                                            "data": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string",
                                                  "maxLength": 255
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "maxLength": 255,
                                                  "description": "Type of the resource",
                                                  "enum": [
                                                    "products"
                                                  ]
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Fiyat listesi",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PriceList"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "price_list_details",
                              "products"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "PriceLists"
        ],
        "operationId": "deletePriceList",
        "summary": "Delete",
        "description": "Fiyat listesini ve kalemlerini siler; listeyi kullanan carilerin ve satış faturalarının fiyat listesi bağı kaldırılır.",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/price_lists/{id}/details": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fiyat listesi ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "PriceLists"
        ],
        "operationId": "listPriceListDetails",
        "summary": "Details",
        "description": "Fiyat listesinin kalemlerini döner; `product` ilişkisi her zaman `included` içinde gelir (`include` parametresi kullanılmaz). `custom` listede kayıtlı kalemler; `all` ve `category` listelerde kapsamdaki her ürün için toplu indirimle üretilmiş birer satır döner (bu satırların `id` değeri kalıcı değildir, `detail_no` sayfa içinde numaralanır).",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 15
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fiyat listesi kalemleri",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PriceListDetail"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "products"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/price_lists/{id}/product_discounts": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fiyat listesi ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "PriceLists"
        ],
        "operationId": "listPriceListProductDiscounts",
        "summary": "Product discounts",
        "description": "Verilen ürünler için listenin uyguladığı indirim yüzdesini döner (liste ürüne uygulanmıyorsa `0`). `filter[product_ids]` zorunludur. Sayfalanmaz ve `meta` içermez.\n\n422: `Ürün seçilmelidir.` (boş ürün listesi).",
        "parameters": [
          {
            "name": "filter[product_ids]",
            "in": "query",
            "required": true,
            "description": "Virgülle ayrılmış ürün ID'leri",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ürün indirimleri",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProductDiscount"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity - `Ürün seçilmelidir.`",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/payments/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Ödeme ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "delete": {
        "tags": [
          "Transactions"
        ],
        "operationId": "deletePayment",
        "summary": "Delete payment",
        "description": "Bir ödeme kaydını siler ve bağlı belgenin (fatura, fiş, maaş, çek) kalan tutarını yeniden hesaplar.\n\nYalnızca `contact_debit` (`POST /contacts/{id}/contact_debit_transactions` ile oluşan), `employee_debit` (`POST /employees/{id}/employee_debit_transactions` ile oluşan) ve `check_out` (verilen çek) işlemlerine bağlı ödemeler silinebilir; diğer ödemeler için 401 döner. Diğer ödemeleri kaldırmak için ödemenin işlemini `DELETE /transactions/{id}` ile silin.",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - oturum yok ya da ödemenin işlem türü silinebilen bir tür değil",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/purchase_bills": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "PurchaseBills"
        ],
        "operationId": "listPurchaseBills",
        "summary": "Index",
        "description": "",
        "parameters": [
          {
            "name": "filter[issue_date]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[due_date]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[supplier_id]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "filter[item_type]",
            "in": "query",
            "description": "Available: *purchase_bill, refund, cancelled*\n",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[spender_id]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, issue_date, due_date, remaining, remaining_in_trl*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, spender, details, details.product, details.warehouse, payments, payments.transaction, tags, recurrence_plan, active_e_document, pay_to*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Faturalar",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PurchaseBill"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "employees",
                              "contacts",
                              "purchase_bill_details",
                              "payments",
                              "tags",
                              "recurrence_plans",
                              "e_invoices"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/purchase_bills#basic": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "PurchaseBills"
        ],
        "operationId": "createPurchaseBillBasic",
        "summary": "Create Basic PurchaseBill",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, spender, details, details.product, details.warehouse, payments, payments.transaction, tags, recurrence_plan, active_e_document, pay_to*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createPurchaseBillBasicPurchaseBillForm"
        },
        "responses": {
          "201": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PurchaseBill"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "employees",
                              "contacts",
                              "purchase_bill_details",
                              "payments",
                              "tags",
                              "recurrence_plans",
                              "e_invoices"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/purchase_bills#detailed": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "PurchaseBills"
        ],
        "operationId": "createPurchaseBillDetailed",
        "summary": "Create Detailed PurchaseBill",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, spender, details, details.product, details.warehouse, payments, payments.transaction, tags, recurrence_plan, active_e_document, pay_to*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createPurchaseBillDetailedPurchaseBillForm"
        },
        "responses": {
          "201": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PurchaseBill"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "employees",
                              "contacts",
                              "purchase_bill_details",
                              "payments",
                              "tags",
                              "recurrence_plans",
                              "e_invoices"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/purchase_bills/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "PurchaseBills"
        ],
        "operationId": "showPurchaseBill",
        "summary": "Show",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, spender, details, details.product, details.warehouse, payments, payments.transaction, tags, recurrence_plan, active_e_document, pay_to*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PurchaseBill"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "employees",
                              "contacts",
                              "purchase_bill_details",
                              "payments",
                              "tags",
                              "recurrence_plans",
                              "e_invoices"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "PurchaseBills"
        ],
        "operationId": "deletePurchaseBill",
        "summary": "Delete",
        "description": "",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/purchase_bills/{id}#basic": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "put": {
        "tags": [
          "PurchaseBills"
        ],
        "operationId": "updatePurchaseBillBasic",
        "summary": "Edit Basic PurchaseBill",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, spender, details, details.product, details.warehouse, payments, payments.transaction, tags, recurrence_plan, active_e_document, pay_to*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createPurchaseBillBasicPurchaseBillForm"
        },
        "responses": {
          "200": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PurchaseBill"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "employees",
                              "contacts",
                              "purchase_bill_details",
                              "payments",
                              "tags",
                              "recurrence_plans",
                              "e_invoices"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/purchase_bills/{id}#detailed": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "put": {
        "tags": [
          "PurchaseBills"
        ],
        "operationId": "updatePurchaseBillDetailed",
        "summary": "Edit Detailed PurchaseBill",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, spender, details, details.product, details.warehouse, payments, payments.transaction, tags, recurrence_plan, active_e_document, pay_to*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createPurchaseBillDetailedPurchaseBillForm"
        },
        "responses": {
          "200": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PurchaseBill"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "employees",
                              "contacts",
                              "purchase_bill_details",
                              "payments",
                              "tags",
                              "recurrence_plans",
                              "e_invoices"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/purchase_bills/{id}/details": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "PurchaseBills"
        ],
        "operationId": "listPurchaseBillDetails",
        "summary": "Details",
        "description": "Fişin/faturanın kalemlerini (ürün/hizmet satırlarını) döner. Yanıt sayfalanmaz; tüm kalemler tek seferde gelir. Kalemlere bağlı `product` ve `custom_requirement_infos` ilişkileri her zaman `included` içinde döner; `include` parametresi bu endpoint'te kullanılmaz.",
        "responses": {
          "200": {
            "description": "Fiş/fatura kalemleri",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PurchaseBillDetail"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "products",
                              "custom_requirement_infos"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/purchase_bills/{id}/payments": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "PurchaseBills"
        ],
        "operationId": "listPurchaseBillPayments",
        "summary": "Payments",
        "description": "Fişe/faturaya ait ödemeleri listeler. Her ödeme, faturayı kapatan işleme (`transaction`) bağlıdır.",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: transaction, transaction.payments, transaction.debit_account, transaction.credit_account, transaction.check, transaction.opening_balance, transaction.purchase_bill, transaction.pos_transaction_info, transaction.contact_transfer*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ödemeler",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Payment"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "transactions",
                              "payments",
                              "accounts",
                              "checks",
                              "opening_balances",
                              "purchase_bills",
                              "pos_transaction_infos",
                              "contact_transfers"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "PurchaseBills"
        ],
        "operationId": "payPurchaseBill",
        "summary": "Pay",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: payable, transaction*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/payBankFeePaymentForm"
        },
        "responses": {
          "201": {
            "description": "Ödeme",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Payment"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "sales_invoices",
                              "purchase_bills",
                              "taxes",
                              "bank_fees",
                              "salaries",
                              "checks",
                              "transactions"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/purchase_bills/{id}/cancel": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "delete": {
        "tags": [
          "PurchaseBills"
        ],
        "operationId": "cancelPurchaseBill",
        "summary": "Cancel",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, spender, details, details.product, details.warehouse, payments, payments.transaction, tags, recurrence_plan, active_e_document, pay_to*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PurchaseBill"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "employees",
                              "contacts",
                              "purchase_bill_details",
                              "payments",
                              "tags",
                              "recurrence_plans",
                              "e_invoices"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/purchase_bills/{id}/mark_as_cancelled": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "PurchaseBills"
        ],
        "operationId": "markAsCancelledPurchaseBill",
        "summary": "Mark as cancelled",
        "description": "Fişi/faturayı açıklama notuyla iptal eder. `DELETE /cancel` ile aynı iptal işlemini yapar; fark, gönderilen `note` alanının işlem geçmişine yazılmasıdır (fatura bir e-faturaya bağlıysa). Fiş/faturaya ait ödemeler silinir. Zaten iptal edilmiş, arşivlenmiş, iadesi olan veya tedarikçisi olmayan kayıtlar için 422 döner.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, spender, details, details.product, details.warehouse, payments, payments.transaction, tags, recurrence_plan, active_e_document, pay_to*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "attributes"
                    ],
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "purchase_bills"
                        ]
                      },
                      "attributes": {
                        "type": "object",
                        "required": [
                          "note"
                        ],
                        "properties": {
                          "note": {
                            "type": "string",
                            "description": "İptal açıklaması"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PurchaseBill"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "employees",
                              "contacts",
                              "purchase_bill_details",
                              "payments",
                              "tags",
                              "recurrence_plans",
                              "e_invoices"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/purchase_bills/{id}/recover": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "PurchaseBills"
        ],
        "operationId": "recoverPurchaseBill",
        "summary": "Recover",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, spender, details, details.product, details.warehouse, payments, payments.transaction, tags, recurrence_plan, active_e_document, pay_to*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PurchaseBill"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "employees",
                              "contacts",
                              "purchase_bill_details",
                              "payments",
                              "tags",
                              "recurrence_plans",
                              "e_invoices"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/purchase_bills/{id}/archive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "PurchaseBills"
        ],
        "operationId": "archivePurchaseBill",
        "summary": "Archive",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, spender, details, details.product, details.warehouse, payments, payments.transaction, tags, recurrence_plan, active_e_document, pay_to*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PurchaseBill"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "employees",
                              "contacts",
                              "purchase_bill_details",
                              "payments",
                              "tags",
                              "recurrence_plans",
                              "e_invoices"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/purchase_bills/{id}/unarchive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "PurchaseBills"
        ],
        "operationId": "unarchivePurchaseBill",
        "summary": "Unarchive",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, spender, details, details.product, details.warehouse, payments, payments.transaction, tags, recurrence_plan, active_e_document, pay_to*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PurchaseBill"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "employees",
                              "contacts",
                              "purchase_bill_details",
                              "payments",
                              "tags",
                              "recurrence_plans",
                              "e_invoices"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/purchase_bills/{id}/move_to_awaiting_e_invoices": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "PurchaseBills"
        ],
        "operationId": "moveToAwaitingEInvoicesPurchaseBill",
        "summary": "Move to awaiting e-invoices",
        "description": "Gelen bir e-faturadan oluşturulmuş fişi/faturayı siler ve e-faturayı tekrar \"bekleyen e-faturalar\" listesine taşır. Başarılı olursa fiş/fatura silinir ve yanıt gövdesi boş döner. Fiş/faturanın bir e-faturaya bağlı olması gerekir; iptal edilmiş, arşivlenmiş, iadesi veya ödemesi olan kayıtlar için 422 döner.",
        "responses": {
          "204": {
            "description": "No content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/purchase_bills/{id}/match": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fiş/Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "PurchaseBills"
        ],
        "operationId": "matchPurchaseBill",
        "summary": "Match",
        "description": "Fişin/faturanın açık tutarını, tedarikçinin borç bakiyesi oluşturan kayıtlarıyla eşleştirir: borç yönlü açılış bakiyesi, aynı para birimindeki ödenmemiş satış faturaları (en eskisinden başlayarak) ve borç yönlü cari transferleri. Her eşleşme için iki belgeye de karşılıklı ödeme kaydı oluşturulur.\n\nEşleşecek bir kayıt bulunamazsa yanıt gövdesiz 304 döner. Yalnızca `purchase_bill` ve `accommodation_tax` türündeki belgeler eşleştirilebilir.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, spender, details, details.product, payments, payments.transaction, tags, recurrence_plan, active_e_document, pay_to, supplier*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fiş/Fatura (eşleşme yapıldı)",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/PurchaseBill"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "employees",
                              "purchase_bill_details",
                              "products",
                              "payments",
                              "transactions",
                              "tags",
                              "recurrence_plans",
                              "e_invoices",
                              "contacts"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "304": {
            "description": "Eşleşecek kayıt bulunamadı; yanıt gövdesizdir"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/salaries": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Salaries"
        ],
        "operationId": "listSalaries",
        "summary": "Index",
        "description": "",
        "parameters": [
          {
            "name": "filter[due_date]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[issue_date]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[currency]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[remaining]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, issue_date, due_date, remaining, description, net_total*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, tags, payments, activities, employee*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Maaşlar",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Salary"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "employees",
                              "item_categories",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Salaries"
        ],
        "operationId": "createSalary",
        "summary": "Create",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: employee, category, tags*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createSalarySalaryForm"
        },
        "responses": {
          "201": {
            "description": "Maaş",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Salary"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "employees",
                              "item_categories",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/salaries/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Maaş ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Salaries"
        ],
        "operationId": "showSalary",
        "summary": "Show",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: employee, category, tags*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Maaş",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Salary"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "employees",
                              "item_categories",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Salaries"
        ],
        "operationId": "updateSalary",
        "summary": "Edit",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: employee, category, tags*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createSalarySalaryForm"
        },
        "responses": {
          "200": {
            "description": "Maaş",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Salary"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "employees",
                              "item_categories",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Salaries"
        ],
        "operationId": "deleteSalary",
        "summary": "Delete",
        "description": "",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/salaries/{id}/archive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Maaş ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "Salaries"
        ],
        "operationId": "archiveSalary",
        "summary": "Archive",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: employee, category, tags*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Maaş",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Salary"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "employees",
                              "item_categories",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/salaries/{id}/unarchive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Maaş ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "Salaries"
        ],
        "operationId": "unarchiveSalary",
        "summary": "Unarchive",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: employee, category, tags*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Maaş",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Salary"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "employees",
                              "item_categories",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/salaries/{id}/payments": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Maaş ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Salaries"
        ],
        "operationId": "listSalaryPayments",
        "summary": "Payments",
        "description": "Maaşa ait ödemeleri listeler. Her ödeme, ilgili kasa/banka işlemine (`transaction`) bağlıdır.",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: transaction, transaction.payments, transaction.debit_account, transaction.credit_account, transaction.check, transaction.opening_balance, transaction.purchase_bill, transaction.pos_transaction_info, transaction.contact_transfer*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ödemeler",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Payment"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "transactions",
                              "payments",
                              "accounts",
                              "checks",
                              "opening_balances",
                              "purchase_bills",
                              "pos_transaction_infos",
                              "contact_transfers"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Salaries"
        ],
        "operationId": "paySalary",
        "summary": "Pay",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: payable, transaction*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/payBankFeePaymentForm"
        },
        "responses": {
          "201": {
            "description": "Ödeme",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Payment"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "sales_invoices",
                              "purchase_bills",
                              "taxes",
                              "bank_fees",
                              "salaries",
                              "checks",
                              "transactions"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_invoices": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "SalesInvoices"
        ],
        "operationId": "listSalesInvoices",
        "summary": "Index",
        "description": "",
        "parameters": [
          {
            "name": "filter[issue_date]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[due_date]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[contact_id]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "filter[invoice_id]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "filter[invoice_series]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[item_type]",
            "in": "query",
            "description": "Default value is *'invoice, refund, estimate'*. Available: *invoice, refund, estimate, export*\n",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[print_status]",
            "in": "query",
            "description": "Available: *printed, not_printed, invoices_not_sent, e_invoice_sent, e_archive_sent, e_smm_sent*\n",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[payment_status]",
            "in": "query",
            "description": "Available: *overdue, not_due, unscheduled, paid*\n",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, issue_date, due_date, remaining, remaining_in_trl, description, net_total*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, contact, details, details.product, details.warehouse, payments, payments.transaction, tags, sharings, recurrence_plan, active_e_document*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Satış faturaları",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SalesInvoice"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "contacts",
                              "sales_invoice_details",
                              "payments",
                              "tags",
                              "sales_offers",
                              "sharings",
                              "recurrence_plans",
                              "e_archives",
                              "e_invoices",
                              "e_smms"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "SalesInvoices"
        ],
        "operationId": "createSalesInvoice",
        "summary": "Create",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, contact, details, details.product, details.warehouse, payments, payments.transaction, tags, sharings, recurrence_plan, active_e_document*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createSalesInvoiceSalesInvoiceForm"
        },
        "responses": {
          "201": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SalesInvoice"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "contacts",
                              "sales_invoice_details",
                              "payments",
                              "tags",
                              "sales_offers",
                              "sharings",
                              "recurrence_plans",
                              "e_archives",
                              "e_invoices",
                              "e_smms"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity. `external_reference_key` gönderildiyse: `Gönderilen key geçerli bir UUID formatında değil.` ya da `Bu key ile daha önce bir fatura oluşturulmuş.` (hatanın `meta.external_reference_key` ve `meta.sales_invoice_id` alanları mevcut faturayı gösterir).",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_invoices/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "SalesInvoices"
        ],
        "operationId": "showSalesInvoice",
        "summary": "Show",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, contact, details, details.product, details.warehouse, payments, payments.transaction, tags, sharings, recurrence_plan, active_e_document*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SalesInvoice"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "contacts",
                              "sales_invoice_details",
                              "payments",
                              "tags",
                              "sales_offers",
                              "sharings",
                              "recurrence_plans",
                              "e_archives",
                              "e_invoices",
                              "e_smms"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "SalesInvoices"
        ],
        "operationId": "updateSalesInvoice",
        "summary": "Edit",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, contact, details, details.product, details.warehouse, payments, payments.transaction, tags, sharings, recurrence_plan, active_e_document*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createSalesInvoiceSalesInvoiceForm"
        },
        "responses": {
          "200": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SalesInvoice"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "contacts",
                              "sales_invoice_details",
                              "payments",
                              "tags",
                              "sales_offers",
                              "sharings",
                              "recurrence_plans",
                              "e_archives",
                              "e_invoices",
                              "e_smms"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "SalesInvoices"
        ],
        "operationId": "deleteSalesInvoice",
        "summary": "Delete",
        "description": "",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_invoices/{id}/details": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "SalesInvoices"
        ],
        "operationId": "listSalesInvoiceDetails",
        "summary": "Details",
        "description": "Satış faturasının kalemlerini (ürün/hizmet satırlarını) döner. Yanıt sayfalanmaz; faturadaki tüm kalemler tek seferde gelir. Kalemlere bağlı `product`, `warehouse`, `medicine_and_medical_device` ve `custom_requirement_infos` ilişkileri her zaman `included` içinde döner; `include` parametresi bu endpoint'te kullanılmaz. `warehouse` ilişkisi yalnızca stok takibi açık firmalarda gelir.",
        "responses": {
          "200": {
            "description": "Fatura kalemleri",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SalesInvoiceDetail"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "products",
                              "warehouses",
                              "medicine_and_medical_devices",
                              "custom_requirement_infos"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_invoices/{id}/payments": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "SalesInvoices"
        ],
        "operationId": "listSalesInvoicePayments",
        "summary": "Payments",
        "description": "Satış faturasına ait tahsilatları listeler. Her tahsilat, faturayı kapatan işleme (`transaction`) bağlıdır.",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: transaction, transaction.payments, transaction.debit_account, transaction.credit_account, transaction.check, transaction.opening_balance, transaction.purchase_bill, transaction.pos_transaction_info, transaction.contact_transfer*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tahsilatlar",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Payment"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "transactions",
                              "payments",
                              "accounts",
                              "checks",
                              "opening_balances",
                              "purchase_bills",
                              "pos_transaction_infos",
                              "contact_transfers"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "SalesInvoices"
        ],
        "operationId": "paySalesInvoice",
        "summary": "Pay",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: payable, transaction*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/payBankFeePaymentForm"
        },
        "responses": {
          "201": {
            "description": "Ödeme",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Payment"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "sales_invoices",
                              "purchase_bills",
                              "taxes",
                              "bank_fees",
                              "salaries",
                              "checks",
                              "transactions"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_invoices/{id}/cancel": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "delete": {
        "tags": [
          "SalesInvoices"
        ],
        "operationId": "cancelSalesInvoice",
        "summary": "Cancel",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, contact, details, details.product, details.warehouse, payments, payments.transaction, tags, sharings, recurrence_plan, active_e_document*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SalesInvoice"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "contacts",
                              "sales_invoice_details",
                              "payments",
                              "tags",
                              "sales_offers",
                              "sharings",
                              "recurrence_plans",
                              "e_archives",
                              "e_invoices",
                              "e_smms"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_invoices/{id}/recover": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "SalesInvoices"
        ],
        "operationId": "recoverSalesInvoice",
        "summary": "Recover",
        "description": "İptal edilmiş bir satış faturasını geri alır. Fatura, iptal edilmeden önceki türüne (`item_type`) döner; önceki tür bilinmiyorsa `invoice` olarak geri alınır. İptal edilmemiş bir fatura için 422 döner.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, contact, details, details.product, details.warehouse, payments, payments.transaction, tags, sharings, recurrence_plan, active_e_document*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SalesInvoice"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "contacts",
                              "sales_invoice_details",
                              "payments",
                              "tags",
                              "sales_offers",
                              "sharings",
                              "recurrence_plans",
                              "e_archives",
                              "e_invoices",
                              "e_smms"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_invoices/{id}/archive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "SalesInvoices"
        ],
        "operationId": "archiveSalesInvoice",
        "summary": "Archive",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, contact, details, details.product, details.warehouse, payments, payments.transaction, tags, sharings, recurrence_plan, active_e_document*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SalesInvoice"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "contacts",
                              "sales_invoice_details",
                              "payments",
                              "tags",
                              "sales_offers",
                              "sharings",
                              "recurrence_plans",
                              "e_archives",
                              "e_invoices",
                              "e_smms"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_invoices/{id}/unarchive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "SalesInvoices"
        ],
        "operationId": "unarchiveSalesInvoice",
        "summary": "Unarchive",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, contact, details, details.product, details.warehouse, payments, payments.transaction, tags, sharings, recurrence_plan, active_e_document*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SalesInvoice"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "contacts",
                              "sales_invoice_details",
                              "payments",
                              "tags",
                              "sales_offers",
                              "sharings",
                              "recurrence_plans",
                              "e_archives",
                              "e_invoices",
                              "e_smms"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_invoices/{id}/convert_to_invoice": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "SalesInvoices"
        ],
        "operationId": "convertEstimateToInvoice",
        "summary": "Convert estimate to invoice",
        "description": "Ürünlerinizin stok hareketleri varsayılan deponuz üzerinden oluşturulacaktır.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, contact, details, details.product, details.warehouse, payments, payments.transaction, tags, sharings, recurrence_plan, active_e_document*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "sales_invoices"
                        ]
                      },
                      "attributes": {
                        "$ref": "#/components/schemas/SalesInvoiceAttributes"
                      },
                      "relationships": {
                        "type": "object",
                        "properties": {
                          "details": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "maxLength": 255
                                    },
                                    "type": {
                                      "type": "string",
                                      "maxLength": 255,
                                      "description": "Type of the resource",
                                      "enum": [
                                        "sales_invoice_details"
                                      ]
                                    },
                                    "attributes": {
                                      "$ref": "#/components/schemas/SalesInvoiceDetailAttributes"
                                    },
                                    "relationships": {
                                      "type": "object",
                                      "properties": {
                                        "product": {
                                          "type": "object",
                                          "properties": {
                                            "data": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string",
                                                  "maxLength": 255
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "maxLength": 255,
                                                  "description": "Type of the resource",
                                                  "enum": [
                                                    "products"
                                                  ]
                                                }
                                              }
                                            }
                                          }
                                        },
                                        "warehouse": {
                                          "type": "object",
                                          "properties": {
                                            "data": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string",
                                                  "maxLength": 255
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "maxLength": 255,
                                                  "description": "Type of the resource",
                                                  "enum": [
                                                    "warehouses"
                                                  ]
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "contact": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "contacts"
                                    ]
                                  }
                                }
                              }
                            }
                          },
                          "category": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "item_categories"
                                    ]
                                  }
                                }
                              }
                            }
                          },
                          "tags": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "maxLength": 255
                                    },
                                    "type": {
                                      "type": "string",
                                      "maxLength": 255,
                                      "description": "Type of the resource",
                                      "enum": [
                                        "tags"
                                      ]
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "sales_offer": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "sales_offers"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SalesInvoice"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "contacts",
                              "sales_invoice_details",
                              "payments",
                              "tags",
                              "sales_offers",
                              "sharings",
                              "recurrence_plans",
                              "e_archives",
                              "e_invoices",
                              "e_smms"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_invoices/{id}/match": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "SalesInvoices"
        ],
        "operationId": "matchSalesInvoice",
        "summary": "Match",
        "description": "Satış faturasının açık tutarını, müşterinin alacak bakiyesi oluşturan kayıtlarıyla eşleştirir: alacak yönlü açılış bakiyesi, aynı para birimindeki ödenmemiş alış faturaları (en eskisinden başlayarak) ve alacak yönlü cari transferleri. Her eşleşme için iki belgeye de karşılıklı ödeme kaydı oluşturulur.\n\nEşleşecek bir kayıt bulunamazsa yanıt gövdesiz 304 döner. Yalnızca ödenebilir faturalar eşleştirilebilir; iptal edilmiş, iade, tekrarlayan ve POS sepet faturaları için kullanılamaz.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, contact, details, details.product, details.warehouse, payments, payments.transaction, tags, sharings, recurrence_plan, active_e_document*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Satış faturası (eşleşme yapıldı)",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SalesInvoice"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "contacts",
                              "sales_invoice_details",
                              "payments",
                              "tags",
                              "sales_offers",
                              "sharings",
                              "recurrence_plans",
                              "e_archives",
                              "e_invoices",
                              "e_smms",
                              "external_reference_keys"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "304": {
            "description": "Eşleşecek kayıt bulunamadı; yanıt gövdesizdir"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_invoices/{id}/link_shipment_documents": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Fatura ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "SalesInvoices"
        ],
        "operationId": "linkSalesInvoiceShipmentDocuments",
        "summary": "Link shipment documents",
        "description": "Satış faturasını verilen irsaliyelerle ilişkilendirir. İşlem bütünseldir: irsaliyelerden biri bağlanamazsa hiçbiri bağlanmaz. Stok entegrasyonunun açık olması gerekir.\n\n422 koşulları: `Fatura ve İrsaliyeleri eşleştirmek için Stok entegrasyonun açık olmalı`, `İptal edilmiş faturalar irsaliye ile eşleştirilemez`, `İrsaliyeli faturalar ile başka irsaliyeler eşleştirilemez`, `Arşivlenmiş faturalar irsaliye ile eşleştirilemez`, `Proforma Faturalar irsaliye ile eşleştirilemez`, `Tekrarlama şablonları irsaliye ile eşleştirilemez`; irsaliye başına `Gelen irsaliye ile satış faturası ilişkilendirilemez.`, `Konaklama vergisi faturaları ile irsaliye ilişkilendirilemez.`, `Depolar arası transfer irsaliyesi bir fatura ile ilişkilendirilemez`, `İrsaliye ve fatura başka firmalara ait olamaz.`, `İrsaliye ile Fatura hali hazırda eşleştirilmiş.`",
        "requestBody": {
          "description": "JSON:API kaynak nesnesi değil, düz bir `data` nesnesi gönderilir.",
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "shipment_document_ids": {
                        "type": "array",
                        "description": "Bağlanacak irsaliyelerin ID'leri",
                        "items": {
                          "type": "integer"
                        }
                      }
                    },
                    "required": [
                      "shipment_document_ids"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Satış faturası ve bağlı irsaliyeler",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SalesInvoice"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "shipment_documents"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found - fatura ya da irsaliye bulunamadı (`ShipmentDocument-<id>`)",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_invoices/find_by_external_reference_key": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "SalesInvoices"
        ],
        "operationId": "findSalesInvoiceByExternalReferenceKey",
        "summary": "Find by external reference key",
        "description": "Fatura oluştururken `external_reference_key` ilişkisiyle gönderdiğiniz anahtara (UUID) göre satış faturasını bulur. Aynı anahtarla ikinci bir oluşturma isteği `Bu key ile daha önce bir fatura oluşturulmuş.` hatasıyla 422 döner ve hatanın `meta.sales_invoice_id` alanı mevcut faturayı gösterir; bu endpoint ile de aynı faturaya ulaşabilirsiniz. Anahtar bulunamazsa gövdesiz 404 döner.",
        "parameters": [
          {
            "name": "external_reference_key",
            "in": "query",
            "required": true,
            "description": "Fatura oluştururken gönderilen anahtar (UUID)",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, contact, details, details.product, details.warehouse, payments, payments.transaction, tags, sharings, recurrence_plan, active_e_document, external_reference_key*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Satış faturası",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SalesInvoice"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "contacts",
                              "sales_invoice_details",
                              "payments",
                              "tags",
                              "sales_offers",
                              "sharings",
                              "recurrence_plans",
                              "e_archives",
                              "e_invoices",
                              "e_smms",
                              "external_reference_keys"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found - bu anahtarla fatura yok (yanıt gövdesizdir)",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_offers": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "SalesOffers"
        ],
        "operationId": "listSalesOffers",
        "summary": "Index",
        "description": "",
        "parameters": [
          {
            "name": "filter[archived]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "filter[query]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[invoice_status]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[status]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, issue_date, description, net_total_in_trl, sales_invoice_id*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: contact, sales_invoice*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Teklifler",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SalesOffers"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "contacts",
                              "sales_invoice"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "SalesOffers"
        ],
        "operationId": "createSalesOffers",
        "summary": "Create",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: sales_invoice,contact.category,contact.contact_people.contact,sharings.collaborator,activities.item,activities.done_by *",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "sales_offers"
                        ]
                      },
                      "attributes": {
                        "$ref": "#/components/schemas/SalesOffersCreateUpdateAttributes"
                      },
                      "relationships": {
                        "type": "object",
                        "properties": {
                          "details": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "maxLength": 255,
                                      "description": "Type of the resource",
                                      "enum": [
                                        "sales_offer_details"
                                      ]
                                    },
                                    "attributes": {
                                      "$ref": "#/components/schemas/SalesOffersDetailAttributes"
                                    },
                                    "relationships": {
                                      "type": "object",
                                      "properties": {
                                        "product": {
                                          "type": "object",
                                          "properties": {
                                            "data": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string",
                                                  "maxLength": 255
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "maxLength": 255,
                                                  "description": "Type of the resource",
                                                  "enum": [
                                                    "products"
                                                  ]
                                                },
                                                "attributes": {
                                                  "$ref": "#/components/schemas/ProductAttributes"
                                                }
                                              }
                                            }
                                          }
                                        },
                                        "offer": {
                                          "type": "object",
                                          "properties": {
                                            "data": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string",
                                                  "maxLength": 255
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "maxLength": 255,
                                                  "description": "Type of the resource",
                                                  "enum": [
                                                    "sales_offers"
                                                  ]
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "contact": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "contacts"
                                    ]
                                  },
                                  "attributes": {
                                    "$ref": "#/components/schemas/ContactAttributes"
                                  },
                                  "relationships": {
                                    "type": "object",
                                    "properties": {
                                      "category": {
                                        "type": "object",
                                        "properties": {
                                          "data": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "maxLength": 255
                                              },
                                              "type": {
                                                "type": "string",
                                                "maxLength": 255,
                                                "description": "Type of the resource",
                                                "enum": [
                                                  "item_categories"
                                                ]
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Teklif",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SalesOffers"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "contacts",
                              "sales_invoices",
                              "details",
                              "activities",
                              "sharings"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_offers/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Teklif ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "SalesOffers"
        ],
        "operationId": "showSalesOffers",
        "summary": "Show",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: details.product contact.contact_people.contact contact.category sales_invoice activities.item activities.done_by sharings.collaborator*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Teklif",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SalesOffers"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "contacts",
                              "sales_invoices",
                              "details",
                              "activities",
                              "sharings"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "SalesOffers"
        ],
        "operationId": "updateSalesOffers",
        "summary": "Edit",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: sales_invoice,contact.category,contact.contact_people.contact,sharings.collaborator,activities.item,activities.done_by*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "sales_offers"
                        ]
                      },
                      "attributes": {
                        "$ref": "#/components/schemas/SalesOffersCreateUpdateAttributes"
                      },
                      "relationships": {
                        "type": "object",
                        "properties": {
                          "details": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "maxLength": 255
                                    },
                                    "type": {
                                      "type": "string",
                                      "maxLength": 255,
                                      "description": "Type of the resource",
                                      "enum": [
                                        "sales_offer_details"
                                      ]
                                    },
                                    "attributes": {
                                      "$ref": "#/components/schemas/SalesOffersDetailAttributes"
                                    },
                                    "relationships": {
                                      "type": "object",
                                      "properties": {
                                        "product": {
                                          "type": "object",
                                          "properties": {
                                            "data": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string",
                                                  "maxLength": 255
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "maxLength": 255,
                                                  "description": "Type of the resource",
                                                  "enum": [
                                                    "products"
                                                  ]
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "contact": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "contacts"
                                    ]
                                  }
                                }
                              }
                            }
                          },
                          "sharings": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "sharings"
                                    ]
                                  }
                                }
                              }
                            }
                          },
                          "activities": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "maxLength": 255
                                    },
                                    "type": {
                                      "type": "string",
                                      "maxLength": 255,
                                      "description": "Type of the resource",
                                      "enum": [
                                        "activities"
                                      ]
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "sales_invoice": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "sales_invoices"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Teklif",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SalesOffers"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "contacts",
                              "sales_invoices",
                              "details",
                              "activities",
                              "sharings"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "SalesOffers"
        ],
        "operationId": "deleteSalesOffers",
        "summary": "Delete",
        "description": "",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_offers/{id}/pdf": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Teklif ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "SalesOffers"
        ],
        "operationId": "showSalesOffersPdf",
        "summary": "PDF",
        "description": "Oluşan PDF'in URL'sine trackable_jobs response'unun içerisinde data > attributes > url alanından erişebilirsiniz.",
        "responses": {
          "202": {
            "description": "Teklif PDF",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "trackable_jobs"
                          ]
                        },
                        "attributes": {
                          "$ref": "#/components/schemas/SalesOffersPdfAttributes"
                        },
                        "links": {
                          "type": "object",
                          "properties": {
                            "self": {
                              "type": "string",
                              "format": "uri"
                            }
                          }
                        },
                        "meta": {
                          "$ref": "#/components/schemas/ListMeta"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_offers/{id}/archive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Teklif ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "SalesOffers"
        ],
        "operationId": "archiveSalesOffers",
        "summary": "Archive",
        "description": "",
        "responses": {
          "200": {
            "description": "Teklif",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SalesOffers"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource - contacts - sales_invoices - details - activities - sharings"
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_offers/{id}/unarchive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Teklif ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "SalesOffers"
        ],
        "operationId": "unarchiveSalesOffers",
        "summary": "Unarchive",
        "description": "",
        "responses": {
          "200": {
            "description": "Fatura",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SalesOffers"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "contacts",
                              "sales_invoices",
                              "details",
                              "activities",
                              "sharings"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_offers/{id}/details": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Teklif ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "SalesOffers"
        ],
        "operationId": "showSalesOffersDetails",
        "summary": "Details",
        "description": "",
        "parameters": [
          {
            "name": "page[size]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: product*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Teklif Detayı",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SalesOffersDetails"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "products"
                            ]
                          },
                          "attributes": {
                            "$ref": "#/components/schemas/ProductAttributes"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sales_offers/{id}/update_status": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Teklif ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "SalesOffers"
        ],
        "operationId": "updateSalesOffersStatus",
        "summary": "Update Status",
        "description": "",
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOffersUpdateStatusBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Teklif Statüsü",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "sales_offers"
                          ]
                        },
                        "attributes": {
                          "$ref": "#/components/schemas/SalesOfferAttributes"
                        },
                        "relationships": {
                          "type": "object",
                          "properties": {
                            "activities": {
                              "type": "object",
                              "properties": {
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "maxLength": 255
                                      },
                                      "type": {
                                        "type": "string",
                                        "maxLength": 255,
                                        "description": "Type of the resource",
                                        "enum": [
                                          "activities"
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "activities"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/sharings": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "SalesOffers"
        ],
        "operationId": "createSharing",
        "summary": "e-mail",
        "description": "E-mail status erişimi aşağıdaki şekilde sağlanır:\n\nÖncelikle, mevcut teklife bir GET isteği gönderilir. Ardından, yanıtta bulunan 'included' içinde 'sharings' türünde bir obje bulunur. Bu obje açılarak içindeki 'attributes' alanına bakılır. 'email_status' alanı, şu anda e-postanın durumunu sağlayacaktır.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: collaborator.contact_portal.accounts*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "sharing_forms"
                        ]
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "email": {
                            "type": "object",
                            "properties": {
                              "addresses": {
                                "type": "string",
                                "maxLength": 255,
                                "description": "E-mail adresleri"
                              },
                              "subject": {
                                "type": "string",
                                "description": "E-mail konusu"
                              },
                              "body": {
                                "type": "string",
                                "description": "E-mail içeriği"
                              }
                            }
                          },
                          "portal": {
                            "type": "object",
                            "properties": {
                              "has_online_collection": {
                                "type": "boolean",
                                "description": "Online tahsilat",
                                "default": false
                              },
                              "has_online_payment_reminder": {
                                "type": "boolean",
                                "description": "Online ödeme hatırlatıcı",
                                "default": false
                              },
                              "has_referral_link": {
                                "type": "boolean",
                                "description": "Referans linki",
                                "default": false
                              }
                            }
                          },
                          "properties": {
                            "type": "object"
                          }
                        }
                      },
                      "relationships": {
                        "type": "object",
                        "properties": {
                          "shareable": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "ID of the sales offers"
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "sales_offers"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "E-mail",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "sharings"
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "properties": {
                              "created_at": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "email": {
                                "type": "string",
                                "maxLength": 255,
                                "description": "E-mail adresleri"
                              },
                              "email_status": {
                                "type": "string",
                                "maxLength": 255,
                                "description": "E-mail durumu"
                              },
                              "message": {
                                "type": "string",
                                "description": "E-mail içeriği"
                              },
                              "properties": {
                                "type": "object"
                              },
                              "subject": {
                                "type": "string",
                                "description": "E-mail konusu"
                              },
                              "updated_at": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          },
                          "relationships": {
                            "type": "object",
                            "properties": {
                              "shareable": {
                                "type": "object"
                              },
                              "collaborator": {
                                "type": "object",
                                "properties": {
                                  "data": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "maxLength": 255
                                      },
                                      "type": {
                                        "type": "string",
                                        "maxLength": 255,
                                        "description": "Type of the resource",
                                        "enum": [
                                          "collaborators"
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "meta": {
                            "type": "object",
                            "properties": {
                              "created_at": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "updated_at": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          }
                        }
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource"
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/shipment_documents": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "ShipmentDocuments"
        ],
        "operationId": "listShipmentDocuments",
        "summary": "Index",
        "description": "",
        "parameters": [
          {
            "name": "filter[flow_type]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[invoice_status]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[archived]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, issue_date, description, inflow*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: contact, stock_movements, stock_movements.product, tags, invoices*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "İrsaliyeler",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ShipmentDocument"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "contacts",
                              "tags",
                              "stock_movements",
                              "sales_invoices",
                              "purchase_bills"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "ShipmentDocuments"
        ],
        "operationId": "createShipmentDocument",
        "summary": "Create",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: contact, stock_movements, stock_movements.product, tags, invoices*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createShipmentDocumentShipmentDocumentForm"
        },
        "responses": {
          "201": {
            "description": "İrsaliye",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ShipmentDocument"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "contacts",
                              "tags",
                              "stock_movements",
                              "sales_invoices",
                              "purchase_bills"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/shipment_documents/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "ShipmentDocuments"
        ],
        "operationId": "showShipmentDocument",
        "summary": "Show",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: contact, stock_movements, stock_movements.product, tags, invoices*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "İrsaliye",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ShipmentDocument"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "contacts",
                              "tags",
                              "stock_movements",
                              "sales_invoices",
                              "purchase_bills"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "ShipmentDocuments"
        ],
        "operationId": "updateShipmentDocument",
        "summary": "Edit",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: contact, stock_movements, stock_movements.product, tags, invoices*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createShipmentDocumentShipmentDocumentForm"
        },
        "responses": {
          "200": {
            "description": "İrsaliye",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ShipmentDocument"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "contacts",
                              "tags",
                              "stock_movements",
                              "sales_invoices",
                              "purchase_bills"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "ShipmentDocuments"
        ],
        "operationId": "deleteShipmentDocument",
        "summary": "Delete",
        "description": "",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/shipment_documents/{id}/archive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "ShipmentDocuments"
        ],
        "operationId": "archiveShipmentDocument",
        "summary": "Archive",
        "description": "İrsaliyeyi arşivler. Zaten arşivlenmiş irsaliyeler ve yasallaştırma (e-irsaliye gönderim) sürecindeki giden irsaliyeler için 422 döner.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: contact, stock_movements, stock_movements.product, tags, invoices*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "İrsaliye",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ShipmentDocument"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "contacts",
                              "tags",
                              "stock_movements",
                              "sales_invoices",
                              "purchase_bills"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/shipment_documents/{id}/unarchive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "ShipmentDocuments"
        ],
        "operationId": "unarchiveShipmentDocument",
        "summary": "Unarchive",
        "description": "Arşivlenmiş irsaliyeyi arşivden çıkarır. Arşivde olmayan irsaliyeler ve yasallaştırma (e-irsaliye gönderim) sürecindeki giden irsaliyeler için 422 döner.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: contact, stock_movements, stock_movements.product, tags, invoices*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "İrsaliye",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ShipmentDocument"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "contacts",
                              "tags",
                              "stock_movements",
                              "sales_invoices",
                              "purchase_bills"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/shipment_documents/{id}/legalize": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "EDespatches"
        ],
        "operationId": "legalizeShipmentDocument",
        "summary": "Legalize",
        "description": "Giden irsaliyeyi e-İrsaliye olarak resmileştirir. Gönderim arka planda yapılır; işlemin sonucunu dönen trackable_jobs kaydını sorgulayarak takip edebilirsiniz. Gönderim tamamlandığında irsaliyenin `status` alanı güncellenir.\n\nFirmanın aktif bir e-İrsaliye entegrasyonu yoksa veya aynı irsaliye için gönderim zaten sürüyorsa 422 döner. Aşağıdaki durumlarda istek 202 ile kabul edilir, ancak trackable_jobs kaydı `status: error` ile sonuçlanır:\n\n- İrsaliye arşivlenmişse\n- İrsaliye daha önce resmileştirilmişse (`status` dolu)\n- Firmanın e-belge kontörü bitmişse",
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "to": {
                            "type": "string",
                            "description": "Alıcının e-İrsaliye posta kutusu etiketi (alias). Alıcının posta kutularını `e_despatch_inboxes` endpoint'inden alabilirsiniz."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "required": false
        },
        "responses": {
          "202": {
            "description": "Trackable Job",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TrackableJob"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/shipment_documents/{id}/resend": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "EDespatches"
        ],
        "operationId": "resendShipmentDocument",
        "summary": "Resend",
        "description": "Gönderimi başarısız olmuş (`status: failed`) bir e-İrsaliyeyi tekrar gönderir. Gönderim arka planda yapılır; işlemin sonucunu dönen trackable_jobs kaydını sorgulayarak takip edebilirsiniz.\n\nFirmanın aktif bir e-İrsaliye entegrasyonu yoksa veya aynı irsaliye için gönderim zaten sürüyorsa 422 döner. Aşağıdaki durumlarda istek yine 202 ile kabul edilir, ancak trackable_jobs kaydı `status: error` ile sonuçlanır:\n\n- İrsaliyenin durumu `failed` değilse (`Sadece gönderimi başarısız olan irsaliyeler tekrar gönderilebilir`)\n- İrsaliye arşivlenmişse\n- Firmanın e-belge kontörü bitmişse",
        "responses": {
          "202": {
            "description": "Trackable Job",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TrackableJob"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/shipment_documents/{id}/e_despatch": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "EDespatches"
        ],
        "operationId": "showEDespatch",
        "summary": "Show",
        "description": "Resmileştirilmiş irsaliyenin e-İrsaliye ve zarf bilgilerini döner.",
        "responses": {
          "200": {
            "description": "e-İrsaliye",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/EDespatch"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/shipment_documents/{id}/pdf": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "EDespatches"
        ],
        "operationId": "showEDespatchPdf",
        "summary": "Show PDF",
        "description": "e-İrsaliyenin PDF'ini döner. PDF'e erişim için bir URL dönebileceği gibi PDF dosyasının kendisini de dönebilir. PDF henüz hazır değilse 204 döner.",
        "responses": {
          "200": {
            "description": "e-İrsaliye PDF",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/EDocumentPdf"
                    }
                  }
                }
              },
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "204": {
            "description": "PDF henüz hazır değil"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/shipment_documents/{id}/ubl": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "EDespatches"
        ],
        "operationId": "showEDespatchUbl",
        "summary": "Show UBL",
        "description": "Giden e-İrsaliyenin UBL dosyasını zip olarak indirir (`application/octet-stream`, `Content-Disposition: attachment; filename=\"<irsaliye no>.zip\"`). Dosya henüz hazır değilse 204 döner.\n\nYalnızca giden irsaliyeler için çalışır; gelen irsaliyede 404 döner. Firmanın aktif e-İrsaliye entegrasyonu yoksa 422 döner.",
        "responses": {
          "200": {
            "description": "e-İrsaliye UBL (zip)",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "204": {
            "description": "UBL henüz hazır değil"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found - irsaliye yok ya da gelen irsaliye",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity - `Bu firmaya ait aktif bir e-irsaliye entegrasyonu bulunmamaktadır.`",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/shipment_documents/{id}/link_invoices": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "ShipmentDocuments"
        ],
        "operationId": "linkShipmentDocumentInvoices",
        "summary": "Link invoices",
        "description": "İrsaliyeyi verilen faturalarla ilişkilendirir. `invoice_type` irsaliyenin yönüne uymalıdır: giden irsaliye için `sales_invoices`, gelen irsaliye için `purchase_bills`. İşlem bütünseldir: faturalardan biri bağlanamazsa hiçbiri bağlanmaz. Stok entegrasyonunun açık olması gerekir. Gövde JSON:API kaynak nesnesi değil, düz bir `data` nesnesidir.\n\n400: `invoice_type must be \"sales_invoices\"` (giden), `invoice_type must be \"purchase_bills\"` (gelen), `Parameter is missing: data`. 404: `SalesInvoice-<id>` / `PurchaseBill-<id>`.\n\n422 koşulları: `Fatura ve İrsaliyeleri eşleştirmek için Stok entegrasyonun açık olmalı`, `Depolar arası transfer irsaliyeleri ile fatura eşleştirilemez.`, `Arşivlenmiş irsaliyeler ile fatura eşleştirilemez.`; fatura başına `Giden irsaliye ile alış faturası ilişkilendirilemez.`, `Gelen irsaliye ile satış faturası ilişkilendirilemez.`, `Hızlı Fiş/Fatura ile irsaliye ilişkilendirilemez.`, `Proforma faturalar ile irsaliye ilişkilendirilemez.`, `İptal edilmiş faturalar ile irsaliye ilişkilendirilemez.`, `Arşivlenmiş faturalar ile irsaliye ilişkilendirilemez.`, `İrsaliyeli faturalar ile irsaliye ilişkilendirilemez.`, `İrsaliye ve fatura başka firmalara ait olamaz.`, `İrsaliye ile Fatura hali hazırda eşleştirilmiş.`",
        "requestBody": {
          "description": "JSON:API kaynak nesnesi değil, düz bir `data` nesnesi gönderilir.",
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "invoice_type": {
                        "type": "string",
                        "description": "Giden irsaliye için `sales_invoices`, gelen irsaliye için `purchase_bills`",
                        "enum": [
                          "sales_invoices",
                          "purchase_bills"
                        ]
                      },
                      "invoice_ids": {
                        "type": "array",
                        "description": "Fatura ID'leri",
                        "items": {
                          "type": "integer"
                        }
                      }
                    },
                    "required": [
                      "invoice_type",
                      "invoice_ids"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "İrsaliye ve bağlı faturalar",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ShipmentDocument"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "sales_invoices",
                              "purchase_bills"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/shipment_documents/{id}/unlink_invoices": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "İrsaliye ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "delete": {
        "tags": [
          "ShipmentDocuments"
        ],
        "operationId": "unlinkShipmentDocumentInvoices",
        "summary": "Unlink invoices",
        "description": "İrsaliye ile verilen faturaların ilişkisini kaldırır. Gövde ve 400/404 kuralları `link_invoices` ile aynıdır (DELETE isteği gövde taşır). Bağlı olmayan faturalar sessizce atlanır; istek tekrarlanabilir.\n\n422: `Fatura ve İrsaliye eşleştirmesini kaldırmak için Stok entegrasyonun açık olmalı`.",
        "requestBody": {
          "description": "JSON:API kaynak nesnesi değil, düz bir `data` nesnesi gönderilir.",
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "invoice_type": {
                        "type": "string",
                        "description": "Giden irsaliye için `sales_invoices`, gelen irsaliye için `purchase_bills`",
                        "enum": [
                          "sales_invoices",
                          "purchase_bills"
                        ]
                      },
                      "invoice_ids": {
                        "type": "array",
                        "description": "Fatura ID'leri",
                        "items": {
                          "type": "integer"
                        }
                      }
                    },
                    "required": [
                      "invoice_type",
                      "invoice_ids"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "İrsaliye ve kalan bağlı faturalar",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/ShipmentDocument"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "sales_invoices",
                              "purchase_bills"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/stock_movements": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "StockMovements"
        ],
        "operationId": "listStockMovements",
        "summary": "Index",
        "description": "Tüm stok hareketlerini listeler. Her irsaliye oluşturulurken stok hareketi de oluşturulur. Buna ilave olarak, irsaliyeli satış faturası veya irsaliyeli alış faturası oluşturulduğunda stok takibi yapılan bir ürün içeren her fatura kalemine karşılık otomatik olarak bir stok hareketi oluşur.",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, date*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: product, source, contact, warehouse*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Stok hareketleri",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/StockMovement"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "warehouses",
                              "products",
                              "shipment_documents",
                              "sales_invoice_details",
                              "purchase_bill_details",
                              "contacts"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/stock_updates": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "post": {
        "tags": [
          "StockUpdates"
        ],
        "operationId": "createStockUpdate",
        "summary": "Create",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: details, details.product, details.warehouse*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "stock_updates"
                        ]
                      },
                      "attributes": {
                        "$ref": "#/components/schemas/StockUpdateAttributes"
                      },
                      "relationships": {
                        "type": "object",
                        "properties": {
                          "details": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "maxLength": 255
                                    },
                                    "type": {
                                      "type": "string",
                                      "maxLength": 255,
                                      "description": "Type of the resource",
                                      "enum": [
                                        "stock_update_details"
                                      ]
                                    },
                                    "attributes": {
                                      "$ref": "#/components/schemas/StockUpdateDetailAttributes"
                                    },
                                    "relationships": {
                                      "type": "object",
                                      "properties": {
                                        "product": {
                                          "type": "object",
                                          "properties": {
                                            "data": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string",
                                                  "maxLength": 255
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "maxLength": 255,
                                                  "description": "Type of the resource",
                                                  "enum": [
                                                    "products"
                                                  ]
                                                }
                                              }
                                            }
                                          }
                                        },
                                        "warehouse": {
                                          "type": "object",
                                          "properties": {
                                            "data": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string",
                                                  "maxLength": 255
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "maxLength": 255,
                                                  "description": "Type of the resource",
                                                  "enum": [
                                                    "warehouses"
                                                  ]
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Stok güncelleme",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/StockUpdate"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "stock_update_details"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/stock_updates/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Stok güncelleme ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "StockUpdates"
        ],
        "operationId": "showStockUpdate",
        "summary": "Show",
        "description": "Stok güncelleme kaydını kalemleriyle döner.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: details, details.product, details.warehouse*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Stok güncelleme",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/StockUpdate"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "stock_update_details",
                              "products",
                              "warehouses"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/tags": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Tags"
        ],
        "operationId": "listTags",
        "summary": "Index",
        "description": "",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, name*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Etiketler",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Tag"
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Tags"
        ],
        "operationId": "createTag",
        "summary": "Create",
        "description": "",
        "requestBody": {
          "$ref": "#/components/requestBodies/createTagTagForm"
        },
        "responses": {
          "201": {
            "description": "Etiket",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Tag"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/tags/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Etiket ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Tags"
        ],
        "operationId": "showTag",
        "summary": "Show",
        "description": "",
        "responses": {
          "200": {
            "description": "Etiket",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Tag"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Tags"
        ],
        "operationId": "updateTag",
        "summary": "Edit",
        "description": "",
        "requestBody": {
          "$ref": "#/components/requestBodies/createTagTagForm"
        },
        "responses": {
          "200": {
            "description": "Etiket",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Tag"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Tags"
        ],
        "operationId": "deleteTag",
        "summary": "Delete",
        "description": "",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/taxes": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Taxes"
        ],
        "operationId": "listTaxes",
        "summary": "Index",
        "description": "",
        "parameters": [
          {
            "name": "filter[due_date]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[issue_date]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[currency]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[remaining]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, issue_date, due_date, remaining, description, net_total*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, tags, payments*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Vergiler",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Tax"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Taxes"
        ],
        "operationId": "createTax",
        "summary": "Create",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, tags*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createTaxTaxForm"
        },
        "responses": {
          "201": {
            "description": "Vergi",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Tax"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/taxes/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Vergi ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Taxes"
        ],
        "operationId": "showTax",
        "summary": "Show",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, tags*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Vergi",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Tax"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Taxes"
        ],
        "operationId": "updateTax",
        "summary": "Edit",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, tags*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createTaxTaxForm"
        },
        "responses": {
          "200": {
            "description": "Vergi",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Tax"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Taxes"
        ],
        "operationId": "deleteTax",
        "summary": "Delete",
        "description": "",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/taxes/{id}/archive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Vergi ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "Taxes"
        ],
        "operationId": "archiveTax",
        "summary": "Archive",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, tags*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Vergi",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Tax"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/taxes/{id}/unarchive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Vergi ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "Taxes"
        ],
        "operationId": "unarchiveTax",
        "summary": "Unarchive",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: category, tags*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Vergi",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Tax"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "item_categories",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/taxes/{id}/payments": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Vergi ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Taxes"
        ],
        "operationId": "listTaxPayments",
        "summary": "Payments",
        "description": "Vergiye ait ödemeleri listeler. Her ödeme, ilgili kasa/banka işlemine (`transaction`) bağlıdır.",
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: transaction, transaction.payments, transaction.debit_account, transaction.credit_account, transaction.check, transaction.opening_balance, transaction.purchase_bill, transaction.pos_transaction_info, transaction.contact_transfer*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ödemeler",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Payment"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "transactions",
                              "payments",
                              "accounts",
                              "checks",
                              "opening_balances",
                              "purchase_bills",
                              "pos_transaction_infos",
                              "contact_transfers"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Taxes"
        ],
        "operationId": "payTax",
        "summary": "Pay",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: payable, transaction*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/payBankFeePaymentForm"
        },
        "responses": {
          "201": {
            "description": "Ödeme",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Payment"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "sales_invoices",
                              "purchase_bills",
                              "taxes",
                              "bank_fees",
                              "salaries",
                              "checks",
                              "transactions"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/trackable_jobs/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Trackable Job ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "TrackableJobs"
        ],
        "operationId": "showTrackableJob",
        "summary": "Show",
        "description": "",
        "responses": {
          "200": {
            "description": "Trackable Job",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TrackableJob"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/transactions/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "İşlem ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Transactions"
        ],
        "operationId": "showTransaction",
        "summary": "Show",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: debit_account, credit_account, payments*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "İşlem",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Transaction"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "accounts",
                              "payments"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Transactions"
        ],
        "operationId": "deleteTransaction",
        "summary": "Delete",
        "description": "",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/warehouse_transfers": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "WarehouseTransfers"
        ],
        "operationId": "listWarehouseTransfers",
        "summary": "Index",
        "description": "Depolar arası transferleri listeler. `details` ve `tags` listede `include` edilemez; tekil kayıtta kullanılabilir.",
        "parameters": [
          {
            "name": "filter[issue_date]",
            "in": "query",
            "description": "Düzenlenme tarihi (YYYY-MM-DD); `eq|lt|gt|gteq|lteq|not_eq` operatörleriyle de kullanılabilir",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "filter[query]",
            "in": "query",
            "description": "Açıklama, gönderen ve alıcı adı üzerinde metin araması",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[outflow_warehouse]",
            "in": "query",
            "description": "Virgülle ayrılmış çıkış deposu ID'leri",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[inflow_warehouse]",
            "in": "query",
            "description": "Virgülle ayrılmış giriş deposu ID'leri",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, description, outflow_warehouse_id, inflow_warehouse_id, issue_date*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: outflow_warehouse, inflow_warehouse, shipment_document*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Depo transferleri",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WarehouseTransfer"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "warehouses",
                              "shipment_documents"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "WarehouseTransfers"
        ],
        "operationId": "createWarehouseTransfer",
        "summary": "Create",
        "description": "Depolar arası transfer oluşturur. `outflow_warehouse` (çıkış) ve `inflow_warehouse` (giriş) ilişkileri zorunlu ve birbirinden farklı olmalıdır; en az bir kalem (`details`) gerekir. Her kalem için bir çıkış ve bir giriş stok hareketi oluşur; kalemlerdeki ürünlerin stok takibi açılır ve arşivdeyseler arşivden çıkarılır. Stok entegrasyonunun açık olması gerekir.\n\n422: `Fiili Sevk Tarihi doldurulmalı`, `Transfer Kalemleri doldurulmalı`, `Giriş ve çıkış deposu aynı olamaz.`; başka firmaya ait depo ya da ürün 404.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: details, details.product, outflow_warehouse, inflow_warehouse, tags*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "warehouse_transfers"
                        ]
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "description": {
                            "type": "string"
                          },
                          "sender_name": {
                            "type": "string"
                          },
                          "receiver_name": {
                            "type": "string"
                          },
                          "issue_date": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Düzenlenme tarihi"
                          },
                          "shipment_date": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Fiili sevk tarihi"
                          },
                          "print_note": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "issue_date",
                          "shipment_date"
                        ]
                      },
                      "relationships": {
                        "type": "object",
                        "properties": {
                          "outflow_warehouse": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "warehouses"
                                    ]
                                  }
                                }
                              }
                            }
                          },
                          "inflow_warehouse": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "warehouses"
                                    ]
                                  }
                                }
                              }
                            }
                          },
                          "details": {
                            "type": "object",
                            "description": "Transfer kalemleri; en az bir kalem",
                            "properties": {
                              "data": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Güncellemede mevcut kalemin ID'si; yeni kalemde gönderilmez"
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "warehouse_transfer_details"
                                      ]
                                    },
                                    "attributes": {
                                      "type": "object",
                                      "properties": {
                                        "quantity": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "quantity"
                                      ]
                                    },
                                    "relationships": {
                                      "type": "object",
                                      "properties": {
                                        "product": {
                                          "type": "object",
                                          "properties": {
                                            "data": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string",
                                                  "maxLength": 255
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "maxLength": 255,
                                                  "description": "Type of the resource",
                                                  "enum": [
                                                    "products"
                                                  ]
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "tags": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "maxLength": 255
                                    },
                                    "type": {
                                      "type": "string",
                                      "maxLength": 255,
                                      "description": "Type of the resource",
                                      "enum": [
                                        "tags"
                                      ]
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Depo transferi",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WarehouseTransfer"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "warehouse_transfer_details",
                              "products",
                              "warehouses",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/warehouse_transfers/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Depo transferi ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "WarehouseTransfers"
        ],
        "operationId": "showWarehouseTransfer",
        "summary": "Show",
        "description": "Depo transferini döner.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: details, details.product, outflow_warehouse, inflow_warehouse, tags, shipment_document*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Depo transferi",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WarehouseTransfer"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "warehouse_transfer_details",
                              "products",
                              "warehouses",
                              "tags",
                              "shipment_documents"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "WarehouseTransfers"
        ],
        "operationId": "updateWarehouseTransfer",
        "summary": "Update",
        "description": "Transferi günceller; gövde oluşturma ile aynıdır. `details` dizisinde yer almayan mevcut kalemler stok hareketleriyle birlikte **silinir**. Depo değişirse eski stok hareketleri kaldırılır. Transfere bağlı bir irsaliye varsa tarihleri ve açıklaması eşitlenir.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: details, details.product, outflow_warehouse, inflow_warehouse, tags*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "warehouse_transfers"
                        ]
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "description": {
                            "type": "string"
                          },
                          "sender_name": {
                            "type": "string"
                          },
                          "receiver_name": {
                            "type": "string"
                          },
                          "issue_date": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Düzenlenme tarihi"
                          },
                          "shipment_date": {
                            "type": "string",
                            "format": "date-time",
                            "description": "Fiili sevk tarihi"
                          },
                          "print_note": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "issue_date",
                          "shipment_date"
                        ]
                      },
                      "relationships": {
                        "type": "object",
                        "properties": {
                          "outflow_warehouse": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "warehouses"
                                    ]
                                  }
                                }
                              }
                            }
                          },
                          "inflow_warehouse": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "warehouses"
                                    ]
                                  }
                                }
                              }
                            }
                          },
                          "details": {
                            "type": "object",
                            "description": "Transfer kalemleri; en az bir kalem",
                            "properties": {
                              "data": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "Güncellemede mevcut kalemin ID'si; yeni kalemde gönderilmez"
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "warehouse_transfer_details"
                                      ]
                                    },
                                    "attributes": {
                                      "type": "object",
                                      "properties": {
                                        "quantity": {
                                          "type": "number"
                                        }
                                      },
                                      "required": [
                                        "quantity"
                                      ]
                                    },
                                    "relationships": {
                                      "type": "object",
                                      "properties": {
                                        "product": {
                                          "type": "object",
                                          "properties": {
                                            "data": {
                                              "type": "object",
                                              "properties": {
                                                "id": {
                                                  "type": "string",
                                                  "maxLength": 255
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "maxLength": 255,
                                                  "description": "Type of the resource",
                                                  "enum": [
                                                    "products"
                                                  ]
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "tags": {
                            "type": "object",
                            "properties": {
                              "data": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "maxLength": 255
                                    },
                                    "type": {
                                      "type": "string",
                                      "maxLength": 255,
                                      "description": "Type of the resource",
                                      "enum": [
                                        "tags"
                                      ]
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Depo transferi",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/WarehouseTransfer"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "warehouse_transfer_details",
                              "products",
                              "warehouses",
                              "tags"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "WarehouseTransfers"
        ],
        "operationId": "deleteWarehouseTransfer",
        "summary": "Delete",
        "description": "Transferi, kalemlerini, stok hareketlerini ve bağlı irsaliyeyi siler.",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/warehouses": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Warehouses"
        ],
        "operationId": "listWarehouses",
        "summary": "Index",
        "description": "",
        "parameters": [
          {
            "name": "filter[name]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[archived]",
            "in": "query",
            "description": "",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, name*",
            "schema": {
              "type": "string",
              "default": "-id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: inventory_levels*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Depolar",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Warehouse"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "inventory_levels"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Warehouses"
        ],
        "operationId": "createWarehouse",
        "summary": "Create",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: inventory_levels*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createWarehouseProductForm"
        },
        "responses": {
          "201": {
            "description": "Depo",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Warehouse"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "inventory_levels"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/warehouses/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Depo ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Warehouses"
        ],
        "operationId": "showWarehouse",
        "summary": "Show",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: inventory_levels*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Depo",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Warehouse"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "inventory_levels"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Warehouses"
        ],
        "operationId": "updateWarehouse",
        "summary": "Edit",
        "description": "",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: inventory_levels*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/createWarehouseProductForm"
        },
        "responses": {
          "200": {
            "description": "Depo",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Warehouse"
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "inventory_levels"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Warehouses"
        ],
        "operationId": "deleteWarehouse",
        "summary": "Delete",
        "description": "",
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/warehouses/{id}/archive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Depo ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "Warehouses"
        ],
        "operationId": "archiveWarehouse",
        "summary": "Archive",
        "description": "Depoyu arşivler.\n\n422 koşulları: `Deponuz hali hazırda arşivlenmiş.`, `Deponuz \"Varsayılan\" olarak tanımlanmış.` (varsayılan depo arşivlenemez), `Stoğunda ürün bulunan depo arşivlenemez.` (sıfırdan farklı stok seviyesi varsa), `Deponuz arşivlenemedi.`",
        "responses": {
          "200": {
            "description": "Depo",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Warehouse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/warehouses/{id}/unarchive": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Depo ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "patch": {
        "tags": [
          "Warehouses"
        ],
        "operationId": "unarchiveWarehouse",
        "summary": "Unarchive",
        "description": "Depoyu arşivden çıkarır.\n\n422 koşulları: `Deponuz hali hazırda arşivden çıkartılmış.`, `Deponuz arşivden çıkarılamadı.`",
        "responses": {
          "200": {
            "description": "Depo",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Warehouse"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/warehouses/{warehouse_id}/inventory_levels": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "warehouse_id",
          "description": "Depo ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "InventoryLevels"
        ],
        "operationId": "listWarehouseInventoryLevels",
        "summary": "Index (warehouse)",
        "description": "Deponun stok seviyelerini listeler (ürün bazlı listenin depo kapsamlı eşi). `filter[archived]` deponun arşiv durumuna bakar ve varsayılanı `false`tur; arşivlenmiş bir deponun seviyeleri için `true` gönderin. Depo bulunamazsa 404 yerine boş liste döner. `warehouse` ilişkisi her zaman `included` içinde gelir.",
        "parameters": [
          {
            "name": "filter[warehouses.name]",
            "in": "query",
            "description": "Sonuçların filtrelenmesini istediğiniz depo ismi.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter[archived]",
            "in": "query",
            "description": "Deponun arşiv durumu; varsayılan `false`",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "filter[has_stock]",
            "in": "query",
            "description": "`true` ise yalnızca stoğu sıfırdan farklı seviyeler",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "filter[stock_count]",
            "in": "query",
            "description": "Stok adedi; `filter[stock_count][gt]=0` gibi operatörlerle de kullanılabilir",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sortable parameters - *Available: id, stock_count*",
            "schema": {
              "type": "string",
              "default": "id"
            }
          },
          {
            "name": "page[number]",
            "in": "query",
            "description": "Page Number",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "description": "Page Size",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 15
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: product, warehouse*",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Depo stok seviyeleri",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/InventoryLevel"
                      }
                    },
                    "included": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 255
                          },
                          "type": {
                            "type": "string",
                            "maxLength": 255,
                            "description": "Type of the resource",
                            "enum": [
                              "products",
                              "warehouses"
                            ]
                          },
                          "attributes": {
                            "type": "object"
                          },
                          "relationships": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ListMeta"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{company_id}/webhooks": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "listWebhooks",
        "summary": "Index",
        "description": "API istemcisinin bu firmadaki webhook'larını listeler; başka istemcilerin webhook'ları görünmez. Sayfalama yoktur; liste, istemcinin bu firmadaki `model` + `action` ikilileriyle sınırlıdır. **Ayarlar** okuma yetkisi gerekir. `client_key` yanıtta dönmez.",
        "responses": {
          "200": {
            "description": "Webhook listesi",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Webhook"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/WebhookUnauthorized"
          },
          "402": {
            "$ref": "#/components/responses/WebhookPaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/WebhookForbidden"
          },
          "500": {
            "$ref": "#/components/responses/WebhookInternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/WebhookServiceUnavailable"
          }
        }
      },
      "post": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "createWebhook",
        "summary": "Create",
        "description": "Yeni webhook oluşturur ve **201** ile oluşturulan webhook'u döner. **Ayarlar** tam yetkisi gerekir.\n\n`client_key` zorunludur ve webhook isteklerinde `X-Client-Key` header'ı olarak gönderilir; yanıtta dönmez (bkz. Webhooks bölümündeki \"Webhook isteğini doğrulama\"). `uri` HTTPS olmalıdır.\n\nŞu durumlarda 422 döner: `data.type` `webhook` değil; `client_key` eksik ya da 64 karakterlik `[A-Za-z0-9]` biçiminde değil; `uri` geçersiz, HTTPS değil ya da kabul edilmeyen bir adres; `model` veya `action` geçersiz ya da bu `model` + `action` ikilisi desteklenmiyor; istemcinin bu firmada aynı `model` + `action` için zaten bir webhook'u var. Her hata, ilgili alanı `source.pointer` ile gösterir.\n\n`model` ve `action` webhook oluşturulduktan sonra değiştirilemez.\n\n500 veya 503 aldığınızda webhook yine de oluşmuş olabilir; isteği tekrarlamadan önce webhook'ları listeleyip kontrol edin (aynı `model` + `action` için ikinci istek 422 döner).",
        "requestBody": {
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "type",
                      "attributes"
                    ],
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "webhook"
                        ]
                      },
                      "attributes": {
                        "type": "object",
                        "required": [
                          "model",
                          "action",
                          "uri",
                          "client_key"
                        ],
                        "properties": {
                          "model": {
                            "$ref": "#/components/schemas/WebhookModel"
                          },
                          "action": {
                            "$ref": "#/components/schemas/WebhookAction"
                          },
                          "uri": {
                            "$ref": "#/components/schemas/WebhookUri"
                          },
                          "client_key": {
                            "$ref": "#/components/schemas/WebhookClientKey"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Oluşturulan webhook",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Webhook"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/WebhookBadRequest"
          },
          "401": {
            "$ref": "#/components/responses/WebhookUnauthorized"
          },
          "402": {
            "$ref": "#/components/responses/WebhookPaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/WebhookForbidden"
          },
          "422": {
            "$ref": "#/components/responses/WebhookUnprocessableEntity"
          },
          "500": {
            "$ref": "#/components/responses/WebhookInternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/WebhookServiceUnavailable"
          }
        }
      }
    },
    "/{company_id}/webhooks/{id}": {
      "parameters": [
        {
          "name": "company_id",
          "description": "Firma ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "id",
          "description": "Webhook ID",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ],
      "get": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "showWebhook",
        "summary": "Show",
        "description": "API istemcisinin bu firmadaki bir webhook'unu döner. **Ayarlar** okuma yetkisi gerekir. `client_key` yanıtta dönmez.\n\nWebhook bulunamazsa ya da başka bir istemciye aitse 404 döner.",
        "responses": {
          "200": {
            "description": "Webhook",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Webhook"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/WebhookUnauthorized"
          },
          "402": {
            "$ref": "#/components/responses/WebhookPaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/WebhookForbidden"
          },
          "404": {
            "$ref": "#/components/responses/WebhookNotFound"
          },
          "500": {
            "$ref": "#/components/responses/WebhookInternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/WebhookServiceUnavailable"
          }
        }
      },
      "patch": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "updateWebhook",
        "summary": "Update",
        "description": "Webhook'un `uri` veya `client_key` değerini günceller; yalnızca gönderdiğiniz alanlar değişir. **Ayarlar** tam yetkisi gerekir.\n\n`model` ve `action` webhook oluşturulduktan sonra değiştirilemez. Başka bir event'i dinlemek için yeni bir webhook oluşturun, artık ihtiyacınız olmayanı silin. İstekte `model` ve `action` göndermeyin; webhook'un mevcut değerinden farklı bir değer 422 döner.\n\n`client_key` gönderilmezse mevcut değer korunur; yeni bir değer gönderildiğinde sonraki webhook istekleri bu değerle yapılır. `client_key` boş ya da `null` gönderilerek silinemez. `uri` değiştiriliyorsa HTTPS olmalıdır.\n\nWebhook bulunamazsa ya da başka bir istemciye aitse 404 döner. Şu durumlarda 422 döner: `data.type` `webhook` değil; `client_key` boş, `null` ya da 64 karakterlik `[A-Za-z0-9]` biçiminde değil; yeni `uri` geçersiz, HTTPS değil ya da kabul edilmeyen bir adres; `model` veya `action` değiştirilmek istendi.",
        "requestBody": {
          "required": true,
          "content": {
            "application/vnd.api+json": {
              "schema": {
                "type": "object",
                "required": [
                  "data"
                ],
                "properties": {
                  "data": {
                    "type": "object",
                    "required": [
                      "type"
                    ],
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "webhook"
                        ]
                      },
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "uri": {
                            "$ref": "#/components/schemas/WebhookUri"
                          },
                          "client_key": {
                            "$ref": "#/components/schemas/WebhookClientKey"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Güncellenen webhook",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Webhook"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/WebhookBadRequest"
          },
          "401": {
            "$ref": "#/components/responses/WebhookUnauthorized"
          },
          "402": {
            "$ref": "#/components/responses/WebhookPaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/WebhookForbidden"
          },
          "404": {
            "$ref": "#/components/responses/WebhookNotFound"
          },
          "422": {
            "$ref": "#/components/responses/WebhookUnprocessableEntity"
          },
          "500": {
            "$ref": "#/components/responses/WebhookInternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/WebhookServiceUnavailable"
          }
        }
      },
      "delete": {
        "tags": [
          "Webhooks"
        ],
        "operationId": "deleteWebhook",
        "summary": "Delete",
        "description": "Webhook'u siler; bu webhook için artık istek gönderilmez. Başarılı istek **204** ve boş gövde döner. **Ayarlar** tam yetkisi gerekir. Webhook bulunamazsa ya da başka bir istemciye aitse 404 döner.",
        "responses": {
          "204": {
            "description": "Silindi (gövde yok)"
          },
          "401": {
            "$ref": "#/components/responses/WebhookUnauthorized"
          },
          "402": {
            "$ref": "#/components/responses/WebhookPaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/WebhookForbidden"
          },
          "404": {
            "$ref": "#/components/responses/WebhookNotFound"
          },
          "500": {
            "$ref": "#/components/responses/WebhookInternalServerError"
          },
          "503": {
            "$ref": "#/components/responses/WebhookServiceUnavailable"
          }
        }
      }
    }
  },
  "x-webhooks": {
    "shipmentDocumentEvent": {
      "post": {
        "tags": [
          "WebhookEvents"
        ],
        "security": [],
        "operationId": "shipmentDocumentWebhookEvent",
        "summary": "İrsaliye (shipment_document)",
        "description": "İrsaliye oluşturulduğunda, güncellendiğinde veya silindiğinde gönderilir. `data.data` irsaliyenin `shipment_documents` gösterimi, `data.included` stok hareketleridir (`stock_movements`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookClientKeyHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookShipmentDocumentEvent"
              }
            }
          }
        },
        "responses": {
          "408": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "429": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "2XX": {
            "$ref": "#/components/responses/WebhookEventDelivered"
          },
          "5XX": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "default": {
            "$ref": "#/components/responses/WebhookEventNotRetried"
          }
        }
      }
    },
    "stockMovementEvent": {
      "post": {
        "tags": [
          "WebhookEvents"
        ],
        "security": [],
        "operationId": "stockMovementWebhookEvent",
        "summary": "Stok hareketi (stock_movement)",
        "description": "Stok hareketi oluşturulduğunda, güncellendiğinde veya silindiğinde gönderilir. `data.data` hareketin `stock_movements` gösterimi, `data.included` hareketin ürünüdür (`product`).\n\nStok güncellemesinden ve depo transferinden doğan stok hareketleri için gönderilmez.",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookClientKeyHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookStockMovementEvent"
              }
            }
          }
        },
        "responses": {
          "408": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "429": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "2XX": {
            "$ref": "#/components/responses/WebhookEventDelivered"
          },
          "5XX": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "default": {
            "$ref": "#/components/responses/WebhookEventNotRetried"
          }
        }
      }
    },
    "productEvent": {
      "post": {
        "tags": [
          "WebhookEvents"
        ],
        "security": [],
        "operationId": "productWebhookEvent",
        "summary": "Ürün (product)",
        "description": "Ürün oluşturulduğunda, güncellendiğinde veya silindiğinde gönderilir. `data.data` ürünün `products` gösterimidir; `data.included` yoktur.",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookClientKeyHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookProductEvent"
              }
            }
          }
        },
        "responses": {
          "408": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "429": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "2XX": {
            "$ref": "#/components/responses/WebhookEventDelivered"
          },
          "5XX": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "default": {
            "$ref": "#/components/responses/WebhookEventNotRetried"
          }
        }
      }
    },
    "contactEvent": {
      "post": {
        "tags": [
          "WebhookEvents"
        ],
        "security": [],
        "operationId": "contactWebhookEvent",
        "summary": "Müşteri / Tedarikçi (contact)",
        "description": "Müşteri ya da tedarikçi oluşturulduğunda, güncellendiğinde veya silindiğinde gönderilir. `data.data` kaydın `contacts` gösterimi, `data.included` yetkili kişileridir (`contact_people`). Yetkili kişiler kayıtla birlikte silindiğinden `delete` event'inde `data.included` içinde yer almazlar.",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookClientKeyHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookContactEvent"
              }
            }
          }
        },
        "responses": {
          "408": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "429": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "2XX": {
            "$ref": "#/components/responses/WebhookEventDelivered"
          },
          "5XX": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "default": {
            "$ref": "#/components/responses/WebhookEventNotRetried"
          }
        }
      }
    },
    "salesInvoiceEvent": {
      "post": {
        "tags": [
          "WebhookEvents"
        ],
        "security": [],
        "operationId": "salesInvoiceWebhookEvent",
        "summary": "Satış faturası (sales_invoice)",
        "description": "Satış faturası oluşturulduğunda veya güncellendiğinde gönderilir. `data.data` faturanın `sales_invoices` gösterimi, `data.included` faturanın kalemleri (`details`), kalemlerin ürünleri (`details.product`), müşterisi (`contact`), e-Fatura ya da e-Arşiv belgesi (`active_e_document`) ve başarısız e-Faturasıdır (`failed_e_invoice`).\n\n`create` teklifler ve tekrarlayan şablonlar için de gönderilir. `update` yalnızca e-Fatura ya da e-Arşiv belgesi olan faturalar için gönderilir; teklifler ve tekrarlayan şablonlar için gönderilmez.\n\nFaturanın PDF'i oluştuğunda gönderilen `update` event'inde `data.data.attributes.pdf_url` bulunur; bu bağlantı **2 saat** geçerlidir.",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookClientKeyHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookSalesInvoiceEvent"
              }
            }
          }
        },
        "responses": {
          "408": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "429": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "2XX": {
            "$ref": "#/components/responses/WebhookEventDelivered"
          },
          "5XX": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "default": {
            "$ref": "#/components/responses/WebhookEventNotRetried"
          }
        }
      }
    },
    "stockUpdateEvent": {
      "post": {
        "tags": [
          "WebhookEvents"
        ],
        "security": [],
        "operationId": "stockUpdateWebhookEvent",
        "summary": "Stok güncelleme (stock_update)",
        "description": "Stok güncelleme oluşturulduğunda gönderilir. `data.data` kaydın `stock_updates` gösterimi, `data.included` kalemleri (`details`), kalemlerin ürünleri (`details.product`) ve depolarıdır (`details.warehouse`).",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookClientKeyHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookStockUpdateEvent"
              }
            }
          }
        },
        "responses": {
          "408": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "429": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "2XX": {
            "$ref": "#/components/responses/WebhookEventDelivered"
          },
          "5XX": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "default": {
            "$ref": "#/components/responses/WebhookEventNotRetried"
          }
        }
      }
    },
    "companyEvent": {
      "post": {
        "tags": [
          "WebhookEvents"
        ],
        "security": [],
        "operationId": "companyWebhookEvent",
        "summary": "Firma (company)",
        "description": "Firma güncellendiğinde gönderilir. Diğer event'lerden farklı olarak `data` JSON:API biçiminde değildir; firmanın alanlarını düz olarak içerir.",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookClientKeyHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookCompanyEvent"
              }
            }
          }
        },
        "responses": {
          "408": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "429": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "2XX": {
            "$ref": "#/components/responses/WebhookEventDelivered"
          },
          "5XX": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "default": {
            "$ref": "#/components/responses/WebhookEventNotRetried"
          }
        }
      }
    },
    "purchaseBillEvent": {
      "post": {
        "tags": [
          "WebhookEvents"
        ],
        "security": [],
        "operationId": "purchaseBillWebhookEvent",
        "summary": "Fiş / Fatura (purchase_bill)",
        "description": "Fiş ya da fatura oluşturulduğunda veya güncellendiğinde gönderilir. `data.data` kaydın `purchase_bills` gösterimi, `data.included` kalemleri (`details`), kalemlerin ürünleri (`details.product`) ve tedarikçisidir (`supplier`).\n\nGelen bir e-Faturaya bağlı fiş/faturalar ve tekrarlayan fiş/fatura şablonları için gönderilmez.",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookClientKeyHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookPurchaseBillEvent"
              }
            }
          }
        },
        "responses": {
          "408": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "429": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "2XX": {
            "$ref": "#/components/responses/WebhookEventDelivered"
          },
          "5XX": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "default": {
            "$ref": "#/components/responses/WebhookEventNotRetried"
          }
        }
      }
    },
    "inboundEInvoiceEvent": {
      "post": {
        "tags": [
          "WebhookEvents"
        ],
        "security": [],
        "operationId": "inboundEInvoiceWebhookEvent",
        "summary": "Gelen e-Fatura (inbound_e_invoice)",
        "description": "Firmaya yeni bir e-Fatura geldiğinde gönderilir. `data.data` e-Faturanın `e_invoices` gösterimidir; `data.included` yoktur.",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookClientKeyHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookInboundEInvoiceEvent"
              }
            }
          }
        },
        "responses": {
          "408": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "429": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "2XX": {
            "$ref": "#/components/responses/WebhookEventDelivered"
          },
          "5XX": {
            "$ref": "#/components/responses/WebhookEventRetried"
          },
          "default": {
            "$ref": "#/components/responses/WebhookEventNotRetried"
          }
        }
      }
    }
  },
  "components": {
    "requestBodies": {
      "createItemCategoryItemCategoryForm": {
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "required": [
                "data"
              ],
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "type": {
                      "type": "string",
                      "maxLength": 255,
                      "description": "Type of the resource",
                      "enum": [
                        "item_categories"
                      ]
                    },
                    "attributes": {
                      "$ref": "#/components/schemas/ItemCategoryAttributes"
                    }
                  }
                }
              }
            }
          }
        },
        "required": true
      },
      "createSalesInvoiceSalesInvoiceForm": {
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "required": [
                "data"
              ],
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "type": {
                      "type": "string",
                      "maxLength": 255,
                      "description": "Type of the resource",
                      "enum": [
                        "sales_invoices"
                      ]
                    },
                    "attributes": {
                      "$ref": "#/components/schemas/SalesInvoiceCreateUpdateAttributes"
                    },
                    "relationships": {
                      "type": "object",
                      "properties": {
                        "details": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "sales_invoice_details"
                                    ]
                                  },
                                  "attributes": {
                                    "$ref": "#/components/schemas/SalesInvoiceDetailAttributes"
                                  },
                                  "relationships": {
                                    "type": "object",
                                    "properties": {
                                      "product": {
                                        "type": "object",
                                        "properties": {
                                          "data": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "maxLength": 255
                                              },
                                              "type": {
                                                "type": "string",
                                                "maxLength": 255,
                                                "description": "Type of the resource",
                                                "enum": [
                                                  "products"
                                                ]
                                              }
                                            }
                                          }
                                        }
                                      },
                                      "warehouse": {
                                        "type": "object",
                                        "properties": {
                                          "data": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "maxLength": 255
                                              },
                                              "type": {
                                                "type": "string",
                                                "maxLength": 255,
                                                "description": "Type of the resource",
                                                "enum": [
                                                  "warehouses"
                                                ]
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "contact": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "contacts"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "category": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "item_categories"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "tags": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "tags"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        },
                        "sales_offer": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "sales_offers"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "external_reference_key": {
                          "type": "object",
                          "description": "İdempotans anahtarı. Aynı `key` ile tekrar eden oluşturma isteği ikinci bir fatura açmaz; 422 `Bu key ile daha önce bir fatura oluşturulmuş.` döner ve hatanın `meta.sales_invoice_id` alanı mevcut faturayı verir. `GET /sales_invoices/find_by_external_reference_key` ile de bulunabilir.",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "external_reference_keys"
                                  ]
                                },
                                "attributes": {
                                  "type": "object",
                                  "properties": {
                                    "key": {
                                      "type": "string",
                                      "format": "uuid",
                                      "description": "UUID; geçersiz biçim 422 `Gönderilen key geçerli bir UUID formatında değil.`"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": true
      },
      "createShipmentDocumentShipmentDocumentForm": {
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "required": [
                "data"
              ],
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "type": {
                      "type": "string",
                      "maxLength": 255,
                      "description": "Type of the resource",
                      "enum": [
                        "shipment_documents"
                      ]
                    },
                    "attributes": {
                      "$ref": "#/components/schemas/ShipmentDocumentAttributes"
                    },
                    "relationships": {
                      "type": "object",
                      "properties": {
                        "stock_movements": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "stock_movements"
                                    ]
                                  },
                                  "attributes": {
                                    "$ref": "#/components/schemas/StockMovementAttributes"
                                  },
                                  "relationships": {
                                    "type": "object",
                                    "properties": {
                                      "product": {
                                        "type": "object",
                                        "properties": {
                                          "data": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "maxLength": 255
                                              },
                                              "type": {
                                                "type": "string",
                                                "maxLength": 255,
                                                "description": "Type of the resource",
                                                "enum": [
                                                  "products"
                                                ]
                                              }
                                            }
                                          }
                                        }
                                      },
                                      "warehouse": {
                                        "type": "object",
                                        "description": "Kalemin depo ilişkisi. Yeni kalemde verilmezse firmanın varsayılan deposu kullanılır; mevcut kalemde verilmezse depo değişmez.",
                                        "properties": {
                                          "data": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "maxLength": 255
                                              },
                                              "type": {
                                                "type": "string",
                                                "maxLength": 255,
                                                "description": "Type of the resource",
                                                "enum": [
                                                  "warehouses"
                                                ]
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "contact": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "contacts"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "tags": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "tags"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        },
                        "inbound_e_despatch": {
                          "type": "object",
                          "description": "Gelen e-İrsaliyeden oluşturulurken (`GET /inbound_e_despatches/{id}/convert_to_shipment_document` taslağı) bu ilişki verilir; irsaliye içe aktarılmış (`imported`) sayılır.",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "inbound_e_despatches"
                                  ]
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": true
      },
      "createWarehouseProductForm": {
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "required": [
                "data"
              ],
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "type": {
                      "type": "string",
                      "maxLength": 255,
                      "description": "Type of the resource",
                      "enum": [
                        "warehouses"
                      ]
                    },
                    "attributes": {
                      "$ref": "#/components/schemas/WarehouseAttributes"
                    },
                    "relationships": {
                      "type": "object",
                      "properties": {
                        "inventory_levels": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "inventory_levels"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": true
      },
      "createEmployeeEmployeeForm": {
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "required": [
                "data"
              ],
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "type": {
                      "type": "string",
                      "maxLength": 255,
                      "description": "Type of the resource",
                      "enum": [
                        "employees"
                      ]
                    },
                    "attributes": {
                      "$ref": "#/components/schemas/EmployeeAttributes"
                    },
                    "relationships": {
                      "type": "object",
                      "properties": {
                        "category": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "item_categories"
                                  ]
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": true
      },
      "createPurchaseBillDetailedPurchaseBillForm": {
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "required": [
                "data"
              ],
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "type": {
                      "type": "string",
                      "maxLength": 255,
                      "description": "Type of the resource",
                      "enum": [
                        "purchase_bills"
                      ]
                    },
                    "attributes": {
                      "$ref": "#/components/schemas/PurchaseBillDetailedFormAttributes"
                    },
                    "relationships": {
                      "type": "object",
                      "properties": {
                        "details": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "purchase_bill_details"
                                    ]
                                  },
                                  "attributes": {
                                    "$ref": "#/components/schemas/PurchaseBillDetailAttributes"
                                  },
                                  "relationships": {
                                    "type": "object",
                                    "properties": {
                                      "product": {
                                        "type": "object",
                                        "properties": {
                                          "data": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "maxLength": 255
                                              },
                                              "type": {
                                                "type": "string",
                                                "maxLength": 255,
                                                "description": "Type of the resource",
                                                "enum": [
                                                  "products"
                                                ]
                                              }
                                            }
                                          }
                                        }
                                      },
                                      "warehouse": {
                                        "type": "object",
                                        "properties": {
                                          "data": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "maxLength": 255
                                              },
                                              "type": {
                                                "type": "string",
                                                "maxLength": 255,
                                                "description": "Type of the resource",
                                                "enum": [
                                                  "warehouses"
                                                ]
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "supplier": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "contacts"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "paid_by_employee": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "employees"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "category": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "item_categories"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "tags": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "tags"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": true
      },
      "createBankFeeBankFeeForm": {
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "required": [
                "data"
              ],
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "type": {
                      "type": "string",
                      "maxLength": 255,
                      "description": "Type of the resource",
                      "enum": [
                        "bank_fees"
                      ]
                    },
                    "attributes": {
                      "$ref": "#/components/schemas/BankFeeAttributes"
                    },
                    "relationships": {
                      "type": "object",
                      "properties": {
                        "category": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "item_categories"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "tags": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "tags"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": true
      },
      "createDebitTransactionTransactionForm": {
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "required": [
                "data"
              ],
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "type": {
                      "type": "string",
                      "maxLength": 255,
                      "description": "Type of the resource",
                      "enum": [
                        "transactions"
                      ]
                    },
                    "attributes": {
                      "$ref": "#/components/schemas/AccountDebitCreditTransactionFormAttributes"
                    }
                  }
                }
              }
            }
          }
        },
        "required": true
      },
      "createAccountAccountForm": {
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "required": [
                "data"
              ],
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "type": {
                      "type": "string",
                      "maxLength": 255,
                      "description": "Type of the resource",
                      "enum": [
                        "accounts"
                      ]
                    },
                    "attributes": {
                      "$ref": "#/components/schemas/AccountAttributes"
                    }
                  }
                }
              }
            }
          }
        },
        "required": true
      },
      "payBankFeePaymentForm": {
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "required": [
                "data"
              ],
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "type": {
                      "type": "string",
                      "maxLength": 255,
                      "description": "Type of the resource",
                      "enum": [
                        "payments"
                      ]
                    },
                    "attributes": {
                      "$ref": "#/components/schemas/PaymentFormAttributes"
                    }
                  }
                }
              }
            }
          }
        },
        "required": true
      },
      "createContactContactForm": {
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "required": [
                "data"
              ],
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "type": {
                      "type": "string",
                      "maxLength": 255,
                      "description": "Type of the resource",
                      "enum": [
                        "contacts"
                      ]
                    },
                    "attributes": {
                      "$ref": "#/components/schemas/ContactAttributes"
                    },
                    "relationships": {
                      "type": "object",
                      "properties": {
                        "category": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "item_categories"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "contact_people": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "contact_people"
                                    ]
                                  },
                                  "attributes": {
                                    "$ref": "#/components/schemas/ContactPersonAttributes"
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": true
      },
      "createProductProductForm": {
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "required": [
                "data"
              ],
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "type": {
                      "type": "string",
                      "maxLength": 255,
                      "description": "Type of the resource",
                      "enum": [
                        "products"
                      ]
                    },
                    "attributes": {
                      "$ref": "#/components/schemas/ProductAttributes"
                    },
                    "relationships": {
                      "type": "object",
                      "properties": {
                        "inventory_levels": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "inventory_levels"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        },
                        "category": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "item_categories"
                                  ]
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": true
      },
      "createPurchaseBillBasicPurchaseBillForm": {
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "required": [
                "data"
              ],
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "type": {
                      "type": "string",
                      "maxLength": 255,
                      "description": "Type of the resource",
                      "enum": [
                        "purchase_bills"
                      ]
                    },
                    "attributes": {
                      "$ref": "#/components/schemas/PurchaseBillBasicFormAttributes"
                    },
                    "relationships": {
                      "type": "object",
                      "properties": {
                        "supplier": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "contacts"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "paid_by_employee": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "employees"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "category": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "item_categories"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "tags": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "tags"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": true
      },
      "createSalarySalaryForm": {
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "required": [
                "data"
              ],
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "type": {
                      "type": "string",
                      "maxLength": 255,
                      "description": "Type of the resource",
                      "enum": [
                        "salaries"
                      ]
                    },
                    "attributes": {
                      "$ref": "#/components/schemas/SalaryAttributes"
                    },
                    "relationships": {
                      "type": "object",
                      "properties": {
                        "employee": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "employees"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "category": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "item_categories"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "tags": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "tags"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": true
      },
      "createTagTagForm": {
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "required": [
                "data"
              ],
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "type": {
                      "type": "string",
                      "maxLength": 255,
                      "description": "Type of the resource",
                      "enum": [
                        "tags"
                      ]
                    },
                    "attributes": {
                      "$ref": "#/components/schemas/TagAttributes"
                    }
                  }
                }
              }
            }
          }
        },
        "required": true
      },
      "createTaxTaxForm": {
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "required": [
                "data"
              ],
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "type": {
                      "type": "string",
                      "maxLength": 255,
                      "description": "Type of the resource",
                      "enum": [
                        "taxes"
                      ]
                    },
                    "attributes": {
                      "$ref": "#/components/schemas/TaxAttributes"
                    },
                    "relationships": {
                      "type": "object",
                      "properties": {
                        "category": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 255
                                },
                                "type": {
                                  "type": "string",
                                  "maxLength": 255,
                                  "description": "Type of the resource",
                                  "enum": [
                                    "item_categories"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "tags": {
                          "type": "object",
                          "properties": {
                            "data": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "maxLength": 255,
                                    "description": "Type of the resource",
                                    "enum": [
                                      "tags"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": true
      }
    },
    "parameters": {
      "WebhookClientKeyHeader": {
        "name": "X-Client-Key",
        "in": "header",
        "required": true,
        "description": "Webhook'u oluştururken belirlediğiniz `client_key`. Sakladığınız değerle sabit zamanlı karşılaştırın ve eşleşmeyen istekleri reddedin.",
        "schema": {
          "type": "string",
          "pattern": "^[A-Za-z0-9]{64}$"
        }
      }
    },
    "responses": {
      "WebhookEventDelivered": {
        "description": "Teslim edildi; bu istek yeniden denenmez"
      },
      "WebhookEventRetried": {
        "description": "Teslim edilemedi; artan aralıklarla 10 kereye kadar, yaklaşık 4–5 saat boyunca yeniden denenir; bu değerler zamanla değişebilir. Zaman aşımı, bağlantı ve SSL hataları da böyle değerlendirilir."
      },
      "WebhookEventNotRetried": {
        "description": "Diğer `4xx` ve `3xx` durumları: teslim edilemedi ve yeniden denenmez; yönlendirmeler takip edilmez"
      },
      "WebhookForbidden": {
        "description": "Forbidden: API paketiniz webhook içermiyor, access token Geliştirici Portalı'ndaki bir API istemcisine ait değil, kullanıcının bu firmada gerekli **Ayarlar** yetkisi ya da üçüncü taraf entegrasyon yetkisi yok veya API istemcinizin bu firmaya erişimi yok. Hatanın `title` değeri sebebi belirtir",
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "properties": {
                "errors": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Error"
                  }
                }
              }
            },
            "examples": {
              "webhooksNotEnabled": {
                "summary": "API paketi webhook içermiyor",
                "value": {
                  "errors": [
                    {
                      "title": "API client's package does not include webhooks"
                    }
                  ]
                }
              },
              "notAnApiClient": {
                "summary": "Access token bir API istemcisine ait değil",
                "value": {
                  "errors": [
                    {
                      "title": "Webhooks are only available to Developer Portal API clients"
                    }
                  ]
                }
              },
              "noSettingsAccess": {
                "summary": "Kullanıcının gerekli Ayarlar yetkisi yok",
                "value": {
                  "errors": [
                    {
                      "title": "Forbidden"
                    }
                  ]
                }
              },
              "noIntegrationPermission": {
                "summary": "Kullanıcının üçüncü taraf entegrasyon yetkisi yok",
                "value": {
                  "errors": [
                    {
                      "title": "User has no 3rd party integration permission for company: 123"
                    }
                  ]
                }
              },
              "noCompanyAccess": {
                "summary": "API istemcisinin bu firmaya erişimi yok",
                "value": {
                  "errors": [
                    {
                      "title": "API client has no access to company: 123"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "WebhookBadRequest": {
        "description": "Bad Request: istek gövdesinde `data` yok ya da `data` / `data.attributes` bir nesne değil",
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "properties": {
                "errors": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Error"
                  }
                }
              }
            },
            "example": {
              "errors": [
                {
                  "title": "Bad Request",
                  "detail": "Parameter is missing: data"
                }
              ]
            }
          }
        }
      },
      "WebhookUnauthorized": {
        "description": "Unauthorized: access token geçersiz ya da süresi dolmuş veya kullanıcının bu `company_id` için erişimi yok",
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "properties": {
                "errors": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Error"
                  }
                }
              }
            },
            "example": {
              "errors": [
                {
                  "title": "Unauthorized"
                }
              ]
            }
          }
        }
      },
      "WebhookPaymentRequired": {
        "description": "Payment Required: firmanın Paraşüt kullanım süresi sona ermiş. `errors` dizisi hata nesneleri değil, metinler içerir",
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "properties": {
                "errors": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            },
            "example": {
              "errors": [
                "Paraşüt kullanım süreniz sona ermiş."
              ]
            }
          }
        }
      },
      "WebhookNotFound": {
        "description": "Not Found: webhook bulunamadı ya da başka bir API istemcisine ait",
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "properties": {
                "errors": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Error"
                  }
                }
              }
            },
            "example": {
              "errors": [
                {
                  "title": "Record was not found",
                  "detail": "Webhook-42"
                }
              ]
            }
          }
        }
      },
      "WebhookUnprocessableEntity": {
        "description": "Unprocessable Entity: doğrulama hatası; her hata nesnesinin `source.pointer` değeri hatalı alanı gösterir",
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "properties": {
                "errors": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Error"
                  }
                }
              }
            },
            "example": {
              "errors": [
                {
                  "title": "must be https",
                  "detail": "Uri must be https",
                  "source": {
                    "pointer": "/data/attributes/uri"
                  }
                }
              ]
            }
          }
        }
      },
      "WebhookInternalServerError": {
        "description": "Internal Server Error: beklenmeyen bir hata; isteği daha sonra yeniden deneyin",
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "properties": {
                "errors": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Error"
                  }
                }
              }
            },
            "example": {
              "errors": [
                {
                  "title": "Internal Server Error"
                }
              ]
            }
          }
        }
      },
      "WebhookServiceUnavailable": {
        "description": "Service Unavailable: webhook servisine ulaşılamadı; isteği daha sonra yeniden deneyin",
        "content": {
          "application/vnd.api+json": {
            "schema": {
              "type": "object",
              "properties": {
                "errors": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Error"
                  }
                }
              }
            },
            "example": {
              "errors": [
                {
                  "title": "Service Unavailable"
                }
              ]
            }
          }
        }
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "`Bearer ACCESS_TOKEN` formatında gönderilir. Token edinme akışı için yukarıdaki [Authentication](#section/Authentication) bölümüne veya [OAuth Rehberi](/oauth-rehberi) sayfasına bakın."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "Hata kodu (yalnızca bazı hatalarda döner)"
          },
          "source": {
            "type": "object",
            "description": "Hatanın kaynağı; `pointer` ilgili alanı (`/data/attributes/...`), `parameter` ilgili sorgu parametresini gösterir",
            "properties": {
              "pointer": {
                "type": "string"
              },
              "parameter": {
                "type": "string"
              }
            }
          },
          "meta": {
            "type": "object",
            "description": "Hataya özel ek bilgi (örneğin `external_reference_key` tekrarında mevcut faturanın `sales_invoice_id` değeri)",
            "additionalProperties": true
          }
        }
      },
      "ListMeta": {
        "type": "object",
        "properties": {
          "current_page": {
            "type": "integer"
          },
          "total_pages": {
            "type": "integer"
          },
          "total_count": {
            "type": "integer"
          },
          "per_page": {
            "type": "integer"
          }
        }
      },
      "AccountAttributes": {
        "type": "object",
        "properties": {
          "used_for": {
            "type": "string",
            "readOnly": true
          },
          "last_used_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "balance": {
            "type": "number",
            "readOnly": true,
            "description": "Bakiye"
          },
          "last_adjustment_date": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "bank_integration_type": {
            "type": "string",
            "readOnly": true
          },
          "associate_email": {
            "type": "string",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "readOnly": false,
            "description": "Hesap ismi"
          },
          "currency": {
            "type": "string",
            "enum": [
              "TRL",
              "USD",
              "EUR",
              "GBP"
            ],
            "readOnly": false,
            "description": "Döviz cinsi"
          },
          "account_type": {
            "type": "string",
            "enum": [
              "cash",
              "bank",
              "sys"
            ],
            "readOnly": false,
            "description": "Hesap tipi"
          },
          "bank_name": {
            "type": "string",
            "readOnly": false,
            "description": "Banka ismi"
          },
          "bank_branch": {
            "type": "string",
            "readOnly": false,
            "description": "Banka şubesi"
          },
          "bank_account_no": {
            "type": "string",
            "readOnly": false,
            "description": "Banka hesap no"
          },
          "iban": {
            "type": "string",
            "readOnly": false,
            "description": "IBAN"
          },
          "archived": {
            "type": "boolean",
            "readOnly": false
          }
        },
        "required": [
          "name"
        ]
      },
      "Account": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "accounts"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/AccountAttributes"
          },
          "relationships": {}
        },
        "required": [
          "attributes"
        ]
      },
      "AccountDebitCreditTransactionFormAttributes": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "description": "İşlem Tarihi",
            "readOnly": false
          },
          "amount": {
            "type": "number",
            "description": "İşlem Tutarı",
            "readOnly": false
          },
          "description": {
            "type": "string",
            "description": "İşlem Açıklaması",
            "readOnly": false
          }
        },
        "required": [
          "date",
          "amount"
        ]
      },
      "AccountDebitCreditTransactionForm": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "transactions"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/AccountDebitCreditTransactionFormAttributes"
          },
          "relationships": {}
        },
        "required": [
          "attributes"
        ]
      },
      "AddressAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "readOnly": true
          },
          "address": {
            "type": "string",
            "readOnly": true
          },
          "phone": {
            "type": "string",
            "readOnly": true
          },
          "fax": {
            "type": "string",
            "readOnly": true
          }
        }
      },
      "Address": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "addresses"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/AddressAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "addressable": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "companies"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "BalanceAmounts": {
        "type": "object",
        "description": "Para birimi bazında tutarlar ve TL karşılığı",
        "properties": {
          "amounts_by_currencies": {
            "type": "object",
            "description": "Para birimi → tutar (ör. `{\"TRL\": \"1200.0\", \"USD\": \"50.0\"}`)",
            "additionalProperties": {
              "type": "string"
            }
          },
          "total_in_trl": {
            "type": "string",
            "description": "TL karşılığı toplam"
          }
        }
      },
      "BankFeeAttributes": {
        "type": "object",
        "properties": {
          "total_paid": {
            "type": "number",
            "readOnly": true
          },
          "archived": {
            "type": "boolean",
            "readOnly": true
          },
          "remaining": {
            "type": "number",
            "readOnly": true
          },
          "remaining_in_trl": {
            "type": "number",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "description": {
            "type": "string",
            "readOnly": false
          },
          "currency": {
            "type": "string",
            "enum": [
              "TRL",
              "USD",
              "EUR",
              "GBP"
            ],
            "readOnly": false
          },
          "issue_date": {
            "type": "string",
            "format": "date",
            "readOnly": false
          },
          "due_date": {
            "type": "string",
            "format": "date",
            "readOnly": false
          },
          "exchange_rate": {
            "type": "number",
            "readOnly": false
          },
          "net_total": {
            "type": "number",
            "readOnly": false
          }
        },
        "required": [
          "description",
          "currency",
          "issue_date",
          "due_date",
          "net_total"
        ]
      },
      "BankFee": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "bank_fees"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/BankFeeAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "category": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "item_categories"
                        ]
                      }
                    }
                  }
                }
              },
              "tags": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "tags"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "BankIdentifier": {
        "type": "string",
        "description": "Banka kodu; `OTHER` ile birlikte `bank_name` gönderilir",
        "enum": [
          "ADABANK",
          "AKBANK",
          "ALBARAKA",
          "ALTERNATIFBANK",
          "ANADOLUBANK",
          "ARAPTURKBANKASI",
          "BANKOFCHINATURKEY",
          "BURGANBANK",
          "CITIBANK",
          "DENIZBANK",
          "DENIZBANKV2",
          "DEUTSCHEBANK",
          "ENPARA",
          "ENPARAV2",
          "FIBABANKA",
          "FINANSBANK",
          "QNBV2",
          "GARANTI",
          "GARANTIV2",
          "HALKBANK",
          "HSBC",
          "ICBC",
          "ING",
          "ISBANK",
          "KUVEYTTURK",
          "MUFGBANKTURKEY",
          "ODEABANK",
          "RABOBANK",
          "SEKERBANK",
          "TEB",
          "TURKISHBANK",
          "TURKIYEFINANS",
          "TURKLANDBANK",
          "VAKIFBANK",
          "VAKIFKATILIM",
          "ZIRAATBANKASI",
          "YAPIKREDI",
          "ZIRAATKATILIM",
          "ORNEKBANK",
          "OTHER"
        ]
      },
      "CheckAttributes": {
        "type": "object",
        "properties": {
          "net_total": {
            "type": "string",
            "description": "Çek tutarı"
          },
          "currency": {
            "type": "string",
            "enum": [
              "TRL",
              "USD",
              "EUR",
              "GBP"
            ]
          },
          "issue_date": {
            "type": "string",
            "format": "date"
          },
          "due_date": {
            "type": "string",
            "format": "date"
          },
          "description": {
            "type": "string",
            "maxLength": 255
          },
          "bank_identifier": {
            "$ref": "#/components/schemas/BankIdentifier"
          },
          "bank_name": {
            "type": "string",
            "description": "Yalnızca `OTHER` için",
            "nullable": true
          },
          "serial_number": {
            "type": "string",
            "nullable": true
          },
          "remaining": {
            "type": "string",
            "description": "Tahsil edilmişse `0`, değilse tutar",
            "readOnly": true
          },
          "remaining_in_trl": {
            "type": "string",
            "readOnly": true
          },
          "is_cashed": {
            "type": "boolean",
            "readOnly": true
          },
          "is_in": {
            "type": "boolean",
            "description": "Alınan çek (`issued_by` dolu)",
            "readOnly": true
          },
          "is_out": {
            "type": "boolean",
            "description": "Verilen çek (`given_to` dolu)",
            "readOnly": true
          },
          "is_transferred": {
            "type": "boolean",
            "description": "Ciro edilmiş (ikisi de dolu)",
            "readOnly": true
          },
          "payment_status": {
            "type": "string",
            "enum": [
              "paid",
              "overdue",
              "unpaid"
            ],
            "readOnly": true
          },
          "days_overdue": {
            "type": "integer",
            "readOnly": true
          },
          "days_till_due_date": {
            "type": "integer",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "Check": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "checks"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/CheckAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "issued_by": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "contacts"
                        ]
                      }
                    }
                  }
                }
              },
              "given_to": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "contacts"
                        ]
                      }
                    }
                  }
                }
              },
              "payments": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "payments"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "histories": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "check_histories"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "CheckHistoryAttributes": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "CheckHistory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "check_histories"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/CheckHistoryAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "transaction": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "transactions"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "CheckListMeta": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ListMeta"
          },
          {
            "type": "object",
            "properties": {
              "collectible_total": {
                "type": "string",
                "description": "Filtrelenmiş kümedeki alınan çeklerin toplamı"
              },
              "payable_total": {
                "type": "string",
                "description": "Filtrelenmiş kümedeki verilen çeklerin toplamı"
              },
              "export_url": {
                "type": "string"
              },
              "all_stats": {
                "$ref": "#/components/schemas/CheckStats"
              }
            }
          }
        ]
      },
      "CheckStats": {
        "type": "object",
        "description": "Firma geneli çek toplamları",
        "properties": {
          "collectible_total": {
            "type": "string"
          },
          "payable_total": {
            "type": "string"
          },
          "check_vault": {
            "type": "string"
          },
          "customer_checks_total": {
            "type": "string"
          },
          "firm_checks_total": {
            "type": "string"
          },
          "collectible_not_overdue_total": {
            "type": "string"
          },
          "check_ins_overdue_total": {
            "type": "string"
          }
        }
      },
      "CommentAttributes": {
        "type": "object",
        "properties": {
          "comment": {
            "type": "string",
            "description": "Yorum metni; sunucuda HTML kaçışlanır"
          },
          "is_public": {
            "type": "boolean",
            "default": false,
            "description": "Paylaşım iş birlikçilerine (collaborators) bildirim yalnızca `true` ise gider"
          },
          "commentator_display_name": {
            "type": "string",
            "description": "Yorumu yapan kullanıcının adı ya da e-postası",
            "readOnly": true
          },
          "attachment": {
            "type": "object",
            "description": "Ek (yalnızca arayüzden eklenir)",
            "readOnly": true,
            "properties": {
              "url": {
                "type": "string",
                "nullable": true
              },
              "is_processing": {
                "type": "boolean"
              }
            }
          },
          "attachment_filename": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "Comment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "comments"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/CommentAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "commentable": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "purchase_bills",
                          "sales_invoices",
                          "e_invoices",
                          "contacts",
                          "employees",
                          "taxes",
                          "bank_fees",
                          "salaries",
                          "shipment_documents",
                          "sales_offers",
                          "products",
                          "warehouse_transfers"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "CommentableClass": {
        "type": "string",
        "description": "Yorumlanabilen kayıt türleri, sınıf adıyla (`GET /comments` için `commentable_type`)",
        "enum": [
          "PurchaseBill",
          "SalesInvoice",
          "EInvoice",
          "Contact",
          "Employee",
          "Tax",
          "BankFee",
          "Salary",
          "ShipmentDocument",
          "SalesOffer",
          "Product",
          "WarehouseTransfer"
        ]
      },
      "CommentableType": {
        "type": "string",
        "description": "Yorumlanabilen kayıt türleri (istek gövdesindeki `relationships.commentable.data.type` değeri)",
        "enum": [
          "purchase_bills",
          "sales_invoices",
          "e_invoices",
          "contacts",
          "employees",
          "taxes",
          "bank_fees",
          "salaries",
          "shipment_documents",
          "sales_offers",
          "products",
          "warehouse_transfers"
        ]
      },
      "CompanyAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "readOnly": true
          },
          "valid_until": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "subscription_status": {
            "type": "string",
            "readOnly": true
          },
          "trial_expiration_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "allowed_inspection_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "app_url": {
            "type": "string",
            "readOnly": true
          },
          "legal_name": {
            "type": "string",
            "readOnly": true
          },
          "occupation_field": {
            "type": "string",
            "readOnly": true
          },
          "district": {
            "type": "string",
            "readOnly": true
          },
          "city": {
            "type": "string",
            "readOnly": true
          },
          "tax_office": {
            "type": "string",
            "readOnly": true
          },
          "tax_number": {
            "type": "string",
            "readOnly": true
          },
          "mersis_no": {
            "type": "string",
            "readOnly": true
          },
          "total_unused_bonus_months": {
            "type": "number",
            "readOnly": true
          },
          "subscription_started_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "subscription_renewed_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "subscription_value": {
            "type": "number",
            "readOnly": true
          },
          "primary_job": {
            "type": "string",
            "readOnly": true
          },
          "is_active": {
            "type": "boolean",
            "readOnly": true
          },
          "accessible": {
            "type": "boolean",
            "readOnly": true
          },
          "inspectable": {
            "type": "boolean",
            "readOnly": true
          },
          "is_in_grace_period": {
            "type": "boolean",
            "readOnly": true
          },
          "subscription_status_for_analytics": {
            "type": "string",
            "readOnly": true
          },
          "end_of_grace_period_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "inventory_enabled": {
            "type": "boolean",
            "readOnly": true
          },
          "is_in_trial_period": {
            "type": "boolean",
            "readOnly": true
          },
          "has_iyzico_integration": {
            "type": "boolean",
            "readOnly": true
          },
          "has_active_subscription": {
            "type": "boolean",
            "readOnly": true
          },
          "logo": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "is_processing": {
                "type": "boolean"
              }
            }
          },
          "subscription_info_text": {
            "type": "string",
            "readOnly": true
          },
          "subscription_info_title": {
            "type": "string",
            "readOnly": true
          },
          "subscription_url": {
            "type": "string",
            "readOnly": true
          },
          "referral_url": {
            "type": "string",
            "readOnly": true
          },
          "subscription_plan_duration": {
            "type": "number",
            "readOnly": true
          },
          "subscription_plan_name": {
            "type": "string",
            "readOnly": true
          },
          "e_invoicing_activated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "has_selected_plan": {
            "type": "boolean",
            "readOnly": true
          }
        }
      },
      "Company": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "companies"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/CompanyAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "default_warehouse": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "warehouses"
                        ]
                      }
                    }
                  }
                }
              },
              "owner": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "users"
                        ]
                      }
                    }
                  }
                }
              },
              "address": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "addresses"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "ContactAttributes": {
        "type": "object",
        "properties": {
          "balance": {
            "type": "number",
            "readOnly": true,
            "description": "Bakiye"
          },
          "trl_balance": {
            "type": "number",
            "readOnly": true,
            "description": "TL Bakiye"
          },
          "usd_balance": {
            "type": "number",
            "readOnly": true,
            "description": "USD Bakiye"
          },
          "eur_balance": {
            "type": "number",
            "readOnly": true,
            "description": "EUR Bakiye"
          },
          "gbp_balance": {
            "type": "number",
            "readOnly": true,
            "description": "GBP Bakiye"
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "description": "Kayıt tarihi"
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "description": "Son güncelleme tarihi"
          },
          "email": {
            "type": "string",
            "format": "email",
            "readOnly": false,
            "description": "E-posta"
          },
          "name": {
            "type": "string",
            "readOnly": false,
            "description": "Müşteri/tedarikçi ismi"
          },
          "short_name": {
            "type": "string",
            "readOnly": false
          },
          "contact_type": {
            "type": "string",
            "enum": [
              "person",
              "company"
            ],
            "readOnly": false,
            "description": "Tip"
          },
          "tax_office": {
            "type": "string",
            "readOnly": false,
            "description": "Vergi dairesi"
          },
          "tax_number": {
            "type": "string",
            "readOnly": false,
            "description": "Vergi numarası/TC kimlik no"
          },
          "district": {
            "type": "string",
            "readOnly": false,
            "description": "İlçe"
          },
          "postal_code": {
            "type": "string",
            "readOnly": false,
            "description": "Posta kodu"
          },
          "city": {
            "type": "string",
            "readOnly": false,
            "description": "İl"
          },
          "country": {
            "type": "string",
            "readOnly": false
          },
          "address": {
            "type": "string",
            "readOnly": false
          },
          "phone": {
            "type": "string",
            "readOnly": false
          },
          "fax": {
            "type": "string",
            "readOnly": false
          },
          "is_abroad": {
            "type": "boolean",
            "readOnly": false,
            "description": "Müşteri/tedarikçi yurt dışı bilgisi"
          },
          "archived": {
            "type": "boolean",
            "readOnly": false
          },
          "iban": {
            "type": "string",
            "readOnly": false
          },
          "account_type": {
            "type": "string",
            "enum": [
              "customer",
              "supplier"
            ],
            "readOnly": false
          },
          "untrackable": {
            "type": "boolean",
            "readOnly": false,
            "description": "Listelenmemiş müşteri sonradan listelenebilir hale getirilemez"
          },
          "invoicing_preferences": {
            "type": "object",
            "properties": {
              "e_document_accounts": {
                "description": "Bu alana hesap ID'leri eklenebilir.",
                "type": "array",
                "items": {
                  "type": "integer"
                }
              }
            },
            "readOnly": false
          }
        },
        "required": [
          "name",
          "account_type"
        ]
      },
      "Contact": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "contacts"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/ContactAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "category": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "item_categories"
                        ]
                      }
                    }
                  }
                }
              },
              "contact_portal": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "contact_portals"
                        ]
                      }
                    }
                  }
                }
              },
              "contact_people": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "contact_people"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "ContactCollectionFormAttributes": {
        "allOf": [
          {
            "$ref": "#/components/schemas/PaymentFormAttributes"
          },
          {
            "type": "object",
            "properties": {
              "payable_ids": {
                "description": "Satış Faturası ID'leri - *Tahsilatınızın öncelikli olarak eşleşmesini istediğiniz faturalar*",
                "type": "array",
                "items": {
                  "type": "integer"
                }
              }
            }
          }
        ]
      },
      "ContactCollectionForm": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "transactions"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/ContactCollectionFormAttributes"
          },
          "relationships": {}
        },
        "required": [
          "attributes"
        ]
      },
      "ContactPaymentFormAttributes": {
        "allOf": [
          {
            "$ref": "#/components/schemas/PaymentFormAttributes"
          },
          {
            "type": "object",
            "properties": {
              "payable_ids": {
                "description": "Alış Faturası ID'leri - *Ödemenizin öncelikli olarak eşleşmesini istediğiniz faturalar*",
                "type": "array",
                "items": {
                  "type": "integer"
                }
              }
            }
          }
        ]
      },
      "ContactPaymentForm": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "transactions"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/ContactPaymentFormAttributes"
          },
          "relationships": {}
        },
        "required": [
          "attributes"
        ]
      },
      "ContactPersonAttributes": {
        "type": "object",
        "properties": {
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "readOnly": false
          },
          "email": {
            "type": "string",
            "format": "email",
            "readOnly": false
          },
          "phone": {
            "type": "string",
            "readOnly": false
          },
          "notes": {
            "type": "string",
            "readOnly": false
          }
        }
      },
      "ContactPerson": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "contact_people"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/ContactPersonAttributes"
          },
          "relationships": {}
        },
        "required": [
          "attributes"
        ]
      },
      "DespatchAddress": {
        "type": "object",
        "description": "UBL adres bilgisi",
        "properties": {
          "street_address": {
            "type": "string",
            "nullable": true
          },
          "district": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "postal_code": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "EArchiveAttributes": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string",
            "readOnly": true
          },
          "vkn": {
            "type": "string",
            "readOnly": true
          },
          "invoice_number": {
            "type": "string",
            "readOnly": true
          },
          "note": {
            "type": "string",
            "readOnly": true
          },
          "is_printed": {
            "type": "boolean",
            "readOnly": true
          },
          "status": {
            "type": "string",
            "enum": [
              "bounced",
              "sent",
              "printed",
              "legalized"
            ],
            "readOnly": true
          },
          "printed_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "cancellable_until": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "is_signed": {
            "type": "boolean",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          }
        }
      },
      "EArchive": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "e_archives"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/EArchiveAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "sales_invoice": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "sales_invoices"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "EArchiveFormAttributes": {
        "allOf": [
          {
            "$ref": "#/components/schemas/EDocumentCommonFormAttributes"
          },
          {
            "type": "object",
            "properties": {
              "internet_sale": {
                "type": "object",
                "description": "İnternet satışı bilgileri. İnternet üzerinden bir satış yapıyorsanız doldurmak zorunlu.",
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "İnternet adresi"
                  },
                  "payment_type": {
                    "type": "string",
                    "description": "Ödeme tipi",
                    "enum": [
                      "KREDIKARTI/BANKAKARTI",
                      "EFT/HAVALE",
                      "KAPIDAODEME",
                      "ODEMEARACISI"
                    ]
                  },
                  "payment_platform": {
                    "type": "string",
                    "description": "Ödeme platformu - *(iyzico, payu gibi)*"
                  },
                  "payment_date": {
                    "type": "string",
                    "format": "date",
                    "pattern": "YYYY-MM-DD",
                    "description": "Ödeme tarihi"
                  }
                }
              },
              "shipment": {
                "type": "object",
                "description": "Gönderi bilgileri. Gönderim yapılıyorsa doldurmak zorunlu. Örneğin bir hizmet satışı için kargolanan veya gönderilen bir şey yoktur, bu durumda doldurulması zorunlu değil ancak bir e-ticaret sitesi olarak yapılan satışta müşteriye kargo / kurye ile bir ürün gönderimi vardır, bu durumda doldurmak zorunlu.",
                "properties": {
                  "title": {
                    "type": "string",
                    "description": "Kargo şirketi adı *(Eğer kargo ile gönderiliyorsa)*"
                  },
                  "vkn": {
                    "type": "string",
                    "description": "Kargo şirketi VKN *(Eğer kargo ile gönderiliyorsa)*"
                  },
                  "name": {
                    "type": "string",
                    "description": "Kurye adı *(Eğer kurye ile gönderiliyorsa)*"
                  },
                  "tckn": {
                    "type": "string",
                    "description": "Kurye TCKN *(Eğer kurye ile gönderiliyorsa)*"
                  },
                  "date": {
                    "type": "string",
                    "description": "Gönderi tarihi"
                  }
                }
              }
            }
          }
        ]
      },
      "EArchiveForm": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "e_archives"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/EArchiveFormAttributes"
          },
          "relationships": {}
        },
        "required": [
          "attributes"
        ]
      },
      "EDespatchAttributes": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string",
            "readOnly": true
          },
          "env_uuid": {
            "type": "string",
            "description": "e-İrsaliye zarfının UUID'si",
            "readOnly": true
          },
          "gib_status_code": {
            "type": "integer",
            "description": "e-İrsaliye zarfının GİB durum kodu",
            "readOnly": true
          },
          "despatch_no": {
            "type": "string",
            "description": "e-İrsaliye numarası",
            "readOnly": true
          }
        }
      },
      "EDespatch": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255,
            "description": "e-İrsaliye UUID'si"
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "EDespatch"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/EDespatchAttributes"
          }
        },
        "required": [
          "attributes"
        ]
      },
      "EDespatchInboxAttributes": {
        "type": "object",
        "properties": {
          "tax_number": {
            "type": "string",
            "readOnly": true
          },
          "alias": {
            "type": "string",
            "description": "Posta kutusu etiketi",
            "readOnly": true
          },
          "legal_name": {
            "type": "string",
            "readOnly": true
          },
          "public_institution": {
            "type": "boolean",
            "readOnly": true
          },
          "alias_registered_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "registered_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "active": {
            "type": "boolean",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "EDespatchInbox": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "e_despatch_inbox"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/EDespatchInboxAttributes"
          }
        },
        "required": [
          "attributes"
        ]
      },
      "EDespatchPreviewAttributes": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "inflow": {
            "type": "boolean",
            "readOnly": true
          },
          "address": {
            "type": "string",
            "readOnly": true
          },
          "city": {
            "type": "string",
            "readOnly": true
          },
          "district": {
            "type": "string",
            "readOnly": true
          },
          "postal_code": {
            "type": "string",
            "readOnly": true
          },
          "company_address": {
            "type": "string",
            "readOnly": true
          },
          "company_city": {
            "type": "string",
            "readOnly": true
          },
          "company_district": {
            "type": "string",
            "readOnly": true
          },
          "company_postal_code": {
            "type": "string",
            "readOnly": true
          },
          "issue_datetime": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "shipment_date": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "despatch_no": {
            "type": "string",
            "readOnly": true
          },
          "uuid": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "carrier_legal_name": {
            "type": "string",
            "readOnly": true
          },
          "carrier_tax_number": {
            "type": "string",
            "readOnly": true
          },
          "carrier_license_plate": {
            "type": "string",
            "readOnly": true
          },
          "foreign_license_plate": {
            "type": "boolean",
            "readOnly": true
          },
          "trailer_license_plates": {
            "type": "array",
            "readOnly": true,
            "items": {
              "type": "string"
            }
          },
          "drivers_info": {
            "type": "object",
            "nullable": true,
            "readOnly": true,
            "additionalProperties": true
          },
          "print_note": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        }
      },
      "EDespatchPreview": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255,
            "description": "`e-despatch-preview:<gelen e-İrsaliye ID>`; kaydedilmemiş taslak"
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "e_despatch_preview"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/EDespatchPreviewAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "contact": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "contacts"
                        ]
                      }
                    }
                  }
                }
              },
              "inbound_e_despatch": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "inbound_e_despatches"
                        ]
                      }
                    }
                  }
                }
              },
              "details": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "e_despatch_preview_detail"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "custom_requirement_infos": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "inbound_e_despatch_preview_custom_requirement_infos"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "EDespatchPreviewDetailAttributes": {
        "type": "object",
        "properties": {
          "detail_no": {
            "type": "integer",
            "readOnly": true
          },
          "quantity": {
            "type": "string",
            "readOnly": true
          },
          "product_name": {
            "type": "string",
            "description": "Yalnızca ürün eşleşmediğinde (yeni ürün önerisi) dolu",
            "nullable": true,
            "readOnly": true
          },
          "unit": {
            "type": "string",
            "description": "Yalnızca ürün eşleşmediğinde dolu",
            "nullable": true,
            "readOnly": true
          }
        }
      },
      "EDespatchPreviewDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "e_despatch_preview_detail"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/EDespatchPreviewDetailAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "product": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "products"
                        ]
                      }
                    }
                  }
                }
              },
              "warehouse": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "warehouses"
                        ]
                      }
                    }
                  }
                }
              },
              "custom_requirement_infos": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "inbound_e_despatch_preview_custom_requirement_infos"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "EDocumentCommonFormAttributes": {
        "type": "object",
        "properties": {
          "vat_withholding_params": {
            "type": "array",
            "description": "Tevkifat kodları - *Tevkifat faturadaki her kalem için ayrıdır. Tevkifat uygulanan her ürün için Tevkifat kodu göndermeniz gerekmektedir.* - *Bu dosyada ilgili kodları bulabilirsiniz: https://ebelge.gib.gov.tr/dosyalar/kilavuzlar/UBLTR_1.2.1_Kilavuzlar.zip*",
            "items": {
              "type": "object",
              "properties": {
                "detail_id": {
                  "type": "integer",
                  "description": "Fatura kalem ID"
                },
                "vat_withholding_code": {
                  "type": "string",
                  "description": "Tevkifat kodu"
                }
              }
            },
            "readOnly": false
          },
          "vat_exemption_reason_code": {
            "type": "string",
            "description": "KDV'si %0 olan hizmet ve ürünlerin KDV muafiyet sebebi kodu. - *Bu dosyada ilgili kodları bulabilirsiniz: https://ebelge.gib.gov.tr/dosyalar/kilavuzlar/UBLTR_1.2.1_Kilavuzlar.zip*",
            "readOnly": false
          },
          "vat_exemption_reason": {
            "type": "string",
            "description": "Eğer KDV muafiyet sebebi kodu 250 veya 350 ise KDV muafiyet sebebi açıklaması.",
            "readOnly": false
          },
          "excise_duty_codes": {
            "type": "array",
            "description": "ÖTV kodları - *Özel tüketim vergisi faturadaki her kalem için ayrıdır. ÖTV uygulanan her ürün için ÖTV kodu göndermeniz gerekmektedir.*",
            "items": {
              "type": "object",
              "properties": {
                "product": {
                  "type": "integer",
                  "description": "Ürün ID"
                },
                "sales_excise_duty_code": {
                  "type": "string",
                  "description": "ÖTV kodu",
                  "enum": [
                    "57",
                    "59",
                    "60",
                    "61",
                    "62",
                    "63",
                    "9077"
                  ]
                }
              }
            },
            "readOnly": false
          }
        }
      },
      "EDocumentCommonForm": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "e_document_commons"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/EDocumentCommonFormAttributes"
          },
          "relationships": {}
        },
        "required": [
          "attributes"
        ]
      },
      "EDocumentPdfAttributes": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "readOnly": true
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "EDocumentPdf": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "e_document_pdfs"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/EDocumentPdfAttributes"
          },
          "relationships": {}
        },
        "required": [
          "attributes"
        ]
      },
      "EInvoiceAttributes": {
        "type": "object",
        "properties": {
          "external_id": {
            "type": "string",
            "readOnly": true
          },
          "uuid": {
            "type": "string",
            "readOnly": true
          },
          "env_uuid": {
            "type": "string",
            "readOnly": true
          },
          "from_address": {
            "type": "string",
            "readOnly": true
          },
          "from_vkn": {
            "type": "string",
            "readOnly": true
          },
          "to_address": {
            "type": "string",
            "readOnly": true
          },
          "to_vkn": {
            "type": "string",
            "readOnly": true
          },
          "direction": {
            "type": "string",
            "enum": [
              "inbound",
              "outbound"
            ],
            "readOnly": true
          },
          "note": {
            "type": "string",
            "readOnly": true
          },
          "response_type": {
            "type": "string",
            "enum": [
              "accepted",
              "rejected",
              "refunded"
            ],
            "readOnly": true
          },
          "contact_name": {
            "type": "string",
            "readOnly": true
          },
          "scenario": {
            "type": "string",
            "enum": [
              "basic",
              "commercial"
            ],
            "readOnly": true
          },
          "status": {
            "type": "string",
            "enum": [
              "waiting",
              "failed",
              "successful"
            ],
            "readOnly": true
          },
          "status_code": {
            "type": "string",
            "description": "e-Fatura zarfının GİB/entegratör tarafındaki durum kodu (ör. `1300` başarılı). `status` alanı bu koddan türetilir; durum henüz belli değilse boş olabilir.",
            "readOnly": true
          },
          "status_message": {
            "type": "string",
            "description": "GİB/entegratörden dönen, `status_code` ile ilgili açıklama. Gönderim hata aldığında hatanın nedenini içerir; boş olabilir.",
            "readOnly": true
          },
          "gtb_ref_no": {
            "type": "string",
            "description": "GTB Referans Numarası",
            "readOnly": true
          },
          "gtb_registration_no": {
            "type": "string",
            "description": "Gümrük Çıkış Beyannamesi Tescil Numarası - *İhracat faturaları için Satış Faturası Show cevabında `active_e_document` altında gözükür.*",
            "readOnly": true
          },
          "gtb_export_date": {
            "type": "string",
            "format": "date",
            "description": "Fiili İhracat Tarihi - *İhracat faturaları için Satış Faturası Show cevabında `active_e_document` altında gözükür.*",
            "readOnly": true
          },
          "response_note": {
            "type": "string",
            "description": "e-İhracat Red Sebebi - *İhracat faturaları için Satış Faturası Show cevabında `active_e_document` altında gözükür.*",
            "readOnly": true
          },
          "issue_date": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "is_expired": {
            "type": "boolean",
            "readOnly": true
          },
          "is_answerable": {
            "type": "boolean",
            "readOnly": true
          },
          "net_total": {
            "type": "number",
            "readOnly": true
          },
          "currency": {
            "type": "string",
            "enum": [
              "TRL",
              "USD",
              "EUR",
              "GBP"
            ],
            "readOnly": true
          },
          "item_type": {
            "type": "string",
            "enum": [
              "refund",
              "invoice"
            ],
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          }
        }
      },
      "EInvoice": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "e_invoices"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/EInvoiceAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "invoice": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "sales_invoices",
                          "purchase_bills"
                        ]
                      }
                    }
                  }
                }
              },
              "responses": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "e_invoice_responses"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "EInvoiceFormAttributes": {
        "allOf": [
          {
            "$ref": "#/components/schemas/EDocumentCommonFormAttributes"
          },
          {
            "type": "object",
            "properties": {
              "scenario": {
                "type": "string",
                "description": "Gönderim senaryosu",
                "enum": [
                  "basic",
                  "commercial"
                ]
              },
              "to": {
                "type": "string",
                "description": "Alıcının e-Fatura gelen kutusu - *[e-Fatura Gelen Kutusu Öğrenme](#operation/listEInvoiceInboxes)*"
              },
              "custom_requirement_params": {
                "type": "object",
                "description": "Özel gereksinimler. Yalnızca `integration` ve `products` anahtarları kabul edilir; diğer anahtarlar yok sayılır. - *[Detaylı bilgi](/fatura-irsaliye-rehberi)*",
                "properties": {
                  "integration": {
                    "type": "object",
                    "description": "Fatura düzeyindeki özel gereksinim bilgileri",
                    "properties": {
                      "data": {
                        "type": "object",
                        "description": "Alıcının beklediği fatura düzeyi alanlar; anahtarlar alıcıya göre değişir (ör. SGK için `additional_invoice_type`, Amazon için `supplier_code`)"
                      }
                    }
                  },
                  "products": {
                    "type": "array",
                    "description": "Ürün düzeyindeki özel gereksinim bilgileri",
                    "items": {
                      "type": "object",
                      "properties": {
                        "product_id": {
                          "type": "integer",
                          "description": "Ürün ID"
                        },
                        "data": {
                          "type": "object",
                          "description": "Bu ürün için alıcının beklediği alanlar (ör. Amazon için `buyer_code`)"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        ]
      },
      "EInvoiceForm": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "e_invoices"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/EInvoiceFormAttributes"
          },
          "relationships": {}
        },
        "required": [
          "attributes"
        ]
      },
      "EInvoiceInboxAttributes": {
        "type": "object",
        "properties": {
          "vkn": {
            "type": "string",
            "readOnly": true
          },
          "e_invoice_address": {
            "type": "string",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "readOnly": true
          },
          "inbox_type": {
            "type": "string",
            "readOnly": true
          },
          "address_registered_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "registered_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          }
        }
      },
      "EInvoiceInbox": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "e_invoice_inboxes"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/EInvoiceInboxAttributes"
          },
          "relationships": {}
        },
        "required": [
          "attributes"
        ]
      },
      "EInvoiceResponseAttributes": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string",
            "readOnly": true
          },
          "env_uuid": {
            "type": "string",
            "readOnly": true
          },
          "external_id": {
            "type": "string",
            "readOnly": true
          },
          "response_type": {
            "type": "string",
            "enum": [
              "accepted",
              "rejected",
              "refunded"
            ],
            "readOnly": true
          },
          "issue_date": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "note": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "to_address": {
            "type": "string",
            "readOnly": true
          },
          "to_vkn": {
            "type": "string",
            "readOnly": true
          },
          "from_address": {
            "type": "string",
            "readOnly": true
          },
          "from_vkn": {
            "type": "string",
            "readOnly": true
          },
          "status": {
            "type": "string",
            "readOnly": true
          },
          "status_code": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "status_changed_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "gtb_registration_no": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "gtb_export_date": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "EInvoiceResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "e_invoice_responses"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/EInvoiceResponseAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "e_invoice": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "e_invoices"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "ESmmAttributes": {
        "type": "object",
        "properties": {
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "printed_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "uuid": {
            "type": "string",
            "readOnly": true
          },
          "vkn": {
            "type": "string",
            "readOnly": true
          },
          "invoice_number": {
            "type": "number",
            "readOnly": true
          },
          "is_printed": {
            "type": "boolean",
            "readOnly": true
          },
          "pdf_url": {
            "type": "string",
            "readOnly": true,
            "description": "Paraşüt web uygulamasındaki PDF yolu (oturum gerektirir, API ucu değildir). PDF'i API ile almak için `GET /{company_id}/e_smms/{id}/pdf` kullanın."
          }
        }
      },
      "ESmm": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "e_smms"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/ESmmAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "sales_invoice": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "sales_invoices"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "ESmmCommonFormAttributes": {
        "type": "object",
        "properties": {
          "vat_withholding_code": {
            "type": "string",
            "description": "Tevkifat oranına ait vergi kodu. - *Bu dosyada ilgili kodları bulabilirsiniz: https://ebelge.gib.gov.tr/dosyalar/kilavuzlar/UBLTR_1.2.1_Kilavuzlar.zip*",
            "readOnly": false
          },
          "note": {
            "type": "string",
            "description": "Fatura notu",
            "readOnly": false
          }
        }
      },
      "ESmmCommonForm": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "e_smm_commons"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/ESmmCommonFormAttributes"
          },
          "relationships": {}
        },
        "required": [
          "attributes"
        ]
      },
      "EmployeeAttributes": {
        "type": "object",
        "properties": {
          "balance": {
            "type": "number",
            "readOnly": true,
            "description": "Bakiye"
          },
          "trl_balance": {
            "type": "number",
            "readOnly": true
          },
          "usd_balance": {
            "type": "number",
            "readOnly": true
          },
          "eur_balance": {
            "type": "number",
            "readOnly": true
          },
          "gbp_balance": {
            "type": "number",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "readOnly": false,
            "description": "Çalışan adı soyadı"
          },
          "email": {
            "type": "string",
            "format": "email",
            "readOnly": false
          },
          "archived": {
            "type": "boolean",
            "readOnly": false
          },
          "iban": {
            "type": "string",
            "readOnly": false
          }
        },
        "required": [
          "name"
        ]
      },
      "Employee": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "employees"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/EmployeeAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "category": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "item_categories"
                        ]
                      }
                    }
                  }
                }
              },
              "managed_by_user": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "users"
                        ]
                      }
                    }
                  }
                }
              },
              "managed_by_user_role": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "user_roles"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "EmployeeBalanceInfoAttributes": {
        "type": "object",
        "properties": {
          "transactions_count": {
            "type": "integer",
            "readOnly": true
          },
          "overdue_salaries": {
            "$ref": "#/components/schemas/BalanceAmounts"
          },
          "overdue_purchase_bills": {
            "$ref": "#/components/schemas/BalanceAmounts"
          },
          "total_overdues": {
            "$ref": "#/components/schemas/BalanceAmounts"
          },
          "future_salaries": {
            "$ref": "#/components/schemas/BalanceAmounts"
          },
          "future_purchase_bills": {
            "$ref": "#/components/schemas/BalanceAmounts"
          }
        }
      },
      "EmployeeBalanceInfo": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255,
            "description": "`employee-balance-info-<çalışan ID>`"
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "employee_balance_infos"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/EmployeeBalanceInfoAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "salaries": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "salaries"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "purchase_bills": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "purchase_bills"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "EmployeePaymentFormAttributes": {
        "allOf": [
          {
            "$ref": "#/components/schemas/PaymentFormAttributes"
          },
          {
            "type": "object",
            "properties": {
              "payable_ids": {
                "description": "Maaş ve masraf fişi ID'leri - *Ödemenizin öncelikli olarak eşleşmesini istediğiniz kayıtlar*",
                "type": "array",
                "items": {
                  "type": "integer"
                }
              }
            }
          }
        ]
      },
      "ExchangeRateAttributes": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "description": "Kurun tarihi; istenen tarihten önce olabilir",
            "readOnly": true
          },
          "currency": {
            "type": "string",
            "enum": [
              "USD",
              "EUR",
              "GBP"
            ],
            "readOnly": true
          },
          "buying_rate": {
            "type": "string",
            "description": "Döviz alış",
            "readOnly": true
          },
          "selling_rate": {
            "type": "string",
            "description": "Döviz satış",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "ExchangeRate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "exchange_rates"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/ExchangeRateAttributes"
          }
        },
        "required": [
          "attributes"
        ]
      },
      "ExportableListMeta": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ListMeta"
          },
          {
            "type": "object",
            "properties": {
              "export_url": {
                "type": "string",
                "description": "Listenin dışa aktarma (export) adresi"
              }
            }
          }
        ]
      },
      "ExternalReferenceKeyAttributes": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "format": "uuid",
            "description": "İstemcinin ürettiği tekil anahtar (UUID); firma bazında tektir"
          }
        }
      },
      "ExternalReferenceKey": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "external_reference_keys"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/ExternalReferenceKeyAttributes"
          }
        },
        "required": [
          "attributes"
        ]
      },
      "InboundDespatchAdviceAttributes": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string",
            "readOnly": true
          },
          "despatch_no": {
            "type": "string",
            "readOnly": true
          },
          "type_code": {
            "type": "string",
            "description": "İrsaliye tipi (ör. `SEVK`)",
            "readOnly": true
          },
          "issue_date": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "shipment_date": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "note": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "order_no": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "order_date": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "license_plate": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "trailer_license_plates": {
            "type": "array",
            "nullable": true,
            "readOnly": true,
            "items": {
              "type": "string"
            }
          },
          "foreign_license_plate": {
            "type": "boolean",
            "readOnly": true
          },
          "drivers_info": {
            "type": "object",
            "description": "Sürücü bilgileri",
            "nullable": true,
            "readOnly": true,
            "additionalProperties": true
          },
          "carrier_info": {
            "type": "object",
            "nullable": true,
            "readOnly": true,
            "properties": {
              "carrier_legal_name": {
                "type": "string"
              },
              "carrier_tax_number": {
                "type": "string"
              }
            }
          },
          "sender_address": {
            "$ref": "#/components/schemas/DespatchAddress"
          },
          "sender_physical_address": {
            "$ref": "#/components/schemas/DespatchAddress"
          },
          "delivery_address": {
            "$ref": "#/components/schemas/DespatchAddress"
          },
          "printed_despatch_no": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "printed_issue_date": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "sender_tax_number": {
            "type": "string",
            "readOnly": true
          },
          "sender_legal_name": {
            "type": "string",
            "readOnly": true
          },
          "idis_shipment_number": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        }
      },
      "InboundDespatchAdvice": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "inbound_despatch_advices"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/InboundDespatchAdviceAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "details": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "inbound_despatch_advice_details"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "InboundDespatchAdviceDetailAttributes": {
        "type": "object",
        "properties": {
          "line_no": {
            "type": "integer",
            "readOnly": true
          },
          "quantity": {
            "type": "string",
            "readOnly": true
          },
          "product_name": {
            "type": "string",
            "readOnly": true
          },
          "unit": {
            "type": "string",
            "description": "UN/ECE birim kodu (ör. `C62`)",
            "readOnly": true
          },
          "additional_item_identifications": {
            "type": "object",
            "nullable": true,
            "readOnly": true,
            "additionalProperties": true
          },
          "idis_data": {
            "type": "object",
            "description": "IDIS verisi, ör. `{\"values\": [{\"label_code\": \"...\"}]}`",
            "nullable": true,
            "readOnly": true,
            "additionalProperties": true
          }
        }
      },
      "InboundDespatchAdviceDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "inbound_despatch_advice_details"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/InboundDespatchAdviceDetailAttributes"
          }
        },
        "required": [
          "attributes"
        ]
      },
      "InboundEDespatchAttributes": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string",
            "description": "ETTN",
            "readOnly": true
          },
          "despatch_no": {
            "type": "string",
            "readOnly": true
          },
          "contact_name": {
            "type": "string",
            "description": "Gönderenin unvanı",
            "nullable": true,
            "readOnly": true
          },
          "issue_date": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "from_tax_number": {
            "type": "string",
            "description": "Gönderenin VKN/TCKN'si",
            "readOnly": true
          },
          "response_status": {
            "type": "string",
            "description": "Yanıt durumu; `null` ise henüz yanıtlanmamıştır",
            "enum": [
              "waiting",
              "failed",
              "legalized"
            ],
            "nullable": true,
            "readOnly": true
          },
          "response_type": {
            "type": "string",
            "enum": [
              "accepted",
              "rejected",
              "partial"
            ],
            "nullable": true,
            "readOnly": true
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "Yanıt verilebilecek son tarih (sağlayıcıya geliş + 8 gün)",
            "nullable": true,
            "readOnly": true
          },
          "is_expired": {
            "type": "boolean",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "InboundEDespatch": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "inbound_e_despatches"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/InboundEDespatchAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "shipment_document": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "shipment_documents"
                        ]
                      }
                    }
                  }
                }
              },
              "contact": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "contacts"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "InboundEDespatchPreviewCustomRequirementInfoAttributes": {
        "type": "object",
        "properties": {
          "extension_type": {
            "type": "string",
            "description": "ör. `idis`",
            "readOnly": true
          },
          "data": {
            "type": "object",
            "description": "Belge düzeyinde `{\"shipment_number\": ...}`, kalem düzeyinde IDIS verisi",
            "readOnly": true,
            "additionalProperties": true
          }
        }
      },
      "InboundEDespatchPreviewCustomRequirementInfo": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "inbound_e_despatch_preview_custom_requirement_infos"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/InboundEDespatchPreviewCustomRequirementInfoAttributes"
          }
        },
        "required": [
          "attributes"
        ]
      },
      "InventoryLevelAttributes": {
        "type": "object",
        "properties": {
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "stock_count": {
            "type": "number",
            "readOnly": true,
            "description": "Stok Miktarı"
          },
          "initial_stock_count": {
            "type": "number",
            "readOnly": false,
            "description": "Başlangıç Stok Miktarı"
          },
          "critical_stock_count": {
            "type": "number",
            "readOnly": false
          }
        }
      },
      "InventoryLevel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "inventory_levels"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/InventoryLevelAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "product": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "products"
                        ]
                      }
                    }
                  }
                }
              },
              "warehouse": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "warehouses"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "ItemCategoryAttributes": {
        "type": "object",
        "properties": {
          "full_path": {
            "type": "string",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "readOnly": false,
            "description": "Kategori adı"
          },
          "bg_color": {
            "type": "string",
            "readOnly": false,
            "description": "Renk"
          },
          "text_color": {
            "type": "string",
            "readOnly": false,
            "description": "Yazı rengi"
          },
          "category_type": {
            "type": "string",
            "enum": [
              "Product",
              "Contact",
              "Employee",
              "SalesInvoice",
              "Expenditure"
            ],
            "readOnly": false,
            "description": "Kategori tipi"
          },
          "parent_id": {
            "type": "integer",
            "readOnly": false
          }
        },
        "required": [
          "name",
          "category_type"
        ]
      },
      "ItemCategory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "item_categories"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/ItemCategoryAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "parent_category": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "item_categories"
                        ]
                      }
                    }
                  }
                }
              },
              "subcategories": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "item_categories"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "MeAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "readOnly": true
          },
          "email": {
            "type": "string",
            "format": "email",
            "readOnly": true
          },
          "is_confirmed": {
            "type": "boolean",
            "readOnly": true
          }
        }
      },
      "Me": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "users"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/MeAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "user_roles": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "user_roles"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "companies": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "companies"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "profile": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "profiles"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "OpeningBalanceAttributes": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "enum": [
              "TRL",
              "USD",
              "EUR",
              "GBP"
            ]
          },
          "description": {
            "type": "string"
          },
          "net_total": {
            "type": "string"
          },
          "remaining": {
            "type": "string",
            "readOnly": true
          },
          "issue_date": {
            "type": "string",
            "format": "date"
          },
          "tx_type": {
            "type": "string",
            "description": "`debit`: cari borçlu, `credit`: cari alacaklı",
            "enum": [
              "debit",
              "credit"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "OpeningBalance": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "opening_balances"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/OpeningBalanceAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "contact": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "contacts"
                        ]
                      }
                    }
                  }
                }
              },
              "payments": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "payments"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "PaymentAttributes": {
        "type": "object",
        "properties": {
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "date": {
            "type": "string",
            "format": "date",
            "description": "Ödeme tarihi",
            "readOnly": false
          },
          "amount": {
            "type": "number",
            "description": "Ödeme tutarı",
            "readOnly": false
          },
          "currency": {
            "type": "number",
            "description": "Para birimi",
            "readOnly": false
          },
          "notes": {
            "type": "string",
            "readOnly": false
          }
        }
      },
      "Payment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "payments"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/PaymentAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "payable": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "sales_invoices",
                          "purchase_bills",
                          "taxes",
                          "bank_fees",
                          "salaries",
                          "checks",
                          "opening_balances"
                        ]
                      }
                    }
                  }
                }
              },
              "transaction": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "transactions"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "PaymentFormAttributes": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "description": "Ödeme/Tahsilat Açıklaması",
            "readOnly": false
          },
          "account_id": {
            "type": "integer",
            "description": "Kasa veya Banka - *Bu parametre ayrıca ödemenin/tahsilatın hangi döviz kuru ile yapılacağını belirler.*",
            "readOnly": false
          },
          "date": {
            "type": "string",
            "format": "date",
            "description": "Ödeme/Tahsilat tarihi",
            "readOnly": false
          },
          "amount": {
            "type": "number",
            "description": "Ödeme/Tahsilat tutarı",
            "readOnly": false
          },
          "exchange_rate": {
            "type": "number",
            "description": "Döviz kuru - *Eğer ödeme/tahsilat, faturadan farklı bir döviz kuru ile yapılacaksa; döviz kurunun TL karşılığını belirtin. Eğer ödeme/tahsilat, fatura ile aynı döviz kuru ile yapılacaksa; \"1.0\" değerini girin veya boş bırakın.*",
            "readOnly": false
          }
        }
      },
      "PaymentForm": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "payments"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/PaymentFormAttributes"
          },
          "relationships": {}
        },
        "required": [
          "attributes"
        ]
      },
      "PriceListAttributes": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 255
          },
          "item_type": {
            "type": "string",
            "enum": [
              "custom",
              "category",
              "all"
            ]
          },
          "batch_discount_percentage": {
            "type": "string",
            "description": "Toplu indirim yüzdesi (0–100)",
            "nullable": true
          },
          "price_list_details_count": {
            "type": "integer",
            "readOnly": true
          },
          "contacts_count": {
            "type": "integer",
            "description": "Listeyi kullanan cari sayısı",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "PriceList": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "price_lists"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/PriceListAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "category": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "item_categories"
                        ]
                      }
                    }
                  }
                }
              },
              "details": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "price_list_details"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "PriceListDetailAttributes": {
        "type": "object",
        "properties": {
          "detail_no": {
            "type": "integer",
            "readOnly": true
          },
          "discount_percentage": {
            "type": "string",
            "description": "İndirim yüzdesi (0–100)"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          }
        }
      },
      "PriceListDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255,
            "description": "`all`/`category` listelerde üretilmiş satırlar için kalıcı değildir"
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "price_list_details"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/PriceListDetailAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "product": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "products"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "ProductAttributes": {
        "type": "object",
        "properties": {
          "sales_excise_duty_code": {
            "type": "string",
            "readOnly": true
          },
          "sales_invoice_details_count": {
            "type": "integer",
            "readOnly": true
          },
          "purchase_invoice_details_count": {
            "type": "integer",
            "readOnly": true
          },
          "list_price_in_trl": {
            "type": "number",
            "readOnly": true
          },
          "buying_price_in_trl": {
            "type": "number",
            "readOnly": true
          },
          "stock_count": {
            "type": "number",
            "readOnly": true,
            "description": "Stok Miktarı"
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "code": {
            "type": "string",
            "readOnly": false,
            "description": "Ürün/hizmet kodu"
          },
          "name": {
            "type": "string",
            "readOnly": false,
            "description": "Ürün/hizmet ismi"
          },
          "vat_rate": {
            "type": "number",
            "readOnly": false,
            "description": "KDV oranı"
          },
          "sales_excise_duty": {
            "type": "number",
            "readOnly": false,
            "description": "Satış ÖTV"
          },
          "sales_excise_duty_type": {
            "type": "string",
            "readOnly": false,
            "description": "Satış ÖTV tipi"
          },
          "purchase_excise_duty": {
            "type": "number",
            "readOnly": false,
            "description": "Alış ÖTV"
          },
          "purchase_excise_duty_type": {
            "type": "string",
            "readOnly": false,
            "description": "Alış ÖTV tipi"
          },
          "unit": {
            "type": "string",
            "readOnly": false,
            "description": "Birim"
          },
          "communications_tax_rate": {
            "type": "number",
            "readOnly": false,
            "description": "ÖİV oranı"
          },
          "archived": {
            "type": "boolean",
            "readOnly": false
          },
          "list_price": {
            "type": "number",
            "readOnly": false,
            "description": "Satış fiyatı"
          },
          "currency": {
            "type": "string",
            "readOnly": false,
            "description": "Satış döviz"
          },
          "buying_price": {
            "type": "number",
            "readOnly": false,
            "description": "Alış fiyatı"
          },
          "buying_currency": {
            "type": "string",
            "readOnly": false,
            "description": "Alış döviz"
          },
          "inventory_tracking": {
            "type": "boolean",
            "readOnly": false
          },
          "initial_stock_count": {
            "type": "number",
            "readOnly": false,
            "description": "Başlangıç Stok Miktarı. Birden fazla deponuz varsa başlangıç stok miktarını, depo stok seviyesi (inventory_level) relationship'i üzerinden depo bazında göndermelisiniz."
          },
          "gtip": {
            "type": "string",
            "format": "number",
            "description": "Ürünün GTIP kodu - *https://uygulama.gtb.gov.tr/Tara adresinden öğrenebilirsiniz*",
            "readOnly": false
          },
          "barcode": {
            "type": "string",
            "readOnly": false
          }
        },
        "required": [
          "name"
        ]
      },
      "Product": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "products"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/ProductAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "inventory_levels": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "inventory_levels"
                        ]
                      }
                    }
                  }
                }
              },
              "category": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "item_categories"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "ProductDiscountAttributes": {
        "type": "object",
        "properties": {
          "product_id": {
            "type": "string",
            "description": "İstekteki ürün ID'si (metin ya da tam sayı olarak dönebilir)",
            "readOnly": true
          },
          "discount_percentage": {
            "type": "string",
            "readOnly": true
          }
        }
      },
      "ProductDiscount": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "product_discounts"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/ProductDiscountAttributes"
          }
        },
        "required": [
          "attributes"
        ]
      },
      "ProductHistoryAttributes": {
        "type": "object",
        "properties": {
          "history_type": {
            "type": "string",
            "enum": [
              "buying_price_created",
              "selling_price_created",
              "buying_price_changed",
              "buying_currency_changed",
              "selling_price_changed",
              "selling_currency_changed"
            ],
            "readOnly": true
          },
          "source_type": {
            "type": "string",
            "description": "Değişikliğin kaynağı",
            "enum": [
              "product",
              "estimate",
              "invoice",
              "accommodation_tax",
              "purchase_bill",
              "export"
            ],
            "readOnly": true
          },
          "data": {
            "type": "object",
            "description": "Eski/yeni değerler, kısaltılmış anahtarlarla - alış: `obc`/`bc` (para birimi), `obp`/`bp` (fiyat); satış: `oc`/`c` (para birimi), `olp`/`lp` (liste fiyatı)",
            "readOnly": true,
            "additionalProperties": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "ProductHistory": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "product_histories"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/ProductHistoryAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "product": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "products"
                        ]
                      }
                    }
                  }
                }
              },
              "done_by": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "users"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "ProductInvoiceHistoryItemAttributes": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "description": "Fatura tarihi",
            "readOnly": true
          },
          "price": {
            "type": "string",
            "description": "Kalem birim fiyatı",
            "readOnly": true
          },
          "quantity": {
            "type": "string",
            "readOnly": true
          },
          "total": {
            "type": "string",
            "description": "Miktar × fiyat − indirimler; konaklama vergisi faturalarında 0",
            "readOnly": true
          }
        }
      },
      "ProductInvoiceHistoryItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "product_invoice_history_items"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/ProductInvoiceHistoryItemAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "invoice": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "sales_invoices",
                          "purchase_bills"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "ProductShipmentDocumentHistoryItemAttributes": {
        "type": "object",
        "properties": {
          "quantity": {
            "type": "string",
            "readOnly": true
          }
        }
      },
      "ProductShipmentDocumentHistoryItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255,
            "description": "Her istekte yeniden üretilir; saklanmamalıdır"
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "product_shipment_document_history_items"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/ProductShipmentDocumentHistoryItemAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "shipment_document": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "shipment_documents"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "ProfileAttributes": {
        "type": "object",
        "properties": {
          "phone": {
            "type": "string",
            "readOnly": true
          },
          "job_title": {
            "type": "string",
            "readOnly": true
          },
          "avatar": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "is_processing": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "Profile": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "profiles"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/ProfileAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "user": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "users"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "PurchaseBillAttributes": {
        "type": "object",
        "properties": {
          "archived": {
            "type": "boolean",
            "readOnly": true
          },
          "total_paid": {
            "type": "number",
            "readOnly": true
          },
          "gross_total": {
            "type": "number",
            "readOnly": true
          },
          "total_excise_duty": {
            "type": "number",
            "readOnly": true
          },
          "total_communications_tax": {
            "type": "number",
            "readOnly": true
          },
          "total_vat": {
            "type": "number",
            "readOnly": false
          },
          "total_vat_withholding": {
            "type": "number",
            "readOnly": true
          },
          "total_discount": {
            "type": "number",
            "readOnly": true
          },
          "total_invoice_discount": {
            "type": "number",
            "readOnly": true
          },
          "remaining": {
            "type": "number",
            "readOnly": true
          },
          "remaining_in_trl": {
            "type": "number",
            "readOnly": true
          },
          "payment_status": {
            "type": "string",
            "enum": [
              "paid",
              "overdue",
              "unpaid",
              "partially_paid"
            ],
            "readOnly": true
          },
          "is_detailed": {
            "type": "boolean",
            "readOnly": true
          },
          "sharings_count": {
            "type": "integer",
            "readOnly": true
          },
          "e_invoices_count": {
            "type": "integer",
            "readOnly": true
          },
          "remaining_reimbursement": {
            "type": "number",
            "readOnly": true
          },
          "remaining_reimbursement_in_trl": {
            "type": "number",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "item_type": {
            "type": "string",
            "enum": [
              "purchase_bill",
              "cancelled",
              "recurring_purchase_bill",
              "refund"
            ],
            "readOnly": false
          },
          "description": {
            "type": "string",
            "readOnly": false
          },
          "issue_date": {
            "type": "string",
            "format": "date",
            "readOnly": false
          },
          "due_date": {
            "type": "string",
            "format": "date",
            "readOnly": false
          },
          "invoice_no": {
            "type": "string",
            "readOnly": false
          },
          "currency": {
            "type": "string",
            "enum": [
              "TRL",
              "USD",
              "EUR",
              "GBP"
            ],
            "readOnly": false
          },
          "exchange_rate": {
            "type": "number",
            "readOnly": false
          },
          "net_total": {
            "type": "number",
            "readOnly": false
          },
          "withholding_rate": {
            "type": "number",
            "readOnly": false
          },
          "invoice_discount_type": {
            "type": "string",
            "enum": [
              "percentage",
              "amount"
            ],
            "readOnly": false
          },
          "invoice_discount": {
            "type": "number",
            "readOnly": false
          }
        },
        "required": [
          "item_type",
          "issue_date",
          "due_date",
          "currency",
          "net_total",
          "total_vat"
        ]
      },
      "PurchaseBill": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "purchase_bills"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/PurchaseBillAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "category": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "item_categories"
                        ]
                      }
                    }
                  }
                }
              },
              "spender": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "employees"
                        ]
                      }
                    }
                  }
                }
              },
              "supplier": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "contacts"
                        ]
                      }
                    }
                  }
                }
              },
              "details": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "purchase_bill_details"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "payments": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "payments"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "tags": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "tags"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "recurrence_plan": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "recurrence_plans"
                        ]
                      }
                    }
                  }
                }
              },
              "active_e_document": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "e_invoices"
                        ]
                      }
                    }
                  }
                }
              },
              "pay_to": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "contacts",
                          "employees"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "PurchaseBillBasicFormAttributes": {
        "type": "object",
        "properties": {
          "item_type": {
            "type": "string",
            "enum": [
              "purchase_bill",
              "refund"
            ],
            "readOnly": false
          },
          "description": {
            "type": "string",
            "readOnly": false
          },
          "issue_date": {
            "type": "string",
            "format": "date",
            "readOnly": false
          },
          "due_date": {
            "type": "string",
            "format": "date",
            "readOnly": false
          },
          "invoice_no": {
            "type": "string",
            "readOnly": false
          },
          "currency": {
            "type": "string",
            "enum": [
              "TRL",
              "USD",
              "EUR",
              "GBP"
            ],
            "readOnly": false
          },
          "exchange_rate": {
            "type": "number",
            "readOnly": false
          },
          "net_total": {
            "type": "number",
            "readOnly": false
          },
          "total_vat": {
            "type": "number",
            "readOnly": false
          }
        },
        "required": [
          "item_type",
          "issue_date",
          "due_date",
          "currency",
          "net_total",
          "total_vat"
        ]
      },
      "PurchaseBillBasicForm": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "purchase_bills"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/PurchaseBillBasicFormAttributes"
          },
          "relationships": {}
        },
        "required": [
          "attributes"
        ]
      },
      "PurchaseBillDetailAttributes": {
        "type": "object",
        "properties": {
          "net_total": {
            "type": "number",
            "readOnly": true
          },
          "vat_withholding": {
            "type": "number",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "quantity": {
            "type": "number",
            "readOnly": false
          },
          "unit_price": {
            "type": "number",
            "readOnly": false
          },
          "vat_rate": {
            "type": "number",
            "readOnly": false
          },
          "vat_withholding_rate": {
            "type": "number",
            "readOnly": false
          },
          "discount_type": {
            "type": "string",
            "enum": [
              "percentage",
              "amount"
            ],
            "readOnly": false
          },
          "discount_value": {
            "type": "number",
            "readOnly": false
          },
          "excise_duty_type": {
            "type": "string",
            "enum": [
              "percentage",
              "amount"
            ],
            "readOnly": false
          },
          "excise_duty_value": {
            "type": "number",
            "readOnly": false
          },
          "communications_tax_rate": {
            "type": "number",
            "readOnly": false
          },
          "description": {
            "type": "string",
            "readOnly": false
          }
        },
        "required": [
          "quantity",
          "unit_price",
          "vat_rate"
        ]
      },
      "PurchaseBillDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "purchase_bill_details"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/PurchaseBillDetailAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "warehouse": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "warehouses"
                        ]
                      }
                    }
                  }
                }
              },
              "product": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "products"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "PurchaseBillDetailedFormAttributes": {
        "type": "object",
        "properties": {
          "item_type": {
            "type": "string",
            "enum": [
              "purchase_bill",
              "refund"
            ],
            "readOnly": false
          },
          "description": {
            "type": "string",
            "readOnly": false
          },
          "issue_date": {
            "type": "string",
            "format": "date",
            "readOnly": false
          },
          "due_date": {
            "type": "string",
            "format": "date",
            "readOnly": false
          },
          "invoice_no": {
            "type": "string",
            "readOnly": false
          },
          "currency": {
            "type": "string",
            "enum": [
              "TRL",
              "USD",
              "EUR",
              "GBP"
            ],
            "readOnly": false
          },
          "exchange_rate": {
            "type": "number",
            "readOnly": false
          },
          "withholding_rate": {
            "type": "number",
            "readOnly": false
          },
          "invoice_discount": {
            "type": "number",
            "readOnly": false
          },
          "invoice_discount_type": {
            "type": "string",
            "enum": [
              "percentage",
              "amount"
            ],
            "readOnly": false
          }
        },
        "required": [
          "item_type",
          "issue_date",
          "due_date",
          "currency"
        ]
      },
      "PurchaseBillDetailedForm": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "purchase_bills"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/PurchaseBillDetailedFormAttributes"
          },
          "relationships": {}
        },
        "required": [
          "attributes"
        ]
      },
      "SalaryAttributes": {
        "type": "object",
        "properties": {
          "total_paid": {
            "type": "number",
            "readOnly": true
          },
          "archived": {
            "type": "boolean",
            "readOnly": true
          },
          "remaining": {
            "type": "number",
            "readOnly": true
          },
          "remaining_in_trl": {
            "type": "number",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "description": {
            "type": "string",
            "readOnly": false
          },
          "currency": {
            "type": "string",
            "enum": [
              "TRL",
              "USD",
              "EUR",
              "GBP"
            ],
            "readOnly": false
          },
          "issue_date": {
            "type": "string",
            "format": "date",
            "readOnly": false
          },
          "due_date": {
            "type": "string",
            "format": "date",
            "readOnly": false
          },
          "exchange_rate": {
            "type": "number",
            "readOnly": false
          },
          "net_total": {
            "type": "number",
            "readOnly": false
          }
        },
        "required": [
          "description",
          "currency",
          "issue_date",
          "due_date",
          "net_total"
        ]
      },
      "Salary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "salaries"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/SalaryAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "employee": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "employees"
                        ]
                      }
                    }
                  }
                }
              },
              "category": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "item_categories"
                        ]
                      }
                    }
                  }
                }
              },
              "tags": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "tags"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "SalesInvoiceAttributes": {
        "type": "object",
        "properties": {
          "archived": {
            "type": "boolean",
            "readOnly": true
          },
          "invoice_no": {
            "type": "string",
            "readOnly": true,
            "description": "Fatura no"
          },
          "net_total": {
            "type": "number",
            "readOnly": true,
            "description": "Genel Toplam"
          },
          "gross_total": {
            "type": "number",
            "readOnly": true,
            "description": "Ara toplam"
          },
          "withholding": {
            "type": "number",
            "readOnly": true,
            "description": "Stopaj"
          },
          "total_excise_duty": {
            "type": "number",
            "readOnly": true
          },
          "total_communications_tax": {
            "type": "number",
            "readOnly": true
          },
          "total_vat": {
            "type": "number",
            "readOnly": true,
            "description": "Toplam KDV"
          },
          "total_vat_withholding": {
            "type": "number",
            "readOnly": true,
            "description": "Tevkifat"
          },
          "total_discount": {
            "type": "number",
            "readOnly": true,
            "description": "Toplam indirim"
          },
          "total_invoice_discount": {
            "type": "number",
            "readOnly": true
          },
          "before_taxes_total": {
            "type": "number",
            "readOnly": true,
            "description": "Vergiler Hariç Toplam"
          },
          "remaining": {
            "type": "number",
            "readOnly": true,
            "description": "Ödenmemiş tutar"
          },
          "remaining_in_trl": {
            "type": "number",
            "readOnly": true
          },
          "payment_status": {
            "type": "string",
            "enum": [
              "paid",
              "overdue",
              "unpaid",
              "partially_paid"
            ],
            "readOnly": true,
            "description": "Tahsilat durumu"
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "description": "Kayıt tarihi"
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "description": "Son güncelleme tarihi"
          },
          "item_type": {
            "type": "string",
            "enum": [
              "invoice",
              "export",
              "estimate",
              "cancelled",
              "recurring_invoice",
              "recurring_estimate",
              "recurring_export",
              "refund"
            ],
            "readOnly": false,
            "description": "Fatura türü"
          },
          "description": {
            "type": "string",
            "readOnly": false,
            "description": "Fatura açıklaması"
          },
          "issue_date": {
            "type": "string",
            "format": "date",
            "readOnly": false,
            "description": "Düzenleme tarihi"
          },
          "due_date": {
            "type": "string",
            "format": "date",
            "readOnly": false,
            "description": "Son tahsilat tarihi"
          },
          "invoice_series": {
            "type": "string",
            "readOnly": false,
            "description": "Fatura seri"
          },
          "invoice_id": {
            "type": "integer",
            "readOnly": false,
            "description": "Fatura sıra"
          },
          "currency": {
            "type": "string",
            "enum": [
              "TRL",
              "USD",
              "EUR",
              "GBP"
            ],
            "readOnly": false,
            "description": "Döviz tipi"
          },
          "exchange_rate": {
            "type": "number",
            "readOnly": false,
            "description": "Döviz kuru"
          },
          "withholding_rate": {
            "type": "number",
            "readOnly": false,
            "description": "Stopaj oranı"
          },
          "invoice_discount_type": {
            "type": "string",
            "enum": [
              "percentage",
              "amount"
            ],
            "readOnly": false
          },
          "invoice_discount": {
            "type": "number",
            "readOnly": false
          },
          "billing_address": {
            "type": "string",
            "readOnly": false,
            "description": "Gönderim adresi"
          },
          "billing_postal_code": {
            "type": "string",
            "readOnly": false,
            "description": "Gönderim posta kodu"
          },
          "billing_phone": {
            "type": "string",
            "readOnly": false,
            "description": "Gönderim adresi telefonu"
          },
          "billing_fax": {
            "type": "string",
            "readOnly": false,
            "description": "Gönderim adresi faksı"
          },
          "tax_office": {
            "type": "string",
            "readOnly": false,
            "description": "Müşteri vergi dairesi"
          },
          "tax_number": {
            "type": "string",
            "readOnly": false,
            "description": "Müşteri vergi numarası"
          },
          "country": {
            "type": "string",
            "readOnly": false
          },
          "city": {
            "type": "string",
            "readOnly": false
          },
          "district": {
            "type": "string",
            "readOnly": false
          },
          "is_abroad": {
            "type": "boolean",
            "readOnly": false,
            "description": "Alıcı yurt dışı bilgisi"
          },
          "order_no": {
            "type": "string",
            "readOnly": false,
            "description": "Sipariş no (resmileştirmek için order_date dolu ise bu alan zorunludur)"
          },
          "order_date": {
            "type": "string",
            "format": "date",
            "readOnly": false,
            "description": "Sipariş tarihi (resmileştirmek için order_no dolu ise bu alan zorunludur)"
          },
          "shipment_addres": {
            "type": "string",
            "readOnly": false
          },
          "shipment_included": {
            "type": "boolean",
            "readOnly": false,
            "description": "İrsaliyeli fatura"
          },
          "cash_sale": {
            "type": "boolean",
            "readOnly": false,
            "description": "Peşin satış"
          },
          "payer_tax_numbers": {
            "description": "Kamu faturaları için zorunludur.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": false
          },
          "invoice_note": {
            "type": "string",
            "readOnly": false,
            "description": "Fatura notu"
          },
          "append_contact_balance": {
            "type": "boolean",
            "readOnly": false,
            "description": "Müşteri bakiyeniz faturaya eklenecektir."
          },
          "e_document_accounts": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "readOnly": false,
            "description": "Bu alana hesap ID'leri eklenebilir."
          }
        },
        "required": [
          "item_type",
          "issue_date"
        ]
      },
      "SalesInvoice": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "sales_invoices"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/SalesInvoiceAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "category": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "item_categories"
                        ]
                      }
                    }
                  }
                }
              },
              "contact": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "contacts"
                        ]
                      }
                    }
                  }
                }
              },
              "details": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "sales_invoice_details"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "payments": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "payments"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "tags": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "tags"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "sales_offer": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "sales_offers"
                        ]
                      }
                    }
                  }
                }
              },
              "sharings": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "sharings"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "recurrence_plan": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "recurrence_plans"
                        ]
                      }
                    }
                  }
                }
              },
              "active_e_document": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "e_archives",
                          "e_invoices",
                          "e_smms"
                        ]
                      }
                    }
                  }
                }
              },
              "external_reference_key": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "external_reference_keys"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "SalesInvoiceCreateUpdateAttributes": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SalesInvoiceAttributes"
          },
          {
            "type": "object",
            "properties": {
              "payment_account_id": {
                "type": "number",
                "description": "Peşin faturalar için ödeme oluşturma / güncellemede kullanılır."
              },
              "payment_date": {
                "type": "string",
                "description": "Peşin faturalar için ödeme oluşturma / güncellemede kullanılır."
              },
              "payment_description": {
                "type": "string"
              }
            }
          }
        ]
      },
      "SalesInvoiceCreateUpdate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "sales_invoices"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/SalesInvoiceCreateUpdateAttributes"
          },
          "relationships": {}
        },
        "required": [
          "attributes"
        ]
      },
      "SalesInvoiceDetailAttributes": {
        "type": "object",
        "properties": {
          "net_total": {
            "type": "number",
            "readOnly": true,
            "description": "Ürün/hizmet net tutarı"
          },
          "vat_withholding": {
            "type": "number",
            "readOnly": true,
            "description": "Tevkifat"
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "description": "Kayıt tarihi"
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "description": "Son güncelleme tarihi"
          },
          "quantity": {
            "type": "number",
            "readOnly": false,
            "description": "Miktar"
          },
          "unit_price": {
            "type": "number",
            "readOnly": false,
            "description": "Birim fiyatı"
          },
          "vat_rate": {
            "type": "number",
            "readOnly": false,
            "description": "KDV oranı"
          },
          "vat_withholding_rate": {
            "type": "number",
            "description": "Tevkifat oranı",
            "readOnly": false
          },
          "discount_type": {
            "type": "string",
            "enum": [
              "percentage",
              "amount"
            ],
            "readOnly": false,
            "description": "İndirim türü"
          },
          "discount_value": {
            "type": "number",
            "readOnly": false
          },
          "excise_duty_type": {
            "type": "string",
            "enum": [
              "percentage",
              "amount"
            ],
            "readOnly": false,
            "description": "ÖTV tipi"
          },
          "excise_duty_value": {
            "type": "number",
            "readOnly": false
          },
          "communications_tax_rate": {
            "type": "number",
            "readOnly": false,
            "description": "ÖİV oranı"
          },
          "description": {
            "type": "string",
            "readOnly": false,
            "description": "Açıklama"
          },
          "delivery_method": {
            "type": "string",
            "description": "Teslim Şartı",
            "enum": [
              "CFR",
              "CIF",
              "CIP",
              "CPT",
              "DAF",
              "DAP",
              "DPU",
              "DDP",
              "DDU",
              "DEQ",
              "DES",
              "EXW",
              "FAS",
              "FCA",
              "FOB"
            ],
            "readOnly": false
          },
          "shipping_method": {
            "type": "string",
            "description": "Gönderim Şekli",
            "enum": [
              "Denizyolu",
              "Demiryolu",
              "Karayolu",
              "Havayolu",
              "Posta",
              "Çok araçlı",
              "Sabit taşıma tesisleri",
              "İç su taşımacılığı"
            ],
            "readOnly": false
          }
        },
        "required": [
          "quantity",
          "unit_price",
          "vat_rate"
        ]
      },
      "SalesInvoiceDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "sales_invoice_details"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/SalesInvoiceDetailAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "warehouse": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "warehouses"
                        ]
                      }
                    }
                  }
                }
              },
              "product": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "products"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "SalesOfferAttributes": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "readOnly": false,
            "description": "Teklif içeriği"
          },
          "contact_type": {
            "type": "string",
            "readOnly": false,
            "description": "Alıcı tipi"
          },
          "sharings_count": {
            "type": "number",
            "readOnly": true
          },
          "status": {
            "type": "string",
            "readOnly": true
          },
          "display_exchange_rate_in_pdf": {
            "type": "boolean",
            "readOnly": false,
            "description": "Gösterim döviz kuru"
          },
          "archived": {
            "type": "boolean",
            "readOnly": true
          },
          "net_total": {
            "type": "number",
            "readOnly": true,
            "description": "Genel Toplam"
          },
          "gross_total": {
            "type": "number",
            "readOnly": true,
            "description": "Ara toplam"
          },
          "withholding": {
            "type": "number",
            "readOnly": true,
            "description": "Stopaj"
          },
          "total_excise_duty": {
            "type": "number",
            "readOnly": true
          },
          "total_communications_tax": {
            "type": "number",
            "readOnly": true
          },
          "total_accommodation_tax": {
            "type": "number",
            "readOnly": true
          },
          "total_vat": {
            "type": "number",
            "readOnly": true,
            "description": "Toplam KDV"
          },
          "total_vat_withholding": {
            "type": "number",
            "readOnly": true,
            "description": "Toplam Tevkifat"
          },
          "vat_withholding": {
            "type": "number",
            "readOnly": true,
            "description": "Tevkifat"
          },
          "total_discount": {
            "type": "number",
            "readOnly": true,
            "description": "Toplam indirim"
          },
          "total_invoice_discount": {
            "type": "number",
            "readOnly": true
          },
          "description": {
            "type": "string",
            "readOnly": false,
            "description": "Fatura açıklaması"
          },
          "issue_date": {
            "type": "string",
            "format": "date",
            "readOnly": false,
            "description": "Düzenleme tarihi"
          },
          "due_date": {
            "type": "string",
            "format": "date",
            "readOnly": false,
            "description": "Son tahsilat tarihi"
          },
          "currency": {
            "type": "string",
            "enum": [
              "TRL",
              "USD",
              "EUR",
              "GBP"
            ],
            "readOnly": false,
            "description": "Döviz tipi"
          },
          "exchange_rate": {
            "type": "number",
            "readOnly": false,
            "description": "Döviz kuru"
          },
          "withholding_rate": {
            "type": "number",
            "readOnly": false,
            "description": "Stopaj oranı"
          },
          "invoice_discount_type": {
            "type": "string",
            "enum": [
              "percentage",
              "amount"
            ],
            "readOnly": false
          },
          "invoice_discount": {
            "type": "number",
            "readOnly": false
          },
          "billing_address": {
            "type": "string",
            "readOnly": false,
            "description": "Gönderim adresi"
          },
          "billing_phone": {
            "type": "string",
            "readOnly": false,
            "description": "Gönderim adresi telefonu"
          },
          "billing_fax": {
            "type": "string",
            "readOnly": false,
            "description": "Gönderim adresi faksı"
          },
          "tax_office": {
            "type": "string",
            "readOnly": false,
            "description": "Müşteri vergi dairesi"
          },
          "tax_number": {
            "type": "string",
            "readOnly": false,
            "description": "Müşteri vergi numarası"
          },
          "city": {
            "type": "string",
            "readOnly": false
          },
          "district": {
            "type": "string",
            "readOnly": false
          },
          "is_abroad": {
            "type": "boolean",
            "readOnly": false,
            "description": "Alıcı yurt dışı bilgisi"
          },
          "order_no": {
            "type": "string",
            "readOnly": false,
            "description": "Sipariş no (resmileştirmek için order_date dolu ise bu alan zorunludur)"
          },
          "order_date": {
            "type": "string",
            "format": "date",
            "readOnly": false,
            "description": "Sipariş tarihi (resmileştirmek için order_no dolu ise bu alan zorunludur)"
          }
        },
        "required": [
          "item_type",
          "issue_date"
        ]
      },
      "SalesOffers": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "sales_offers"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/SalesOfferAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "sales_invoice": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "sales_invoices"
                        ]
                      }
                    }
                  }
                }
              },
              "contact": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "contacts"
                        ]
                      }
                    }
                  }
                }
              },
              "details": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "sales_offer_details"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "activities": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "activities"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "sharings": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "sharings"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "SalesOffersDetailAttributes": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "readOnly": false
          },
          "net_total": {
            "type": "number",
            "readOnly": false
          },
          "unit_price": {
            "type": "number",
            "readOnly": false
          },
          "vat_rate": {
            "type": "number",
            "readOnly": false
          },
          "quantity": {
            "type": "number",
            "readOnly": false
          },
          "discount_type": {
            "type": "string",
            "readOnly": false
          },
          "discount_value": {
            "type": "number",
            "readOnly": false
          },
          "communications_tax_rate": {
            "type": "number",
            "readOnly": false
          },
          "excise_duty_type": {
            "type": "string",
            "readOnly": false
          },
          "invoice_discount": {
            "type": "number",
            "readOnly": false
          },
          "excise_duty": {
            "type": "number",
            "readOnly": false
          },
          "excise_duty_rate": {
            "type": "number",
            "readOnly": false
          },
          "discount": {
            "type": "number",
            "readOnly": false
          },
          "communications_tax": {
            "type": "number",
            "readOnly": false
          },
          "detail_no": {
            "type": "number",
            "readOnly": false
          },
          "net_total_without_invoice_discount": {
            "type": "number",
            "readOnly": false
          },
          "vat_withholding": {
            "type": "number",
            "readOnly": false
          },
          "vat_withholding_rate": {
            "type": "number",
            "readOnly": false
          },
          "accommodation_tax_rate": {
            "type": "number",
            "readOnly": false
          },
          "accommodation_tax": {
            "type": "number",
            "readOnly": false
          },
          "accommodation_tax_exempt": {
            "type": "boolean",
            "readOnly": false
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "excise_duty_value": {
            "type": "number",
            "readOnly": false
          }
        }
      },
      "SalesOffersDetails": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "sales_offer_details"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/SalesOffersDetailAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "product": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "products"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "SalesOffersUpdateStatusAttributes": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Teklif durumu",
            "enum": [
              "accepted",
              "rejected",
              "waiting"
            ],
            "readOnly": false
          }
        },
        "required": [
          "status"
        ]
      },
      "SalesOffersUpdateStatusBody": {
        "type": "object",
        "description": "",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "maxLength": 255
              },
              "type": {
                "type": "string",
                "maxLength": 255,
                "description": "Type of the resource",
                "enum": [
                  "sales_offers"
                ]
              },
              "attributes": {
                "$ref": "#/components/schemas/SalesOffersUpdateStatusAttributes"
              }
            }
          },
          "include": {
            "type": "string",
            "description": "Response ile birlikte geri dönmesini istediğiniz ilişkiler - *Available: activities*"
          }
        },
        "required": [
          "data"
        ]
      },
      "SalesOffersCreateUpdateAttributes": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "readOnly": false,
            "description": "Teklif içeriği"
          },
          "contact_type": {
            "type": "string",
            "readOnly": false,
            "description": "Alıcı tipi"
          },
          "sharings_count": {
            "type": "number",
            "readOnly": true
          },
          "status": {
            "type": "string",
            "readOnly": true
          },
          "display_exchange_rate_in_pdf": {
            "type": "boolean",
            "readOnly": false,
            "description": "Gösterim döviz kuru"
          },
          "archived": {
            "type": "boolean",
            "readOnly": true
          },
          "net_total": {
            "type": "number",
            "readOnly": true,
            "description": "Genel Toplam"
          },
          "gross_total": {
            "type": "number",
            "readOnly": true,
            "description": "Ara toplam"
          },
          "withholding": {
            "type": "number",
            "readOnly": true,
            "description": "Stopaj"
          },
          "total_excise_duty": {
            "type": "number",
            "readOnly": true
          },
          "total_communications_tax": {
            "type": "number",
            "readOnly": true
          },
          "total_accommodation_tax": {
            "type": "number",
            "readOnly": true
          },
          "total_vat": {
            "type": "number",
            "readOnly": true,
            "description": "Toplam KDV"
          },
          "total_vat_withholding": {
            "type": "number",
            "readOnly": true,
            "description": "Toplam Tevkifat"
          },
          "total_discount": {
            "type": "number",
            "readOnly": true,
            "description": "Toplam indirim"
          },
          "total_invoice_discount": {
            "type": "number",
            "readOnly": true
          },
          "description": {
            "type": "string",
            "readOnly": false,
            "description": "Fatura açıklaması"
          },
          "issue_date": {
            "type": "string",
            "format": "date",
            "readOnly": false,
            "description": "Düzenleme tarihi"
          },
          "due_date": {
            "type": "string",
            "format": "date",
            "readOnly": false,
            "description": "Son tahsilat tarihi"
          },
          "currency": {
            "type": "string",
            "enum": [
              "TRL",
              "USD",
              "EUR",
              "GBP"
            ],
            "readOnly": false,
            "description": "Döviz tipi"
          },
          "exchange_rate": {
            "type": "number",
            "readOnly": false,
            "description": "Döviz kuru"
          },
          "withholding_rate": {
            "type": "number",
            "readOnly": false,
            "description": "Stopaj oranı"
          },
          "invoice_discount_type": {
            "type": "string",
            "enum": [
              "percentage",
              "amount"
            ],
            "readOnly": false
          },
          "invoice_discount": {
            "type": "number",
            "readOnly": false
          },
          "billing_address": {
            "type": "string",
            "readOnly": false,
            "description": "Gönderim adresi"
          },
          "billing_phone": {
            "type": "string",
            "readOnly": false,
            "description": "Gönderim adresi telefonu"
          },
          "billing_fax": {
            "type": "string",
            "readOnly": false,
            "description": "Gönderim adresi faksı"
          },
          "tax_office": {
            "type": "string",
            "readOnly": false,
            "description": "Müşteri vergi dairesi"
          },
          "tax_number": {
            "type": "string",
            "readOnly": false,
            "description": "Müşteri vergi numarası"
          },
          "city": {
            "type": "string",
            "readOnly": false
          },
          "district": {
            "type": "string",
            "readOnly": false
          },
          "is_abroad": {
            "type": "boolean",
            "readOnly": false,
            "description": "Alıcı yurt dışı bilgisi"
          },
          "order_no": {
            "type": "string",
            "readOnly": false,
            "description": "Sipariş no"
          }
        },
        "required": [
          "item_type",
          "issue_date"
        ]
      },
      "SalesOffersPdfAttributes": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "status": {
            "type": "string",
            "readOnly": true
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true
          },
          "result": {
            "type": "string",
            "readOnly": true
          },
          "statistics": {
            "type": "string",
            "readOnly": true
          }
        }
      },
      "ShipmentDocumentAttributes": {
        "type": "object",
        "properties": {
          "archived": {
            "type": "boolean",
            "readOnly": true,
            "description": "Arşivlenme durumu"
          },
          "invoice_no": {
            "type": "string",
            "readOnly": true,
            "description": "Yazdırmaya özel fatura numarası"
          },
          "print_note": {
            "type": "string",
            "readOnly": true,
            "description": "Yazdırmaya özel not"
          },
          "printed_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "description": "Yazdırılma tarihi"
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "description": "Kayıt tarihi"
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "description": "Son güncelleme tarihi"
          },
          "inflow": {
            "type": "boolean",
            "readOnly": false,
            "description": "İrsaliye tipi"
          },
          "description": {
            "type": "string",
            "readOnly": false,
            "description": "İrsaliye açıklaması"
          },
          "city": {
            "type": "string",
            "readOnly": false,
            "description": "İl"
          },
          "district": {
            "type": "string",
            "readOnly": false,
            "description": "İlçe"
          },
          "address": {
            "type": "string",
            "readOnly": false,
            "description": "Adres"
          },
          "issue_date": {
            "type": "string",
            "format": "date",
            "readOnly": false,
            "description": "Düzenleme tarihi"
          },
          "shipment_date": {
            "type": "string",
            "format": "date-time",
            "readOnly": false,
            "description": "Fiili sevk tarihi"
          },
          "procurement_number": {
            "type": "string",
            "readOnly": false,
            "description": "İrsaliye Numarası"
          },
          "uuid": {
            "type": "string",
            "readOnly": true,
            "description": "e-İrsaliye UUID'si"
          },
          "despatch_no": {
            "type": "string",
            "readOnly": true,
            "description": "e-İrsaliye numarası"
          },
          "status": {
            "type": "string",
            "enum": [
              "waiting",
              "failed",
              "legalized"
            ],
            "readOnly": true,
            "description": "e-İrsaliye durumu. İrsaliye resmileştirilmemişse boştur."
          },
          "status_message": {
            "type": "string",
            "readOnly": true,
            "description": "e-İrsaliye durumuyla ilgili açıklama. Gönderim hata aldığında hatanın nedenini içerir; boş olabilir."
          },
          "status_changed_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "description": "e-İrsaliye durumunun son değiştiği tarih"
          },
          "legalized_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "description": "Resmileştirme tarihi"
          }
        },
        "required": [
          "issue_date"
        ]
      },
      "ShipmentDocument": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "shipment_documents"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/ShipmentDocumentAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "contact": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "contacts"
                        ]
                      }
                    }
                  }
                }
              },
              "tags": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "tags"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "stock_movements": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "stock_movements"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "invoices": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "sales_invoices",
                            "purchase_bills"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "inbound_e_despatch": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "inbound_e_despatches"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "StockMovementAttributes": {
        "type": "object",
        "properties": {
          "detail_no": {
            "type": "number",
            "readOnly": true,
            "description": "Detay sıra no"
          },
          "date": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "description": "Hareket tarihi"
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "description": "Kayıt tarihi"
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "description": "Son güncelleme tarihi"
          },
          "quantity": {
            "type": "number",
            "readOnly": false,
            "description": "Miktar"
          }
        },
        "required": [
          "quantity"
        ]
      },
      "StockMovement": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "stock_movements"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/StockMovementAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "warehouse": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "warehouses"
                        ]
                      }
                    }
                  }
                }
              },
              "product": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "products"
                        ]
                      }
                    }
                  }
                }
              },
              "source": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "shipment_documents",
                          "sales_invoice_details",
                          "purchase_bill_details"
                        ]
                      }
                    }
                  }
                }
              },
              "contact": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "contacts"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "StockUpdateAttributes": {
        "type": "object",
        "properties": {
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "description": "Stok güncelleme tarihi"
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "description": "Son güncelleme tarihi"
          }
        }
      },
      "StockUpdate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "stock_updates"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/StockUpdateAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "details": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "stock_update_details"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "StockUpdateDetailAttributes": {
        "type": "object",
        "properties": {
          "old_total_inventory": {
            "type": "number",
            "readOnly": true,
            "description": "Eski stok miktarı"
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "description": "Kayıt tarihi"
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true,
            "description": "Son güncelleme tarihi"
          },
          "new_total_inventory": {
            "type": "number",
            "readOnly": false,
            "description": "Yeni stok miktarı"
          }
        },
        "required": [
          "new_total_inventory"
        ]
      },
      "StockUpdateDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "stock_update_details"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/StockUpdateDetailAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "warehouse": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "warehouses"
                        ]
                      }
                    }
                  }
                }
              },
              "product": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "products"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "TagAttributes": {
        "type": "object",
        "properties": {
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "readOnly": false,
            "description": "Etiket adı"
          }
        },
        "required": [
          "name"
        ]
      },
      "Tag": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "tags"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/TagAttributes"
          },
          "relationships": {}
        },
        "required": [
          "attributes"
        ]
      },
      "TaxAttributes": {
        "type": "object",
        "properties": {
          "total_paid": {
            "type": "number",
            "readOnly": true
          },
          "archived": {
            "type": "boolean",
            "readOnly": true
          },
          "remaining": {
            "type": "number",
            "readOnly": true
          },
          "remaining_in_trl": {
            "type": "number",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "description": {
            "type": "string",
            "readOnly": false
          },
          "issue_date": {
            "type": "string",
            "format": "date",
            "readOnly": false
          },
          "due_date": {
            "type": "string",
            "format": "date",
            "readOnly": false
          },
          "net_total": {
            "type": "number",
            "readOnly": false
          }
        },
        "required": [
          "description",
          "issue_date",
          "due_date",
          "net_total"
        ]
      },
      "Tax": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "taxes"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/TaxAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "category": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "item_categories"
                        ]
                      }
                    }
                  }
                }
              },
              "tags": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "tags"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "TrackableJobAttributes": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "running",
              "done",
              "error"
            ],
            "readOnly": true
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "readOnly": true
          }
        }
      },
      "TrackableJob": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "trackable_jobs"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/TrackableJobAttributes"
          },
          "relationships": {}
        },
        "required": [
          "attributes"
        ]
      },
      "TransactionAttributes": {
        "type": "object",
        "properties": {
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "description": {
            "type": "string",
            "readOnly": false,
            "description": "Açıklama"
          },
          "transaction_type": {
            "type": "string",
            "readOnly": false,
            "description": "İşlem türü"
          },
          "date": {
            "type": "string",
            "format": "date",
            "readOnly": false,
            "description": "Tarih"
          },
          "amount_in_trl": {
            "type": "number",
            "readOnly": false,
            "description": "TRL karşılığı meblağ"
          },
          "debit_amount": {
            "type": "number",
            "readOnly": false,
            "description": "Borç meblağ"
          },
          "debit_currency": {
            "type": "string",
            "enum": [
              "TRL",
              "USD",
              "EUR",
              "GBP"
            ],
            "readOnly": false,
            "description": "Borç döviz cinsi"
          },
          "credit_amount": {
            "type": "number",
            "readOnly": false,
            "description": "Alacak meblağ"
          },
          "credit_currency": {
            "type": "string",
            "enum": [
              "TRL",
              "USD",
              "EUR",
              "GBP"
            ],
            "readOnly": false,
            "description": "Alacak döviz cinsi"
          }
        }
      },
      "Transaction": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "transactions"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/TransactionAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "debit_account": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "accounts"
                        ]
                      }
                    }
                  }
                }
              },
              "credit_account": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "accounts"
                        ]
                      }
                    }
                  }
                }
              },
              "payments": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "payments"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "TransactionHistoryItemAttributes": {
        "type": "object",
        "properties": {
          "trl_balance": {
            "type": "string",
            "description": "Bu işlemden sonraki TL bakiyesi (güncel bakiyeden geriye doğru hesaplanır)",
            "nullable": true,
            "readOnly": true
          },
          "usd_balance": {
            "type": "string",
            "description": "Bu işlemden sonraki USD bakiyesi",
            "nullable": true,
            "readOnly": true
          },
          "eur_balance": {
            "type": "string",
            "description": "Bu işlemden sonraki EUR bakiyesi",
            "nullable": true,
            "readOnly": true
          },
          "gbp_balance": {
            "type": "string",
            "description": "Bu işlemden sonraki GBP bakiyesi",
            "nullable": true,
            "readOnly": true
          }
        }
      },
      "TransactionHistoryItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255,
            "description": "İşlemin ID'si"
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "transaction_history_items"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/TransactionHistoryItemAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "transaction": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "transactions"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "TransactionType": {
        "type": "string",
        "description": "İşlem türü",
        "enum": [
          "sales_invoice",
          "sales_estimate",
          "sales_refund",
          "sales_export",
          "purchase_bill",
          "purchase_bill_payment",
          "purchase_refund",
          "contact_debit",
          "contact_credit",
          "check_in",
          "check_out",
          "check_cash_in",
          "check_cash_out",
          "employee_debit",
          "oop_payment",
          "account_debit",
          "account_credit",
          "money_transfer",
          "initial_account_balance",
          "balance_adjustment",
          "contact_opening_balance_debit",
          "contact_opening_balance_credit",
          "contact_opening_balance_advance_debit",
          "contact_opening_balance_advance_credit",
          "tax_payment",
          "bank_fee_payment",
          "new_salary",
          "contact_transfer_advance_debit",
          "contact_transfer_advance_credit",
          "contact_transfer_debit",
          "contact_transfer_credit"
        ]
      },
      "UserRoleAttributes": {
        "type": "object",
        "properties": {
          "sales_invoices": {
            "type": "string",
            "enum": [
              "rw",
              "ro",
              "na"
            ],
            "readOnly": true
          },
          "expenditures": {
            "type": "string",
            "enum": [
              "rw",
              "ro",
              "na"
            ],
            "readOnly": true
          },
          "own_expenditures": {
            "type": "string",
            "enum": [
              "rw",
              "ro",
              "na"
            ],
            "readOnly": true
          },
          "employees": {
            "type": "string",
            "enum": [
              "rw",
              "ro",
              "na"
            ],
            "readOnly": true
          },
          "accounts": {
            "type": "string",
            "enum": [
              "rw",
              "ro",
              "na"
            ],
            "readOnly": true
          },
          "settings": {
            "type": "string",
            "enum": [
              "rw",
              "ro",
              "na"
            ],
            "readOnly": true
          }
        }
      },
      "UserRole": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "user_roles"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/UserRoleAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "company": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "companies"
                        ]
                      }
                    }
                  }
                }
              },
              "user": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "users"
                        ]
                      }
                    }
                  }
                }
              },
              "managed_employee": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "employees"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "WarehouseAttributes": {
        "type": "object",
        "properties": {
          "created_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "readOnly": false,
            "description": "Depo İsmi"
          },
          "address": {
            "type": "string",
            "readOnly": false,
            "description": "Adres"
          },
          "city": {
            "type": "string",
            "readOnly": false,
            "description": "İl"
          },
          "district": {
            "type": "string",
            "readOnly": false,
            "description": "İlçe"
          },
          "is_abroad": {
            "type": "boolean",
            "readOnly": false,
            "description": "Yurt dışında"
          },
          "archived": {
            "type": "boolean",
            "readOnly": false,
            "description": "Arşivlenme durumu"
          }
        },
        "required": [
          "name"
        ]
      },
      "Warehouse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "warehouses"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/WarehouseAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "inventory_levels": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "inventory_levels"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "WarehouseTransferAttributes": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "nullable": true
          },
          "sender_name": {
            "type": "string",
            "nullable": true
          },
          "receiver_name": {
            "type": "string",
            "nullable": true
          },
          "issue_date": {
            "type": "string",
            "format": "date-time"
          },
          "shipment_date": {
            "type": "string",
            "format": "date-time",
            "description": "Fiili sevk tarihi"
          },
          "print_note": {
            "type": "string",
            "nullable": true
          },
          "printed_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "WarehouseTransfer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "warehouse_transfers"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/WarehouseTransferAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "outflow_warehouse": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "warehouses"
                        ]
                      }
                    }
                  }
                }
              },
              "inflow_warehouse": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "warehouses"
                        ]
                      }
                    }
                  }
                }
              },
              "details": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "warehouse_transfer_details"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "tags": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "tags"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "shipment_document": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "shipment_documents"
                        ]
                      }
                    }
                  }
                }
              },
              "activities": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "maxLength": 255,
                          "description": "Type of the resource",
                          "enum": [
                            "activities"
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "WarehouseTransferDetailAttributes": {
        "type": "object",
        "properties": {
          "quantity": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "WarehouseTransferDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "warehouse_transfer_details"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/WarehouseTransferDetailAttributes"
          },
          "relationships": {
            "type": "object",
            "properties": {
              "product": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "products"
                        ]
                      }
                    }
                  }
                }
              },
              "warehouse_transfer": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "maxLength": 255
                      },
                      "type": {
                        "type": "string",
                        "maxLength": 255,
                        "description": "Type of the resource",
                        "enum": [
                          "warehouse_transfers"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "required": [
          "attributes"
        ]
      },
      "WebhookModel": {
        "type": "string",
        "description": "Event'leri dinlenecek kaynak; desteklenen `action` değerleri için Webhooks bölümündeki tabloya bakın",
        "enum": [
          "shipment_document",
          "stock_movement",
          "product",
          "contact",
          "sales_invoice",
          "stock_update",
          "company",
          "purchase_bill",
          "inbound_e_invoice"
        ]
      },
      "WebhookAction": {
        "type": "string",
        "description": "Dinlenecek işlem",
        "enum": [
          "create",
          "update",
          "delete"
        ]
      },
      "WebhookUri": {
        "type": "string",
        "format": "uri",
        "maxLength": 2048,
        "pattern": "^https://",
        "description": "Event'lerin gönderileceği adres; HTTPS olmalıdır. Özel ağ, yerel ya da bağlantı-yerel (link-local) adresler reddedilebilir",
        "example": "https://website.com/webhooks"
      },
      "WebhookClientKey": {
        "type": "string",
        "writeOnly": true,
        "minLength": 64,
        "maxLength": 64,
        "pattern": "^[A-Za-z0-9]{64}$",
        "description": "Webhook isteklerinde `X-Client-Key` header'ı olarak gönderilen gizli değer; `A-Z`, `a-z` ve `0-9` karakterlerinden oluşan tam 64 karakter (ör. `openssl rand -hex 32` ile üretilebilir). Yanıtlarda dönmez; silinemez, yalnızca değiştirilebilir.",
        "example": "3f9a1c27b84e4d6a9e0f5b2c7d18a4e6f0b3c9d2e5a7184b6c0d2f4e8a1b3c5d"
      },
      "WebhookAttributes": {
        "type": "object",
        "description": "Webhook'un özellikleri. `client_key` güvenlik nedeniyle yanıtlarda yer almaz.",
        "properties": {
          "model": {
            "$ref": "#/components/schemas/WebhookModel"
          },
          "action": {
            "$ref": "#/components/schemas/WebhookAction"
          },
          "uri": {
            "type": "string",
            "format": "uri",
            "description": "Event'lerin gönderileceği adres",
            "example": "https://website.com/webhooks"
          },
          "company_id": {
            "type": "integer",
            "description": "Firma ID; istekteki firmadan alınır",
            "readOnly": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "Webhook": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "maxLength": 255,
            "description": "Type of the resource",
            "enum": [
              "webhook"
            ]
          },
          "attributes": {
            "$ref": "#/components/schemas/WebhookAttributes"
          }
        },
        "required": [
          "id",
          "type",
          "attributes"
        ]
      },
      "WebhookEvent": {
        "type": "object",
        "description": "Her webhook isteğinin zarfı; `data` modele göre değişir",
        "required": [
          "event_id",
          "company_id",
          "resource",
          "action",
          "event_date",
          "data"
        ],
        "properties": {
          "event_id": {
            "type": "string",
            "description": "Event'in bu webhook için kimliği; aynı event'in tekrar gönderimlerinde değişmez. Tekrar gelen istekleri ayıklamak için kullanın; biçimine güvenmeyin, yalnızca eşitlik için karşılaştırın",
            "example": "9f2c4e7a1b3d5f60718293a4b5c6d7e8"
          },
          "company_id": {
            "type": "integer",
            "description": "Firma ID",
            "example": 123
          },
          "resource": {
            "$ref": "#/components/schemas/WebhookModel"
          },
          "action": {
            "$ref": "#/components/schemas/WebhookAction"
          },
          "event_date": {
            "type": "string",
            "format": "date-time",
            "description": "Paraşüt'ün event'i işlediği zaman (UTC). Kaydın değiştiği an değildir; sıralama için `data.updated_at` kullanın",
            "example": "2025-01-10T10:55:00Z"
          },
          "data": {
            "type": "object",
            "description": "Kaydın verisi"
          }
        }
      },
      "WebhookRecordData": {
        "type": "object",
        "description": "Kaydın API v4'teki JSON:API gösterimi (`data`, varsa `included`) ve en üst seviyede kaydın kimlik ve zaman alanları. `delete` event'inde kaydın silinmeden hemen önceki hâlidir.",
        "required": [
          "id",
          "company_id",
          "created_at",
          "updated_at",
          "data"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "description": "Kayıt ID; `data.id` ile aynı kaydı gösterir",
            "example": 456
          },
          "company_id": {
            "type": "integer",
            "description": "Firma ID",
            "example": 123
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Kaydın son değiştiği zaman; event'leri sıralamak için bunu kullanın"
          },
          "data": {
            "type": "object",
            "description": "Kaydın JSON:API kaynak nesnesi (`id`, `type`, `attributes`, `relationships`)"
          },
          "included": {
            "type": "array",
            "description": "Kayıtla birlikte gönderilen ilişkili kaynaklar; modele göre değişir",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "WebhookShipmentDocumentData": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookRecordData"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/ShipmentDocument"
              },
              "included": {
                "type": "array",
                "description": "İrsaliyenin stok hareketleri (`stock_movements`)",
                "items": {
                  "$ref": "#/components/schemas/StockMovement"
                }
              }
            }
          }
        ]
      },
      "WebhookStockMovementData": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookRecordData"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/StockMovement"
              },
              "included": {
                "type": "array",
                "description": "Hareketin ürünü (`product`)",
                "items": {
                  "$ref": "#/components/schemas/Product"
                }
              }
            }
          }
        ]
      },
      "WebhookProductData": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookRecordData"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/Product"
              }
            }
          }
        ]
      },
      "WebhookContactData": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookRecordData"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/Contact"
              },
              "included": {
                "type": "array",
                "description": "Yetkili kişiler (`contact_people`); `delete` event'inde yer almaz",
                "items": {
                  "$ref": "#/components/schemas/ContactPerson"
                }
              }
            }
          }
        ]
      },
      "WebhookSalesInvoiceData": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookRecordData"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/SalesInvoice"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "attributes": {
                        "type": "object",
                        "properties": {
                          "pdf_url": {
                            "type": "string",
                            "format": "uri",
                            "description": "Faturanın PDF bağlantısı; yalnızca PDF oluştuğunda gönderilen `update` event'inde bulunur ve **2 saat** geçerlidir"
                          }
                        }
                      }
                    }
                  }
                ]
              },
              "included": {
                "type": "array",
                "description": "Kalemler (`details`), kalemlerin ürünleri (`details.product`), müşteri (`contact`), e-Fatura ya da e-Arşiv belgesi (`active_e_document`) ve başarısız e-Fatura (`failed_e_invoice`)",
                "items": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SalesInvoiceDetail"
                    },
                    {
                      "$ref": "#/components/schemas/Product"
                    },
                    {
                      "$ref": "#/components/schemas/Contact"
                    },
                    {
                      "$ref": "#/components/schemas/EInvoice"
                    },
                    {
                      "$ref": "#/components/schemas/EArchive"
                    }
                  ]
                }
              }
            }
          }
        ]
      },
      "WebhookStockUpdateData": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookRecordData"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/StockUpdate"
              },
              "included": {
                "type": "array",
                "description": "Kalemler (`details`), kalemlerin ürünleri (`details.product`) ve depoları (`details.warehouse`)",
                "items": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/StockUpdateDetail"
                    },
                    {
                      "$ref": "#/components/schemas/Product"
                    },
                    {
                      "$ref": "#/components/schemas/Warehouse"
                    }
                  ]
                }
              }
            }
          }
        ]
      },
      "WebhookPurchaseBillData": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookRecordData"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/PurchaseBill"
              },
              "included": {
                "type": "array",
                "description": "Kalemler (`details`), kalemlerin ürünleri (`details.product`) ve tedarikçi (`supplier`)",
                "items": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/PurchaseBillDetail"
                    },
                    {
                      "$ref": "#/components/schemas/Product"
                    },
                    {
                      "$ref": "#/components/schemas/Contact"
                    }
                  ]
                }
              }
            }
          }
        ]
      },
      "WebhookInboundEInvoiceData": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookRecordData"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "$ref": "#/components/schemas/EInvoice"
              }
            }
          }
        ]
      },
      "WebhookCompanyData": {
        "type": "object",
        "description": "Firmanın alanları, düz olarak (JSON:API değil)",
        "required": [
          "id",
          "name",
          "legal_name",
          "tax_number",
          "tax_office",
          "mersis_no",
          "city",
          "district",
          "occupation_field",
          "category",
          "owner_email",
          "contact_person",
          "contact_phone_number",
          "e_invoice_vkn",
          "e_invoicing_enabled",
          "e_invoice_inbox",
          "e_invoice_outbox",
          "e_invoice_trade_registry",
          "trial_status",
          "trial_end_date",
          "new_subscription_status",
          "subscription_renewal_date",
          "accessible_until",
          "tmp_access_end_date",
          "subscription_tmp_access_end_date",
          "credit_balance",
          "credit_service_balance",
          "logo_url",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "description": "Firma ID"
          },
          "name": {
            "type": "string",
            "description": "Firma adı"
          },
          "legal_name": {
            "type": "string",
            "nullable": true,
            "description": "Ticari unvan"
          },
          "tax_number": {
            "type": "string",
            "nullable": true,
            "description": "Vergi numarası"
          },
          "tax_office": {
            "type": "string",
            "nullable": true,
            "description": "Vergi dairesi"
          },
          "mersis_no": {
            "type": "string",
            "nullable": true,
            "description": "MERSİS numarası"
          },
          "city": {
            "type": "string",
            "nullable": true,
            "description": "İl"
          },
          "district": {
            "type": "string",
            "nullable": true,
            "description": "İlçe"
          },
          "occupation_field": {
            "type": "string",
            "nullable": true,
            "description": "Faaliyet alanı"
          },
          "category": {
            "type": "string",
            "nullable": true,
            "description": "Firma kategorisi"
          },
          "owner_email": {
            "type": "string",
            "format": "email",
            "nullable": true,
            "description": "Firma sahibinin e-posta adresi"
          },
          "contact_person": {
            "type": "string",
            "nullable": true,
            "description": "İrtibat kişisi"
          },
          "contact_phone_number": {
            "type": "string",
            "nullable": true,
            "description": "İrtibat telefonu"
          },
          "e_invoice_vkn": {
            "type": "string",
            "nullable": true,
            "description": "e-Fatura VKN/TCKN"
          },
          "e_invoicing_enabled": {
            "type": "boolean",
            "nullable": true,
            "description": "e-Fatura kullanıcısı mı"
          },
          "e_invoice_inbox": {
            "type": "string",
            "nullable": true,
            "description": "e-Fatura posta kutusu etiketi"
          },
          "e_invoice_outbox": {
            "type": "string",
            "nullable": true,
            "description": "e-Fatura gönderici birim etiketi"
          },
          "e_invoice_trade_registry": {
            "type": "string",
            "nullable": true,
            "description": "Ticaret sicil numarası"
          },
          "trial_status": {
            "type": "string",
            "nullable": true,
            "description": "Deneme süresi durumu"
          },
          "trial_end_date": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "Deneme süresinin bitiş tarihi"
          },
          "new_subscription_status": {
            "type": "string",
            "nullable": true,
            "description": "Abonelik durumu"
          },
          "subscription_renewal_date": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "Abonelik yenileme tarihi"
          },
          "accessible_until": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "Firmaya erişimin sürdüğü son tarih"
          },
          "tmp_access_end_date": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "Geçici erişimin bitiş tarihi"
          },
          "subscription_tmp_access_end_date": {
            "type": "string",
            "format": "date",
            "nullable": true,
            "description": "Abonelik geçici erişiminin bitiş tarihi"
          },
          "credit_balance": {
            "type": "integer",
            "nullable": true,
            "description": "Kontör bakiyesi"
          },
          "credit_service_balance": {
            "type": "integer",
            "description": "Hizmet kontör bakiyesi"
          },
          "logo_url": {
            "type": "string",
            "nullable": true,
            "description": "Firma logosunun adresi"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Firmanın son değiştiği zaman; event'leri sıralamak için bunu kullanın"
          }
        }
      },
      "WebhookShipmentDocumentEvent": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookEvent"
          },
          {
            "type": "object",
            "properties": {
              "resource": {
                "type": "string",
                "enum": [
                  "shipment_document"
                ]
              },
              "action": {
                "type": "string",
                "enum": [
                  "create",
                  "update",
                  "delete"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/WebhookShipmentDocumentData"
              }
            }
          }
        ]
      },
      "WebhookStockMovementEvent": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookEvent"
          },
          {
            "type": "object",
            "properties": {
              "resource": {
                "type": "string",
                "enum": [
                  "stock_movement"
                ]
              },
              "action": {
                "type": "string",
                "enum": [
                  "create",
                  "update",
                  "delete"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/WebhookStockMovementData"
              }
            }
          }
        ]
      },
      "WebhookProductEvent": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookEvent"
          },
          {
            "type": "object",
            "properties": {
              "resource": {
                "type": "string",
                "enum": [
                  "product"
                ]
              },
              "action": {
                "type": "string",
                "enum": [
                  "create",
                  "update",
                  "delete"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/WebhookProductData"
              }
            }
          }
        ]
      },
      "WebhookContactEvent": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookEvent"
          },
          {
            "type": "object",
            "properties": {
              "resource": {
                "type": "string",
                "enum": [
                  "contact"
                ]
              },
              "action": {
                "type": "string",
                "enum": [
                  "create",
                  "update",
                  "delete"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/WebhookContactData"
              }
            }
          }
        ]
      },
      "WebhookSalesInvoiceEvent": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookEvent"
          },
          {
            "type": "object",
            "properties": {
              "resource": {
                "type": "string",
                "enum": [
                  "sales_invoice"
                ]
              },
              "action": {
                "type": "string",
                "enum": [
                  "create",
                  "update"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/WebhookSalesInvoiceData"
              }
            }
          }
        ]
      },
      "WebhookStockUpdateEvent": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookEvent"
          },
          {
            "type": "object",
            "properties": {
              "resource": {
                "type": "string",
                "enum": [
                  "stock_update"
                ]
              },
              "action": {
                "type": "string",
                "enum": [
                  "create"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/WebhookStockUpdateData"
              }
            }
          }
        ]
      },
      "WebhookCompanyEvent": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookEvent"
          },
          {
            "type": "object",
            "properties": {
              "resource": {
                "type": "string",
                "enum": [
                  "company"
                ]
              },
              "action": {
                "type": "string",
                "enum": [
                  "update"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/WebhookCompanyData"
              }
            }
          }
        ]
      },
      "WebhookPurchaseBillEvent": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookEvent"
          },
          {
            "type": "object",
            "properties": {
              "resource": {
                "type": "string",
                "enum": [
                  "purchase_bill"
                ]
              },
              "action": {
                "type": "string",
                "enum": [
                  "create",
                  "update"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/WebhookPurchaseBillData"
              }
            }
          }
        ]
      },
      "WebhookInboundEInvoiceEvent": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookEvent"
          },
          {
            "type": "object",
            "properties": {
              "resource": {
                "type": "string",
                "enum": [
                  "inbound_e_invoice"
                ]
              },
              "action": {
                "type": "string",
                "enum": [
                  "create"
                ]
              },
              "data": {
                "$ref": "#/components/schemas/WebhookInboundEInvoiceData"
              }
            }
          }
        ]
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "Satışlar",
      "tags": [
        "SalesOffers",
        "SalesInvoices",
        "Contacts"
      ]
    },
    {
      "name": "Giderler",
      "tags": [
        "PurchaseBills",
        "BankFees",
        "Salaries",
        "Taxes",
        "Contacts",
        "Employees"
      ]
    },
    {
      "name": "Resmileştirme",
      "tags": [
        "EInvoiceInboxes",
        "EArchives",
        "EInvoices",
        "ESmms",
        "EDespatchInboxes",
        "EDespatches",
        "InboundEDespatches"
      ]
    },
    {
      "name": "Nakit",
      "tags": [
        "Accounts",
        "Transactions",
        "Checks",
        "OpeningBalances"
      ]
    },
    {
      "name": "Stok",
      "tags": [
        "Products",
        "Warehouses",
        "ShipmentDocuments",
        "StockMovements",
        "InventoryLevels",
        "StockUpdates",
        "PriceLists",
        "WarehouseTransfers"
      ]
    },
    {
      "name": "Ayarlar",
      "tags": [
        "ItemCategories",
        "Tags"
      ]
    },
    {
      "name": "Diğer",
      "tags": [
        "ApiHome",
        "TrackableJobs",
        "Comments",
        "ExchangeRates",
        "Webhooks",
        "WebhookEvents"
      ]
    }
  ]
}