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

# Banka hesabı detayını getirir



## OpenAPI

````yaml /api-reference/openapi.json get /v1/bank-accounts/{id}
openapi: 3.0.3
info:
  title: BankaPro API
  version: 1.0.0
  description: >-
    BankaPro'nun sunucudan sunucuya kullanılan, tek firmalı REST API'sidir.
    Kimlik doğrulama HTTP Basic ile yapılır: kullanıcı adı anahtar kimliği,
    parola secret key değeridir. Firma anahtarın kendisinden belirlenir;
    companies, companiesId, companyIds veya scope adlı sorgu parametresi ya da
    başlık kabul edilmez. Tarayıcı kaynaklı (Origin başlığı taşıyan) istekler
    reddedilir. Anahtarın IP kısıtı doluysa istek yalnız listedeki adreslerden
    kabul edilir. Uçlar baAccounts, baTransactions, baOperations veya baSync
    yetkisiyle korunur; karşı taraf IBAN ve TCKN/VKN değerlerini açık görmek
    için baPii ayrıca atanmalıdır. Başarı yanıtı success/data/meta, hata yanıtı
    success:false/error/traceId biçimindedir. Tüm yanıtlarda x-request-id ve
    Cache-Control: no-store bulunur. Zamanlar UTC ISO-8601, parasal değerler iki
    ondalıklı metindir; farklı para birimleri tek toplamda birleştirilmez.
    Bilinmeyen bakiye null, bankanın bildirdiği gerçek sıfır 0.00 olarak döner.
    Bu sözleşme banka hesabı, banka hareketi ve manuel banka sorgusu uçlarını
    kapsar.
servers:
  - url: https://api.banka.pro
    description: BankaPro canlı API
security:
  - BasicAuth: []
tags:
  - name: Accounts
    description: >-
      Credential firmasının banka hesapları, bakiye özetleri ve doğrulanmış
      bakiye geçmişi
  - name: Transactions
    description: Credential firmasının banka hareketleri, özetleri ve izinli operasyonları
  - name: Queries
    description: >-
      Credential firmasının banka hesaplarında mevcut sorgu motoruyla manuel
      yenileme
