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

# Başarısız hareket otomasyonunu yeniden dene



## OpenAPI

````yaml /openapi/openapi.yaml post /banks/transactions/{id}/automation/retry
openapi: 3.1.0
info:
  title: Tahsil API
  version: 1.0.0
  description: >-
    Tahsil banka bağlantıları, provider senkronizasyonu, değiştirilemez
    hareketler, zamanlamalar ve hareket otomasyonu için tenant-scoped public API
    sözleşmesi.
servers:
  - url: https://api.tahsil.dev
    description: Production
security:
  - apiKeyAuth: []
    apiSecretAuth: []
tags:
  - name: Sistem - Sağlık
    description: Servis canlılığı ve bağımlılık hazır olma kontrolleri.
  - name: Banka - Bağlantılar
    description: Banka bağlantısı, credential, setup, sync, health ve kullanım işlemleri.
  - name: Banka - Hareketler
    description: >-
      Provider senkronizasyonuyla oluşan değiştirilemez banka hareketleri ve CSV
      dışa aktarımı.
  - name: Banka - Otomasyon
    description: Hareket atamaları, kurallar, preview ve backfill çalışmaları.
  - name: Banka - Zamanlamalar
    description: Banka sorgularının zamanlama ve çalışma durumu yönetimi.
  - name: Banka - Analitik
    description: Tenant kapsamlı dashboard sorgu kataloğu ve analitik sonuçları.
  - name: Denetim - Connector Logları
    description: Maskelenmiş banka connector istek ve yanıt kayıtları.
paths:
  /banks/transactions/{id}/automation/retry:
    post:
      tags:
        - Banka - Otomasyon
      summary: Başarısız hareket otomasyonunu yeniden dene
      operationId: postBanksTransactionsByIdAutomationRetry
      parameters:
        - $ref: '#/components/parameters/Id'
        - $ref: '#/components/parameters/XCompanyIdRequired'
      responses:
        '200':
          $ref: '#/components/responses/BankTransactionResponse'
        default:
          $ref: '#/components/responses/ErrorResponse'
