> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.noyax.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cari oluştur

> Cariyi ve alt kayıtlarını tek işlemde oluşturur.

Cari ve gönderilen tüm alt kayıtlar **tek transaction** içinde yazılır: herhangi bir kayıt hatalıysa hiçbir şey kaydedilmez ve tüm hatalar tek `Message` içinde döner.

<CardGroup cols={2}>
  <Card title="Alan kuralları" icon="list-check" href="/tr/v1/customers/overview">Zorunlu alanlar, risk, e-fatura ve not kuralları.</Card>
  <Card title="Alt kayıtlar" icon="layer-group" href="/tr/v1/customers/sub-records">Adres, telefon, banka, grup ve parametre kuralları.</Card>
</CardGroup>

<Tip>`CustomerCode` alanına `"Next"` gönderirseniz kod, şirketin cari numarası serisinden otomatik üretilir. Bkz. [Cari kodu üretimi](/tr/v1/customers/customer-code).</Tip>

İhtiyacınız olmayan alt kayıt listelerini boş dizi (`[]`) olarak gönderin. Başarılı yanıt **201 Created** ile döner ve `Location` header'ı yeni carinin adresini içerir.


## OpenAPI

````yaml api-reference/openapi.tr.json POST /api/v1/customers
openapi: 3.1.1
info:
  title: Noyax API
  description: Server-to-server API for integrations to access Noyax data.
  version: '1.0'
servers:
  - url: https://api.noyax.com
security:
  - Bearer: []
tags:
  - name: Sections
  - name: Warehouses
  - name: Product Critical Stock
  - name: Product groups
  - name: Product Parameter Definitions
  - name: Product Parameters
  - name: Product Prices
  - name: Products
  - name: Cities
  - name: Countries
  - name: Currencies
  - name: Districts
  - name: Shipment Definitions
  - name: Units
  - name: VAT rates
  - name: Customer Addresses
  - name: Customer Bank Accounts
  - name: Customer Definitions
  - name: Customer Group Members
  - name: Customer Links
  - name: Customer Parameters
  - name: Customer Representatives
  - name: Customers
  - name: Customer Statement
  - name: Customer Telephones