paths:
  /v1/bank-accounts/{id}:
    parameters:
      - $ref: '#/components/parameters/RequestIdInput'
      - $ref: '#/components/parameters/AccountIdPath'
    get:
      tags:
        - Accounts
      summary: Banka hesabı detayını getirir
      operationId: getBankAccount
      responses:
        '200':
          description: Güvenli banka hesabı detayı
          headers:
            x-request-id:
              $ref: '#/components/headers/RequestId'
            Cache-Control:
              $ref: '#/components/headers/NoStore'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountDetailResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    RequestIdInput:
      name: x-request-id
      in: header
      required: false
      description: >-
        Opsiyonel izleme kimliği. Değer 1-100 karakter ve yalnız harf, rakam,
        nokta, alt çizgi, iki nokta veya tire içeriyorsa korunur; aksi halde
        sunucu yeni bir UUID üretir.
      schema:
        type: string
        minLength: 1
        maxLength: 100
        pattern: ^[A-Za-z0-9._:-]{1,100}$
      example: 9cc0d3d1-1e63-4c90-b08f-90b6332e70ca
    AccountIdPath:
      name: id
      in: path
      required: true
      description: Banka hesabı kimliği.
      schema:
        $ref: '#/components/schemas/ObjectId'
  headers:
    RequestId:
      description: >-
        İsteğin izleme kimliği. İstemcinin gönderdiği değer 1-100 karakter ve
        yalnız harf, rakam, nokta, alt çizgi, iki nokta veya tire içeriyorsa
        korunur; aksi halde sunucu tarafından UUID üretilir.
      schema:
        type: string
        maxLength: 100
        pattern: ^[A-Za-z0-9._:-]{1,100}$
        example: 9cc0d3d1-1e63-4c90-b08f-90b6332e70ca
    NoStore:
      description: Banka verisinin istemci veya ara katmanda saklanmamasını belirtir.
      schema:
        type: string
        enum:
          - no-store
    WwwAuthenticate:
      description: HTTP Basic kimlik doğrulama challenge değeri.
      schema:
        type: string
        example: Basic realm="BankaPro API", charset="UTF-8"
    RetryAfter:
      description: İsteğin kaç saniye sonra yeniden denenebileceğini belirtir.
      schema:
        type: integer
        minimum: 0
    RateLimit:
      description: >-
        Geçerli oran sınırı ve kalan kota bilgisini standart RateLimit biçiminde
        taşır.
      schema:
        type: string
  schemas:
    AccountDetailResponse:
      allOf:
        - $ref: '#/components/schemas/SuccessBase'
        - type: object
          required:
            - data
          properties:
            data:
              $ref: '#/components/schemas/BankAccountDetail'
    ObjectId:
      type: string
      pattern: ^[a-fA-F0-9]{24}$
      example: 64f000000000000000000001
    SuccessBase:
      type: object
      required:
        - success
        - meta
      properties:
        success:
          type: boolean
          enum:
            - true
        meta:
          $ref: '#/components/schemas/ResponseMeta'
    BankAccountDetail:
      allOf:
        - $ref: '#/components/schemas/BankAccount'
        - type: object
          required:
            - archived
            - limit
            - expiryDay
            - commission
            - subAccounts
          properties:
            archived:
              type: boolean
            limit:
              type: number
            expiryDay:
              type: number
            commission:
              $ref: '#/components/schemas/NullableMoney'
            subAccounts:
              type: array
              items:
                $ref: '#/components/schemas/SubAccount'
    ErrorEnvelope:
      type: object
      required:
        - success
        - error
        - traceId
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          required:
            - code
            - message
            - details
          properties:
            code:
              type: string
              example: VALIDATION_FAILED
            message:
              type: string
              example: İstek doğrulanamadı.
            details:
              type: array
              items:
                $ref: '#/components/schemas/ValidationDetail'
        traceId:
          type: string
          nullable: true
          example: 9cc0d3d1-1e63-4c90-b08f-90b6332e70ca
    ResponseMeta:
      type: object
      required:
        - requestId
        - timestamp
      properties:
        requestId:
          type: string
          example: 9cc0d3d1-1e63-4c90-b08f-90b6332e70ca
        timestamp:
          $ref: '#/components/schemas/UtcTimestamp'
        partial:
          type: boolean
          description: Yanıtın kontrollü fallback veya eksik veri içerdiğini belirtir.
        warnings:
          type: array
          items:
            $ref: '#/components/schemas/ApiWarning'
    BankAccount:
      type: object
      required:
        - id
        - company
        - name
        - bankName
        - bankCode
        - accountCode
        - iban
        - currency
        - type
        - isDefault
        - isApi
        - isDemo
        - balance
        - balanceKnown
        - lastSync
        - createdAt
      properties:
        id:
          $ref: '#/components/schemas/ObjectId'
        company:
          $ref: '#/components/schemas/CompanyCompact'
        name:
          type: string
          nullable: true
          example: Merkez TRY Hesabı
        bankName:
          type: string
          nullable: true
          example: Örnek Banka
        bankCode:
          type: string
          nullable: true
          example: '00010'
        accountCode:
          type: string
          nullable: true
          example: '1234567'
        iban:
          type: string
          nullable: true
          description: Firmanın kendi banka hesabı IBAN'ı.
          example: TR000000000000000000000000
        currency:
          $ref: '#/components/schemas/NullableCurrencyCode'
        type:
          type: string
          nullable: true
        isDefault:
          type: boolean
        isApi:
          type: boolean
        isDemo:
          type: boolean
        balance:
          $ref: '#/components/schemas/NullableMoney'
        balanceKnown:
          type: boolean
        lastSync:
          $ref: '#/components/schemas/AccountLastSync'
        createdAt:
          type: string
          format: date-time
          nullable: true
    NullableMoney:
      type: string
      pattern: ^-?[0-9]+\.[0-9]{2}$
      nullable: true
      description: >-
        İki ondalıklı parasal metin; değer bilinmiyorsa veya alan için yetki
        yoksa null.
      example: '125000.00'
    SubAccount:
      type: object
      required:
        - id
        - name
        - currency
        - balance
        - balanceKnown
        - transactionCount
      properties:
        id:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        currency:
          $ref: '#/components/schemas/NullableCurrencyCode'
        balance:
          $ref: '#/components/schemas/NullableMoney'
        balanceKnown:
          type: boolean
        transactionCount:
          type: integer
          minimum: 0
    ValidationDetail:
      type: object
      required:
        - field
        - rule
      properties:
        field:
          type: string
          example: pageSize
        rule:
          type: string
          example: min:1,max:100
    UtcTimestamp:
      type: string
      format: date-time
      description: UTC ISO-8601 zamanı.
      example: '2026-09-08T20:00:00.000Z'
    ApiWarning:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          enum:
            - TODAY_BALANCE_SNAPSHOT_FALLBACK
            - BALANCE_HISTORY_MISSING
            - BALANCE_HISTORY_PARTIAL
            - BALANCE_CURRENCY_MISMATCH
            - BALANCE_VALUE_UNKNOWN
            - BALANCE_VALUE_STALE
            - INVALID_ACCOUNT_CURRENCY
        message:
          type: string
        date:
          type: string
          format: date
          example: '2026-09-07'
        accountCount:
          type: integer
          minimum: 0
    CompanyCompact:
      type: object
      nullable: true
      required:
        - id
        - title
        - logo
      properties:
        id:
          $ref: '#/components/schemas/ObjectId'
        title:
          type: string
          nullable: true
        logo:
          type: string
          nullable: true
    NullableCurrencyCode:
      type: string
      pattern: ^[A-Z]{3}$
      nullable: true
      description: >-
        Normalize edilmiş üç harfli para veya kıymet kodu. Eksik, null veya boş
        saklanmış değer TRY döner; yalnız açık fakat geçersiz eski bir kod null
        olabilir.
      example: TRY
    AccountLastSync:
      type: object
      required:
        - checkedAt
        - lastTransactionAt
        - status
        - message
        - transactionCount
      properties:
        checkedAt:
          type: string
          format: date-time
          nullable: true
          description: Bakiyesi bilinen son hareketin, yoksa son banka hareketinin zamanı.
        lastTransactionAt:
          type: string
          format: date-time
          nullable: true
        status:
          type: boolean
          nullable: true
          description: >-
            Hareket varsa true, henüz hareket yoksa null; banka sorgusunun hata
            durumunu göstermez.
        message:
          type: string
          nullable: true
          description: >-
            Bankanın ham hata metni dönmez; yalnız güvenli durum mesajı
            kullanılır.
        transactionCount:
          type: integer
          minimum: 0
          description: Son sorguda alınan hareket sayısı; bu bilgi tutulmadığında 0 döner.
  responses:
    BadRequest:
      description: İstek doğrulama hatası
      headers:
        x-request-id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/NoStore'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            success: false
            error:
              code: VALIDATION_FAILED
              message: pageSize 1-100 araliginda olmalidir.
              details:
                - field: pageSize
                  rule: min:1,max:100
            traceId: 9cc0d3d1-1e63-4c90-b08f-90b6332e70ca
    Unauthorized:
      description: HTTP Basic credential yok, geçersiz, iptal edilmiş veya süresi geçmiş
      headers:
        x-request-id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/NoStore'
        WWW-Authenticate:
          $ref: '#/components/headers/WwwAuthenticate'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Forbidden:
      description: >-
        Credential firması banka ürününe uygun değil, zorunlu ürün/endpoint
        yetkisi bulunmuyor veya yapılandırılmış IP allowlist bağlantının
        güvenilir istemci IP'siyle eşleşmiyor
      headers:
        x-request-id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/NoStore'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            success: false
            error:
              code: FORBIDDEN
              message: Bu islem icin yetkiniz bulunmuyor.
              details: []
            traceId: 9cc0d3d1-1e63-4c90-b08f-90b6332e70ca
    NotFound:
      description: Yetkili kapsamda kaynak bulunamadı
      headers:
        x-request-id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/NoStore'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            success: false
            error:
              code: RESOURCE_NOT_FOUND
              message: Banka hareketi bulunamadi.
              details: []
            traceId: 9cc0d3d1-1e63-4c90-b08f-90b6332e70ca
    TooManyRequests:
      description: İstek limiti aşıldı
      headers:
        x-request-id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/NoStore'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        RateLimit:
          $ref: '#/components/headers/RateLimit'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            success: false
            error:
              code: RATE_LIMITED
              message: Istek limiti asildi. Daha sonra tekrar deneyin.
              details: []
            traceId: 9cc0d3d1-1e63-4c90-b08f-90b6332e70ca
    InternalError:
      description: Beklenmeyen sunucu hatası
      headers:
        x-request-id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/NoStore'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
      description: >-
        Kullanıcı adı anahtar kimliği, parola secret key değeridir. Anahtar
        aktif olmalı, erişim bitiş tarihi geçmemiş olmalı ve BankaPro erişimine
        sahip olmalıdır. Firma anahtardan sunucu tarafında belirlenir;
        istemciden firma kimliği alınmaz. Anahtarın IP kısıtı doluysa istek
        yalnız listedeki adreslerden kabul edilir. Kimlik bilgileri yalnız HTTPS
        üzerinden gönderilmelidir.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.