components:
  parameters:
    Id:
      name: id
      in: path
      required: true
      schema:
        type: string
    XCompanyIdRequired:
      name: x-company-id
      in: header
      required: true
      schema:
        type: string
      description: Yazma işleminin hedef firma kimliği.
  responses:
    BankTransactionResponse:
      description: Provider-owned banka hareketi.
      content:
        application/json:
          schema:
            type: object
            required:
              - status
              - result
            properties:
              status:
                type: boolean
                const: true
              result:
                $ref: '#/components/schemas/BankTransaction'
            additionalProperties: false
    ErrorResponse:
      description: İstek başarısız oldu.
      content:
        application/json:
          schema:
            type: object
            required:
              - status
            properties:
              status:
                type: boolean
                const: false
              code:
                type: string
                description: >-
                  Kararlı hata kodu; kodlanmış domain ve güvenlik hatalarında
                  döner.
              message:
                type: string
                description: >-
                  İnsan tarafından okunabilir hata açıklaması; mevcutsa
                  entegrasyon kararı için kullanılmamalıdır.
              meta:
                type: object
                additionalProperties: true
              result:
                type: array
                deprecated: true
                description: Legacy Joi doğrulama hatalarında dönen alan listesi.
                items:
                  type: object
                  properties:
                    type:
                      type: string
                    joiType:
                      type: string
                    path:
                      type:
                        - string
                        - number
                    label:
                      type: string
                  additionalProperties: false
              description:
                type: string
            additionalProperties: false
          example:
            status: false
            code: TRANSACTION_AMOUNT_RANGE_INVALID
            message: minAmount, maxAmount değerinden büyük olamaz.
  schemas:
    BankTransaction:
      type: object
      description: >-
        Provider senkronizasyonuyla oluşan, public API üzerinden
        değiştirilemeyen banka hareketi.
      required:
        - id
        - companies
        - status
        - version
        - providerStamp
        - idNo
        - findAI
        - incoming
        - amount
        - balance
        - bankCode
      properties:
        id:
          type: string
          description: MongoDB kaynak kimliği.
        companies:
          type: string
          description: Hareketin ait olduğu firma kimliği.
        accountId:
          type:
            - string
            - 'null'
        subAccountKey:
          type:
            - string
            - 'null'
        status:
          type: boolean
        version:
          type: string
        providerStamp:
          type: string
          readOnly: true
          description: Tenant ve banka kapsamında idempotency sağlayan provider kimliği.
        stamp:
          type:
            - string
            - 'null'
          format: date-time
          deprecated: true
        transactionDate:
          type:
            - string
            - 'null'
          format: date-time
        fetchedAt:
          type:
            - string
            - 'null'
          format: date-time
        code:
          type:
            - string
            - 'null'
        idNo:
          type: string
        findAI:
          type: boolean
        nameSurname:
          type:
            - string
            - 'null'
        iban:
          type:
            - string
            - 'null'
        incoming:
          type: boolean
        amount:
          type: number
        balance:
          type: number
        description:
          type:
            - string
            - 'null'
        currency:
          type:
            - string
            - 'null'
          example: TRY
        bankCode:
          type: string
          example: akbank
        assignmentSummary:
          $ref: '#/components/schemas/TransactionAssignmentSummary'
        automation:
          $ref: '#/components/schemas/TransactionAutomation'
        assignments:
          type: array
          items:
            $ref: '#/components/schemas/TransactionAssignment'
        createdAt:
          type:
            - string
            - 'null'
          format: date-time
        updatedAt:
          type:
            - string
            - 'null'
          format: date-time
      additionalProperties: false
    TransactionAssignmentSummary:
      type: object
      required:
        - referenceKeys
        - tags
        - count
      properties:
        referenceKeys:
          type: array
          items:
            type: string
        tags:
          type: array
          items:
            type: string
        count:
          type: integer
          minimum: 0
        updatedAt:
          type:
            - string
            - 'null'
          format: date-time
      additionalProperties: false
    TransactionAutomation:
      type: object
      required:
        - status
        - attempts
      properties:
        status:
          type: string
          enum:
            - legacy
            - pending
            - processing
            - retry
            - completed
            - dead
        attempts:
          type: integer
          minimum: 0
        nextAttemptAt:
          type:
            - string
            - 'null'
          format: date-time
        lastAttemptAt:
          type:
            - string
            - 'null'
          format: date-time
        lastEvaluatedAt:
          type:
            - string
            - 'null'
          format: date-time
        lastError:
          type:
            - string
            - 'null'
        lockOwner:
          type:
            - string
            - 'null'
        lockUntil:
          type:
            - string
            - 'null'
          format: date-time
      additionalProperties: false
    TransactionAssignment:
      type: object
      required:
        - id
        - companies
        - transactionId
        - origin
        - originId
        - reference
        - tags
        - status
      properties:
        id:
          type: string
          description: MongoDB kaynak kimliği.
        companies:
          type: string
          description: MongoDB kaynak kimliği.
        transactionId:
          type: string
          description: MongoDB kaynak kimliği.
        origin:
          type: string
          enum:
            - rule
            - manual
        originId:
          type: string
        ruleId:
          type:
            - string
            - 'null'
        ruleVersion:
          type:
            - integer
            - 'null'
        reference:
          $ref: '#/components/schemas/ExternalReference'
        referenceKey:
          type: string
          readOnly: true
        tags:
          type: array
          items:
            type: string
        status:
          type: string
          enum:
            - active
            - revoked
        matchedAt:
          type:
            - string
            - 'null'
          format: date-time
        revokedAt:
          type:
            - string
            - 'null'
          format: date-time
        revokedReason:
          type:
            - string
            - 'null'
        createdAt:
          type:
            - string
            - 'null'
          format: date-time
        updatedAt:
          type:
            - string
            - 'null'
          format: date-time
        ruleSnapshotHash:
          type:
            - string
            - 'null'
        createdBy:
          type:
            - string
            - 'null'
        updatedBy:
          type:
            - string
            - 'null'
      additionalProperties: false
    ExternalReference:
      type: object
      required:
        - source
        - entityType
        - externalId
      properties:
        source:
          type: string
          maxLength: 64
          pattern: ^[a-z0-9][a-z0-9_-]{0,63}$
        entityType:
          type: string
          maxLength: 64
          pattern: ^[a-z0-9][a-z0-9_-]{0,63}$
        externalId:
          type: string
          maxLength: 256
        label:
          type:
            - string
            - 'null'
          maxLength: 200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Tenant admin tarafından oluşturulan API anahtarının kimliği.
    apiSecretAuth:
      type: apiKey
      in: header
      name: x-api-secret
      description: >-
        Yalnız oluşturma anında gösterilen API anahtarı secret değeri. x-api-key
        ile aynı istekte gönderilir.

````