paths:
  /api/v1/customers:
    post:
      tags:
        - Customers
      summary: Cari oluştur
      description: >-
        Cariyi ve alt kayıtlarını tek transaction'da oluşturur. Alt kayıtlardan
        biri geçersizse hiçbir şey kaydedilmez. İhtiyacınız olmayan alt kayıtlar
        için boş liste gönderin.
      parameters:
        - name: X-UserID
          in: header
          description: >-
            İsteğin adına yapıldığı Noyax kullanıcısının ID'si. Oluşturulan,
            güncellenen ve silinen kayıtların denetim alanlarına yazılır.
          required: true
          schema:
            minimum: 1
            type: integer
            format: int32
        - name: X-CompanyID
          in: header
          description: >-
            Şirketin ID'si. Kullanıcı bu şirkete tanımlı olmalıdır. Bütün okuma
            ve yazma işlemleri bu şirketle sınırlıdır.
          required: true
          schema:
            minimum: 1
            type: integer
            format: int32
        - name: X-PeriodID
          in: header
          description: >-
            Muhasebe döneminin ID'si. Cari endpoint'lerinde isteğe bağlıdır;
            gönderilirse oluşturulan kayıtlara yazılır.
          schema:
            minimum: 1
            type: integer
            format: int32
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomerCreateRequestDto'
          text/json:
            schema:
              $ref: '#/components/schemas/CustomerCreateRequestDto'
          application/*+json:
            schema:
              $ref: '#/components/schemas/CustomerCreateRequestDto'
        required: true
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataResultOfCustomerDetailDto'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResult'
              example:
                Success: false
                ResultCode: '1004'
                Message: Name is required.
                Errors:
                  - Code: '1004'
                    Message: Name is required.
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResult'
              example:
                Success: false
                ResultCode: '0102'
                Message: Token has expired. Obtain a new token using the refresh token.
                Errors:
                  - Code: '0102'
                    Message: >-
                      Token has expired. Obtain a new token using the refresh
                      token.
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResult'
              example:
                Success: false
                ResultCode: '0110'
                Message: You do not have permission for this operation.
                Errors:
                  - Code: '0110'
                    Message: You do not have permission for this operation.
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResult'
              example:
                Success: false
                ResultCode: '0120'
                Message: Daily request limit (10000) exceeded.
                Errors:
                  - Code: '0120'
                    Message: Daily request limit (10000) exceeded.
components:
  schemas:
    CustomerCreateRequestDto:
      type: object
      properties:
        CustomerCode:
          type:
            - 'null'
            - string
          description: >-
            Zorunlu. Şirket içinde benzersizdir. Oluştururken "Next"
            gönderirseniz kod, şirketin cari numarası serisinden üretilir.
          example: '0000382026'
        Name:
          type:
            - 'null'
            - string
          description: Zorunlu. Cari adı.
          example: Örnek Ticaret A.Ş.
        TaxNumber:
          type:
            - 'null'
            - string
          description: >-
            Zorunlu. Yalnızca rakam: 10 haneli vergi kimlik numarası (VKN) ya da
            11 haneli T.C. kimlik numarası (TCKN).
          example: '1234567890'
        TaxOffice:
          type:
            - 'null'
            - string
          description: Vergi dairesi adı.
          example: Kadıköy
        InvoiceTitle:
          type:
            - 'null'
            - string
          description: Faturalarda kullanılan ünvan. Boş bırakılırsa Name alanı kullanılır.
          example: Örnek Ticaret Anonim Şirketi
        Note:
          type:
            - 'null'
            - string
          description: >-
            Serbest metin not. ShowNoteOn* alanlarından biri true ise
            zorunludur.
          example: Deliveries on weekdays only.
        DueDays:
          type: integer
          description: Gün olarak vade. 0'dan küçük olamaz.
          format: int32
          example: 30
        DiscountRate:
          type: number
          description: Varsayılan iskonto oranı (%), 0 ile 100 arasında.
          format: double
          example: 5
        Blacklisted:
          type: boolean
          description: Cariyi kara listeye alır.
          example: false
        MovementType:
          type: integer
          description: >-
            1: Satıcı, 2: Alıcı, 3: Satıcı ve alıcı. 0 gönderilirse 1 olarak
            kaydedilir.
          format: int32
          example: 2
        RiskLimit:
          type: number
          description: Risk limiti tutarı. 0'dan küçük olamaz. 0, risk limiti yok demektir.
          format: double
          example: 250000
        RiskControl:
          type: integer
          description: >-
            Risk limitinin nasıl kontrol edileceği. 1: Mevcut bakiye, 2: Satış
            tutarı. RiskLimit 0'dan büyükse 1 ya da 2 olmalıdır.
          format: int32
          example: 1
        RiskAction:
          type: integer
          description: >-
            Risk limiti aşıldığında ne olacağı. 0: Devam et, 1: Kullanıcıyı
            uyar, 2: İşlemi durdur.
          format: int32
          example: 1
        EInvoiceUser:
          type: boolean
          description: Carinin e-fatura mükellefi olup olmadığı.
          example: true
        EInvoiceScenario:
          type: integer
          description: >-
            E-fatura senaryosu. EInvoiceUser true ise 1-9, değilse 0 olmalıdır.
            1: Ticari, 2: Temel, 3: İhracat, 4: Kamu, 5: HKS, 6: Enerji, 7:
            İlaç/Tıbbi cihaz, 8: Yatırım teşvik, 9: IDIS.
          format: int32
          example: 1
        ShipmentDefinitionId:
          type:
            - 'null'
            - string
          description: >-
            GET /api/v1/definitions/shipment-definitions ile dönen bir sevkiyat
            tanımının ID'si.
          format: uuid
        SharingCodeId:
          type:
            - 'null'
            - string
          description: >-
            Cariyi kimlerin görebileceğini sınırlayan paylaşım kodu. Boş
            bırakılırsa herkes görür; doldurulursa kullanıcının paylaşım
            kodlarından biri olmalıdır.
          format: uuid
        ShowNoteOnQuote:
          type: boolean
          description: Notu tekliflerde göster.
          example: false
        ShowNoteOnOrder:
          type: boolean
          description: Notu siparişlerde göster.
          example: false
        ShowNoteOnWaybill:
          type: boolean
          description: Notu irsaliyelerde göster.
          example: true
        ShowNoteOnInvoice:
          type: boolean
          description: Notu faturalarda göster.
          example: false
        IdentitySchemes:
          type: array
          items:
            $ref: '#/components/schemas/IdentitySchemeDto'
          description: >-
            Ek kimlik numaraları (ör. MERSISNO). Her SchemeID yalnızca bir kez
            gönderilebilir.
        Addresses:
          type: array
          items:
            $ref: '#/components/schemas/CustomerAddressRequestDto'
          description: >-
            Adresler. Birden fazla gönderilirse tam olarak biri fatura adresi
            olmalıdır. Tek adres gönderilirse o adres fatura adresi olur.
        Telephones:
          type: array
          items:
            $ref: '#/components/schemas/CustomerTelephoneRequestDto'
          description: Telefon numaraları.
        Links:
          type: array
          items:
            $ref: '#/components/schemas/CustomerLinkRequestDto'
          description: E-posta adresleri, web siteleri ve sosyal medya linkleri.
        Representatives:
          type: array
          items:
            $ref: '#/components/schemas/CustomerRepresentativeRequestDto'
          description: Yetkili kişiler.
        BankAccounts:
          type: array
          items:
            $ref: '#/components/schemas/CustomerBankAccountRequestDto'
          description: Banka hesapları.
        GroupMembers:
          type: array
          items:
            $ref: '#/components/schemas/CustomerGroupMemberRequestDto'
          description: >-
            Grup üyelikleri. Zorunlu her gruptan en az bir detay
            gönderilmelidir.
        Parameters:
          type: array
          items:
            $ref: '#/components/schemas/CustomerParameterRequestDto'
          description: Özel parametre değerleri.
        QueryEInvoiceLabels:
          type: boolean
          description: >-
            true gönderilirse cari kaydedildikten sonra e-fatura etiketleri
            entegratörden sorgulanır. Sorgu başarısız olsa bile cari oluşmuş
            kalır.
          example: true
    DataResultOfCustomerDetailDto:
      required:
        - Success
        - ResultCode
        - Data
      type: object
      properties:
        Success:
          type: boolean
          description: İşlemin başarılı olup olmadığı.
          example: true
        ResultCode:
          type: string
          description: >-
            Başarıda "0000". Hatada ilk hatanın kodu; hataların tamamı Errors
            içinde listelenir.
          example: '0000'
        Message:
          type:
            - 'null'
            - string
          description: >-
            Success false olduğunda hata mesajı. Bütün hataların mesajları tek
            metinde birleştirilir.
        Data:
          $ref: '#/components/schemas/CustomerDetailDto'
    ErrorResult:
      type: object
      properties:
        Success:
          type: boolean
          description: İşlemin başarılı olup olmadığı.
          example: false
        ResultCode:
          type:
            - 'null'
            - string
          description: >-
            Başarıda "0000". Hatada ilk hatanın kodu; hataların tamamı Errors
            içinde listelenir.
        Message:
          type:
            - 'null'
            - string
          description: >-
            Success false olduğunda hata mesajı. Bütün hataların mesajları tek
            metinde birleştirilir.
        Errors:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/ResultError'
          description: >-
            Kodlarıyla birlikte bütün hatalar. Yalnızca Success false olduğunda
            bulunur.
    IdentitySchemeDto:
      type: object
      properties:
        SchemeID:
          type:
            - 'null'
            - string
          description: UBL kimlik şeması kodu, ör. MERSISNO, TICARETSICILNO, MUSTERINO.
          example: MERSISNO
        Value:
          type:
            - 'null'
            - string
          description: Zorunlu. Kimlik numarasının değeri.
          example: '0123456789000015'
    CustomerAddressRequestDto:
      type: object
      properties:
        DistrictId:
          type:
            - 'null'
            - string
          description: >-
            Zorunlu. GET /api/v1/definitions/districts ile dönen bir ilçenin
            ID'si. İl ve ülke bu ilçeden gelir.
          format: uuid
        Address:
          type:
            - 'null'
            - string
          description: Zorunlu. Açık adres.
          example: 'Caferağa Mah. Moda Cad. No: 10'
        PostalCode:
          type:
            - 'null'
            - string
          description: Posta kodu.
          example: '34710'
        IsInvoiceAddress:
          type: boolean
          description: >-
            Fatura adresi olup olmadığı. Her carinin tam olarak bir fatura
            adresi vardır.
          example: true
        CoordinateX:
          type:
            - 'null'
            - number
          description: Konum koordinatı X.
          format: double
          example: 40.9877
        CoordinateY:
          type:
            - 'null'
            - number
          description: Konum koordinatı Y.
          format: double
          example: 29.0254
    CustomerTelephoneRequestDto:
      type: object
      properties:
        Number:
          type:
            - 'null'
            - string
          description: Zorunlu. Telefon numarası.
          example: '02165550000'
        NumberType:
          type:
            - 'null'
            - integer
          description: '1: Sabit, 2: GSM.'
          format: int32
          example: 1
        Extension:
          type:
            - 'null'
            - string
          description: Dahili numara.
          example: '101'
        Description:
          type:
            - 'null'
            - string
          description: Açıklama.
          example: Accounting
    CustomerLinkRequestDto:
      type: object
      properties:
        Value:
          type:
            - 'null'
            - string
          description: >-
            Zorunlu. E-posta adresi ya da URL. LinkType 1 ise geçerli bir
            e-posta adresi olmalıdır.
          example: accounting@example.com
        LinkType:
          type: integer
          description: >-
            0: Diğer, 1: E-posta, 2: Web sitesi, 3: LinkedIn, 4: Instagram, 5:
            X.
          format: int32
          example: 1
        Description:
          type:
            - 'null'
            - string
          description: Açıklama.
          example: Invoices
    CustomerRepresentativeRequestDto:
      type: object
      properties:
        FullName:
          type:
            - 'null'
            - string
          description: Zorunlu. Yetkili kişinin adı soyadı.
          example: Ayşe Yılmaz
        Position:
          type:
            - 'null'
            - string
          description: Görevi ya da pozisyonu.
          example: Purchasing Manager
        Gsm:
          type:
            - 'null'
            - string
          description: Cep telefonu numarası.
          example: '05325550000'
        Email:
          type:
            - 'null'
            - string
          description: E-posta adresi. Gönderilirse geçerli olmalıdır.
          example: ayse.yilmaz@example.com
        Phone:
          type:
            - 'null'
            - string
          description: Sabit telefon numarası.
          example: '02165550000'
        Extension:
          type:
            - 'null'
            - string
          description: Dahili numara.
          example: '105'
        Link:
          type:
            - 'null'
            - string
          description: Link, ör. LinkedIn profili.
          example: https://www.linkedin.com/in/example
        Description:
          type:
            - 'null'
            - string
          description: Açıklama.
    CustomerBankAccountRequestDto:
      type: object
      properties:
        BankName:
          type:
            - 'null'
            - string
          description: Zorunlu. Banka adı.
          example: Example Bank
        Branch:
          type:
            - 'null'
            - string
          description: Şube. Iban boşsa AccountNumber ile birlikte zorunludur.
          example: Kadıköy
        AccountNumber:
          type:
            - 'null'
            - string
          description: Hesap numarası. Iban boşsa Branch ile birlikte zorunludur.
          example: '12345678'
        Iban:
          type:
            - 'null'
            - string
          description: IBAN. Branch ve AccountNumber boşsa zorunludur.
          example: TR330006100519786457841326
        CurrencyId:
          type:
            - 'null'
            - string
          description: >-
            Zorunlu. GET /api/v1/definitions/currencies ile dönen bir dövizin
            ID'si.
          format: uuid
        Description:
          type:
            - 'null'
            - string
          description: Açıklama.
    CustomerGroupMemberRequestDto:
      type: object
      properties:
        GroupDetailId:
          type:
            - 'null'
            - string
          description: >-
            Zorunlu. GET /api/v1/customers/groups ile dönen bir grup detayının
            ID'si.
          format: uuid
    CustomerParameterRequestDto:
      type: object
      properties:
        ParameterDefinitionId:
          type:
            - 'null'
            - string
          description: >-
            Zorunlu. GET /api/v1/customers/parameter-definitions ile dönen bir
            parametre tanımının ID'si.
          format: uuid
        Value:
          description: >-
            Zorunlu. Biçim, tanımın tipine göre değişir. 0: Metin, 1:
            true/false, 2: Tamsayı, 3: Ondalık (ayraç olarak nokta), 4: Tarih,
            5: Saat, 6: Tarih ve saat (ISO 8601, ör. "2026-09-17T14:30:00").
          example: Priority
    CustomerDetailDto:
      type: object
      properties:
        Id:
          type: string
          description: Cari ID'si.
          format: uuid
        CustomerCode:
          type:
            - 'null'
            - string
          description: >-
            Zorunlu. Şirket içinde benzersizdir. Oluştururken "Next"
            gönderirseniz kod, şirketin cari numarası serisinden üretilir.
          example: '0000382026'
        Name:
          type:
            - 'null'
            - string
          description: Zorunlu. Cari adı.
          example: Örnek Ticaret A.Ş.
        TaxNumber:
          type:
            - 'null'
            - string
          description: >-
            Zorunlu. Yalnızca rakam: 10 haneli vergi kimlik numarası (VKN) ya da
            11 haneli T.C. kimlik numarası (TCKN).
          example: '1234567890'
        TaxOffice:
          type:
            - 'null'
            - string
          description: Vergi dairesi adı.
          example: Kadıköy
        InvoiceTitle:
          type:
            - 'null'
            - string
          description: Faturalarda kullanılan ünvan. Boş bırakılırsa Name alanı kullanılır.
          example: Örnek Ticaret Anonim Şirketi
        Note:
          type:
            - 'null'
            - string
          description: >-
            Serbest metin not. ShowNoteOn* alanlarından biri true ise
            zorunludur.
          example: Deliveries on weekdays only.
        DueDays:
          type: integer
          description: Gün olarak vade. 0'dan küçük olamaz.
          format: int32
          example: 30
        DiscountRate:
          type: number
          description: Varsayılan iskonto oranı (%), 0 ile 100 arasında.
          format: double
          example: 5
        Blacklisted:
          type: boolean
          description: Cariyi kara listeye alır.
          example: false
        MovementType:
          type: integer
          description: >-
            1: Satıcı, 2: Alıcı, 3: Satıcı ve alıcı. 0 gönderilirse 1 olarak
            kaydedilir.
          format: int32
          example: 2
        RiskLimit:
          type: number
          description: Risk limiti tutarı. 0'dan küçük olamaz. 0, risk limiti yok demektir.
          format: double
          example: 250000
        RiskControl:
          type: integer
          description: >-
            Risk limitinin nasıl kontrol edileceği. 1: Mevcut bakiye, 2: Satış
            tutarı. RiskLimit 0'dan büyükse 1 ya da 2 olmalıdır.
          format: int32
          example: 1
        RiskAction:
          type: integer
          description: >-
            Risk limiti aşıldığında ne olacağı. 0: Devam et, 1: Kullanıcıyı
            uyar, 2: İşlemi durdur.
          format: int32
          example: 1
        EInvoiceUser:
          type: boolean
          description: Carinin e-fatura mükellefi olup olmadığı.
          example: true
        EInvoiceScenario:
          type: integer
          description: >-
            E-fatura senaryosu. EInvoiceUser true ise 1-9, değilse 0 olmalıdır.
            1: Ticari, 2: Temel, 3: İhracat, 4: Kamu, 5: HKS, 6: Enerji, 7:
            İlaç/Tıbbi cihaz, 8: Yatırım teşvik, 9: IDIS.
          format: int32
          example: 1
        ShipmentDefinitionId:
          type:
            - 'null'
            - string
          description: >-
            GET /api/v1/definitions/shipment-definitions ile dönen bir sevkiyat
            tanımının ID'si.
          format: uuid
        SharingCodeId:
          type:
            - 'null'
            - string
          description: >-
            Cariyi kimlerin görebileceğini sınırlayan paylaşım kodu. Boş
            bırakılırsa herkes görür; doldurulursa kullanıcının paylaşım
            kodlarından biri olmalıdır.
          format: uuid
        ShowNoteOnQuote:
          type: boolean
          description: Notu tekliflerde göster.
          example: false
        ShowNoteOnOrder:
          type: boolean
          description: Notu siparişlerde göster.
          example: false
        ShowNoteOnWaybill:
          type: boolean
          description: Notu irsaliyelerde göster.
          example: true
        ShowNoteOnInvoice:
          type: boolean
          description: Notu faturalarda göster.
          example: false
        IdentitySchemes:
          type: array
          items:
            $ref: '#/components/schemas/IdentitySchemeDto'
          description: >-
            Ek kimlik numaraları (ör. MERSISNO). Her SchemeID yalnızca bir kez
            gönderilebilir.
        CreateDate:
          type:
            - 'null'
            - string
          description: Oluşturulma tarihi.
          format: date-time
        ModifyDate:
          type:
            - 'null'
            - string
          description: Son değişiklik tarihi.
          format: date-time
        Addresses:
          type: array
          items:
            $ref: '#/components/schemas/CustomerAddressDto'
          description: Adresler.
        Telephones:
          type: array
          items:
            $ref: '#/components/schemas/CustomerTelephoneDto'
          description: Telefon numaraları.
        Links:
          type: array
          items:
            $ref: '#/components/schemas/CustomerLinkDto'
          description: E-posta adresleri, web siteleri ve sosyal medya linkleri.
        Representatives:
          type: array
          items:
            $ref: '#/components/schemas/CustomerRepresentativeDto'
          description: Yetkili kişiler.
        BankAccounts:
          type: array
          items:
            $ref: '#/components/schemas/CustomerBankAccountDto'
          description: Banka hesapları.
        GroupMembers:
          type: array
          items:
            $ref: '#/components/schemas/CustomerGroupMemberDto'
          description: Grup üyelikleri.
        Parameters:
          type: array
          items:
            $ref: '#/components/schemas/CustomerParameterDto'
          description: Özel parametre değerleri.
        EInvoiceLabels:
          type: array
          items:
            $ref: '#/components/schemas/CustomerEInvoiceLabelDto'
          description: >-
            E-fatura etiketleri (salt okunur; e-fatura entegratöründen
            doldurulur).
      description: Response data. Null when Success is false.
    ResultError:
      required:
        - Code
        - Message
      type: object
      properties:
        Code:
          type: string
          description: Hata kodu. Tam liste için sonuç kodları sayfasına bakın.
        Message:
          type: string
          description: Hata açıklaması.
    CustomerAddressDto:
      type: object
      properties:
        Id:
          type: string
          description: Adres ID'si.
          format: uuid
        CustomerId:
          type: string
          description: Cari ID'si.
          format: uuid
        DistrictId:
          type:
            - 'null'
            - string
          description: İlçe ID'si.
          format: uuid
        DistrictName:
          type:
            - 'null'
            - string
          description: İlçe adı.
          example: Kadıköy
        CityName:
          type:
            - 'null'
            - string
          description: İl adı.
          example: İstanbul
        CountryName:
          type:
            - 'null'
            - string
          description: Ülke adı.
          example: Türkiye
        Address:
          type:
            - 'null'
            - string
          description: Açık adres.
          example: 'Caferağa Mah. Moda Cad. No: 10'
        FullAddress:
          type:
            - 'null'
            - string
          description: İlçe, il ve ülkeyi de içeren tam adres (salt okunur).
        PostalCode:
          type:
            - 'null'
            - string
          description: Posta kodu.
          example: '34710'
        IsInvoiceAddress:
          type: boolean
          description: Fatura adresi olup olmadığı.
          example: true
        CoordinateX:
          type:
            - 'null'
            - number
          description: Konum koordinatı X.
          format: double
          example: 40.9877
        CoordinateY:
          type:
            - 'null'
            - number
          description: Konum koordinatı Y.
          format: double
          example: 29.0254
    CustomerTelephoneDto:
      type: object
      properties:
        Id:
          type: string
          description: Telefon ID'si.
          format: uuid
        CustomerId:
          type: string
          description: Cari ID'si.
          format: uuid
        Number:
          type:
            - 'null'
            - string
          description: Zorunlu. Telefon numarası.
          example: '02165550000'
        NumberType:
          type:
            - 'null'
            - integer
          description: '1: Sabit, 2: GSM.'
          format: int32
          example: 1
        Extension:
          type:
            - 'null'
            - string
          description: Dahili numara.
          example: '101'
        Description:
          type:
            - 'null'
            - string
          description: Açıklama.
          example: Accounting
    CustomerLinkDto:
      type: object
      properties:
        Id:
          type: string
          description: Link ID'si.
          format: uuid
        CustomerId:
          type: string
          description: Cari ID'si.
          format: uuid
        Value:
          type:
            - 'null'
            - string
          description: >-
            Zorunlu. E-posta adresi ya da URL. LinkType 1 ise geçerli bir
            e-posta adresi olmalıdır.
          example: accounting@example.com
        LinkType:
          type: integer
          description: >-
            0: Diğer, 1: E-posta, 2: Web sitesi, 3: LinkedIn, 4: Instagram, 5:
            X.
          format: int32
          example: 1
        Description:
          type:
            - 'null'
            - string
          description: Açıklama.
          example: Invoices
    CustomerRepresentativeDto:
      type: object
      properties:
        Id:
          type: string
          description: Yetkili ID'si.
          format: uuid
        CustomerId:
          type: string
          description: Cari ID'si.
          format: uuid
        FullName:
          type:
            - 'null'
            - string
          description: Zorunlu. Yetkili kişinin adı soyadı.
          example: Ayşe Yılmaz
        Position:
          type:
            - 'null'
            - string
          description: Görevi ya da pozisyonu.
          example: Purchasing Manager
        Gsm:
          type:
            - 'null'
            - string
          description: Cep telefonu numarası.
          example: '05325550000'
        Email:
          type:
            - 'null'
            - string
          description: E-posta adresi. Gönderilirse geçerli olmalıdır.
          example: ayse.yilmaz@example.com
        Phone:
          type:
            - 'null'
            - string
          description: Sabit telefon numarası.
          example: '02165550000'
        Extension:
          type:
            - 'null'
            - string
          description: Dahili numara.
          example: '105'
        Link:
          type:
            - 'null'
            - string
          description: Link, ör. LinkedIn profili.
          example: https://www.linkedin.com/in/example
        Description:
          type:
            - 'null'
            - string
          description: Açıklama.
    CustomerBankAccountDto:
      type: object
      properties:
        Id:
          type: string
          description: Banka hesabı ID'si.
          format: uuid
        CustomerId:
          type: string
          description: Cari ID'si.
          format: uuid
        CurrencyName:
          type:
            - 'null'
            - string
          description: Döviz adı.
          example: TL
        BankName:
          type:
            - 'null'
            - string
          description: Zorunlu. Banka adı.
          example: Example Bank
        Branch:
          type:
            - 'null'
            - string
          description: Şube. Iban boşsa AccountNumber ile birlikte zorunludur.
          example: Kadıköy
        AccountNumber:
          type:
            - 'null'
            - string
          description: Hesap numarası. Iban boşsa Branch ile birlikte zorunludur.
          example: '12345678'
        Iban:
          type:
            - 'null'
            - string
          description: IBAN. Branch ve AccountNumber boşsa zorunludur.
          example: TR330006100519786457841326
        CurrencyId:
          type:
            - 'null'
            - string
          description: >-
            Zorunlu. GET /api/v1/definitions/currencies ile dönen bir dövizin
            ID'si.
          format: uuid
        Description:
          type:
            - 'null'
            - string
          description: Açıklama.
    CustomerGroupMemberDto:
      type: object
      properties:
        Id:
          type: string
          description: Grup üyeliği ID'si.
          format: uuid
        CustomerId:
          type: string
          description: Cari ID'si.
          format: uuid
        GroupDetailId:
          type:
            - 'null'
            - string
          description: Grup detayı ID'si.
          format: uuid
        GroupDetailName:
          type:
            - 'null'
            - string
          description: Grup detayı adı.
          example: Marmara
        GroupId:
          type:
            - 'null'
            - string
          description: Grup ID'si.
          format: uuid
        GroupName:
          type:
            - 'null'
            - string
          description: Grup adı.
          example: Region
    CustomerParameterDto:
      type: object
      properties:
        Id:
          type: string
          description: Parametre ID'si.
          format: uuid
        CustomerId:
          type: string
          description: Cari ID'si.
          format: uuid
        ParameterDefinitionId:
          type:
            - 'null'
            - string
          description: Parametre tanımı ID'si.
          format: uuid
        ParameterName:
          type:
            - 'null'
            - string
          description: Parametre tanımının adı.
          example: Segment
        ParameterType:
          type:
            - 'null'
            - integer
          description: >-
            0: Metin, 1: Evet/Hayır, 2: Tamsayı, 3: Ondalık, 4: Tarih, 5: Saat,
            6: Tarih ve saat.
          format: int32
          example: 0
        Value:
          description: ParameterType alanının belirttiği biçimde değer.
          example: Priority
    CustomerEInvoiceLabelDto:
      type: object
      properties:
        Id:
          type: string
          description: Etiket ID'si.
          format: uuid
        CustomerId:
          type: string
          description: Cari ID'si.
          format: uuid
        Label:
          type:
            - 'null'
            - string
          description: E-fatura etiketi, ör. "urn:mail:defaultpk@example.com".
          example: urn:mail:defaultpk@example.com
        Description:
          type:
            - 'null'
            - string
          description: Açıklama (entegratörün döndüğü ünvan).
          example: ÖRNEK TİCARET A.Ş.
        Type:
          type: integer
          description: >-
            Etiket tipi. Bu sorgudan gelen etiketlerde her zaman 0 (PK, posta
            kutusu) olur.
          format: int32
          example: 0
        IsDefault:
          type: boolean
          description: Varsayılan etiket olup olmadığı.
          example: true
  securitySchemes:
    Bearer:
      type: http
      description: Access token obtained from the Noyax auth service with your API key.
      scheme: bearer
      bearerFormat: JWT

````