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

# Müşteri tanı formu detayı

> Tek formun geniş kaydını döner. Belge içerikleri dönmez; companyDocuments yalnız dosya metası (fileName, mimeType, size) içerir.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/compliance/verifications/{id}
openapi: 3.0.3
info:
  title: Sarraf API v1
  version: 1.0.0
  description: >-
    Sarraf sürümlü dış API yüzeyi. Bu sürüm salt okunurdur; e-ticaret siteleri
    ve muhasebe programları için mevcut kayıtların okunmasını sağlar. Kimlik
    doğrulama mevcut dış API ile aynıdır: HTTP Basic,
    base64(apiUserId:secretKey). Tüm yanıtlar sabit zarf formatındadır: başarılı
    yanıtta success/data/meta, hatalı yanıtta
    success/error{code,message,details}/traceId. Her yanıtta x-request-id
    başlığı döner ve traceId ile aynıdır.
servers:
  - url: https://api.sarraf.pro
    description: Canlı ortam
security:
  - BasicAuth: []
tags:
  - name: Customers
    description: Cari hesaplar — listeleme, detay ve müşteri tanı formatında oluşturma
    x-group: Müşteriler
  - name: Bank accounts
    description: Banka hesapları, bakiyeler ve sorgu tetikleme
    x-group: Banka
  - name: Bank transactions
    description: Gelen/giden banka hareketleri — detayda gömülü MASAK özeti
    x-group: Banka
  - name: Invoices
    description: Sistem üzerinden kesilen faturalar ve kalem şablonları
    x-group: Faturalar
  - name: Expenses
    description: Gider pusulası kayıtları
    x-group: Giderler
  - name: Compliance
    description: >-
      Müşteri tanı formları, kimlik belgeleri, yaptırım sorguları, sicil,
      denetim ve IDV kayıtları
    x-group: Uyum (Compliance)
paths:
  /v1/compliance/verifications/{id}:
    get:
      tags:
        - Compliance
      summary: Müşteri tanı formu detayı
      description: >-
        Tek formun geniş kaydını döner. Belge içerikleri dönmez;
        companyDocuments yalnız dosya metası (fileName, mimeType, size) içerir.
      operationId: getComplianceVerification
      parameters:
        - name: id
          in: path
          required: true
          description: Kayıt kimliği (ObjectId).
          schema:
            type: string
            pattern: ^[a-fA-F0-9]{24}$
      responses:
        '200':
          description: Başarılı detay yanıtı.
          headers:
            x-request-id:
              description: İstek kimliği; yanıt gövdesindeki meta.requestId ile aynıdır.
              schema:
                type: string
                format: uuid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerificationDetailResponse'
        '400':
          $ref: '#/components/responses/ValidationFailed'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    VerificationDetailResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        data:
          $ref: '#/components/schemas/VerificationDetail'
        meta:
          $ref: '#/components/schemas/MetaBase'
      required:
        - success
        - data
        - meta
    VerificationDetail:
      allOf:
        - $ref: '#/components/schemas/VerificationListItem'
        - type: object
          properties:
            birthplace:
              type: string
              nullable: true
            birthday:
              type: string
              nullable: true
            phone2:
              type: string
              nullable: true
            taxOffice:
              type: string
              nullable: true
            registryNo:
              type: string
              nullable: true
            activityName:
              type: string
              nullable: true
            naceCode:
              type: string
              nullable: true
            iban:
              type: string
              nullable: true
            address:
              type: string
              nullable: true
            motherName:
              type: string
              nullable: true
            fatherName:
              type: string
              nullable: true
            isAbroad:
              type: boolean
              nullable: true
            jobName:
              type: string
              nullable: true
            isDeleted:
              type: boolean
              description: Form silinmiş mi (detayda görünür).
            customerRelation:
              $ref: '#/components/schemas/CustomerRelation'
            companyDocuments:
              $ref: '#/components/schemas/CompanyDocumentsMeta'
            requirementsSnapshot:
              $ref: '#/components/schemas/RequirementsSnapshot'
    MetaBase:
      type: object
      properties:
        requestId:
          type: string
          format: uuid
        timestamp:
          type: string
          format: date-time
      required:
        - requestId
        - timestamp
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          $ref: '#/components/schemas/ErrorBody'
        traceId:
          type: string
          format: uuid
          description: x-request-id başlığı ile aynı değer.
      required:
        - success
        - error
        - traceId
    VerificationListItem:
      type: object
      properties:
        id:
          type: string
          description: Kayıt kimliği (ObjectId).
        idNo:
          type: string
          description: TCKN / VKN / belge numarası.
        idType:
          type: string
          enum:
            - person
            - company
        idCardType:
          type: string
          enum:
            - idCard
            - passport
            - dlCard
            - other
        nameSurname:
          type: string
        phone:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        nationality:
          type: string
          example: TR
        countries:
          type: string
          nullable: true
        states:
          type: string
          nullable: true
        cities:
          type: string
          nullable: true
        masakStatus:
          type: integer
          enum:
            - 0
            - 1
            - 2
          description: 0 sorgulanmadı, 1 sorun yok, 2 sorunlu.
        isApproval:
          type: boolean
          description: Form onaylandı mı.
        isSigned:
          type: boolean
          description: Form imzalı mı.
        onlyInvoice:
          type: boolean
          nullable: true
          description: Yalnız fatura kaydı mı.
        contractVersion:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    CustomerRelation:
      type: object
      description: Kurumsal formda temsilci/ortak/gerçek faydalanıcı bilgisi.
      properties:
        types:
          type: string
          enum:
            - representative
            - shareholder
            - beneficialOwner
        nameSurname:
          type: string
          nullable: true
        nationality:
          type: string
          nullable: true
        idCardType:
          type: string
          nullable: true
        idNo:
          type: string
          nullable: true
        birthplace:
          type: string
          nullable: true
        birthday:
          type: string
          nullable: true
        phone:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        beneficialDescription:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        authorityStartDate:
          type: string
          format: date-time
          nullable: true
        authorityEndDate:
          type: string
          format: date-time
          nullable: true
        isPrimary:
          type: boolean
          nullable: true
    CompanyDocumentsMeta:
      type: object
      properties:
        taxDoc:
          $ref: '#/components/schemas/CompanyDocumentMeta'
        activeDoc:
          $ref: '#/components/schemas/CompanyDocumentMeta'
        registryDoc:
          $ref: '#/components/schemas/CompanyDocumentMeta'
        signDoc:
          $ref: '#/components/schemas/CompanyDocumentMeta'
    RequirementsSnapshot:
      type: object
      description: Formun doldurulduğu andaki zorunluluk ayarlarının anlık görüntüsü.
      properties:
        formReq:
          type: array
          items:
            type: string
        companyFormReq:
          type: array
          items:
            type: string
        companyReq:
          type: array
          items:
            type: string
        signatureImage:
          type: boolean
          nullable: true
        smsVerify:
          type: boolean
          nullable: true
        addressDoc:
          type: boolean
          nullable: true
        addressDocVerify:
          type: boolean
          nullable: true
        amountOption:
          type: boolean
          nullable: true
        customerVerify:
          type: boolean
          nullable: true
    ErrorBody:
      type: object
      properties:
        code:
          type: string
          enum:
            - VALIDATION_FAILED
            - AUTH_INVALID_CREDENTIALS
            - AUTH_FORBIDDEN
            - RESOURCE_NOT_FOUND
            - CONFLICT
            - UPSTREAM_ERROR
            - INTERNAL_ERROR
        message:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/ErrorDetail'
      required:
        - code
        - message
        - details
    CompanyDocumentMeta:
      type: object
      nullable: true
      description: Belge içeriği dönmez; yalnız dosya metası.
      properties:
        fileName:
          type: string
          nullable: true
        mimeType:
          type: string
          nullable: true
        size:
          type: number
          nullable: true
    ErrorDetail:
      type: object
      properties:
        field:
          type: string
        rule:
          type: string
  responses:
    ValidationFailed:
      description: Doğrulama hatası (geçersiz parametre).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Kimlik doğrulama başarısız.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Kayıt bulunamadı.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalError:
      description: Beklenmeyen sunucu hatası.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
      description: >-
        Kullanıcı adı apiUserId, parola secretKey. Authorization: Basic
        base64(apiUserId:secretKey)

````