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

# Kasalar arası transfer oluştur

> Bir nakit kasasında çıkış, diğerinde giriş kaydeder.

> [!WARNING]
>
> Bu çağrı kayıt değiştirir. `Idempotency-Key` zorunludur. Zaman aşımından sonra yeni anahtarla tekrar başlatmadan işlem
> durumunu okuyun.

## Ne yapar?

Bir nakit kasasında çıkış, diğerinde giriş kaydeder. İki tarafın kayıtlı kurlarla hesaplanan TRY tutarı eşit olmalıdır. source/destination kimliklerini saklayın. Transfer komisyonu veya kur farkı kaydı oluşturmaz.

## Ön koşullar ve izin

Gereken izin: **`muhasip:cash:write`**. Bu kaynak için açık izin tanımlanmalıdır; genel erişim veya yönetici yetkisi bu iznin yerine geçmez. İlişkili bütün kimlikler aynı firma kapsamında olmalıdır.

Yeni mali kayıt için kullanılan cari, kasa veya hesap aktif olmalıdır. Ürün/depo kimlikleri verilirse geçerli, aynı firmaya ait ve yeni işlem için aktif olmalıdır.

[Kimlik ve izinler](https://docs.muhasip.pro/baslangic/kimlik-ve-izinler.md) · [Muhasebe veri kuralları](https://docs.muhasip.pro/rehberler/muhasebe-veri-kurallari.md)

## İstek örnekleri

Kimlikleri kendi kayıtlarınızla değiştirin. Yazmada iş niyetine özel anahtarı istekten önce saklayın; örnek anahtarını farklı işler için yeniden kullanmayın. Alan ve cevap tanımları bu sayfanın API referansında yer alır.

```bash cURL theme={null}
curl --request POST 'https://api.muhasip.pro/accounting/cash-accounts/transfers' \
  --user "$MUHASIP_API_USER_ID:$MUHASIP_API_SECRET" \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: ORNEK-ACCOUNTINGCASHTRANSFER-001' \
  --data '{"sourceAccountId":"507f1f77bcf86cd799439012","destinationAccountId":"507f1f77bcf86cd799439013","sourceAmount":"100.00","destinationAmount":"100.00","paymentDate":"2026-10-19"}'
```

```php PHP theme={null}
<?php
$apiUserId = getenv("MUHASIP_API_USER_ID");
$secret = getenv("MUHASIP_API_SECRET");
if (!$apiUserId || !$secret) {
    throw new RuntimeException("API kimlik bilgileri eksik.");
}
$body = json_decode("{\"sourceAccountId\": \"507f1f77bcf86cd799439012\", \"destinationAccountId\": \"507f1f77bcf86cd799439013\", \"sourceAmount\": \"100.00\", \"destinationAmount\": \"100.00\", \"paymentDate\": \"2026-10-19\"}", true, 512, JSON_THROW_ON_ERROR);
$curl = curl_init("https://api.muhasip.pro/accounting/cash-accounts/transfers");
curl_setopt_array($curl, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD => $apiUserId . ":" . $secret,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTPHEADER => [
        "Accept: application/json",
        "Content-Type: application/json",
        "Idempotency-Key: ORNEK-ACCOUNTINGCASHTRANSFER-001"
    ],
    CURLOPT_POSTFIELDS => json_encode($body, JSON_THROW_ON_ERROR)
]);
$response = curl_exec($curl);
$httpStatus = curl_getinfo($curl, CURLINFO_HTTP_CODE);
if ($response === false) {
    curl_close($curl);
    throw new RuntimeException("Bağlantı sonucu belirsiz; yazma işlemini yeniden göndermeden durumunu kontrol edin.");
}
curl_close($curl);
$result = json_decode($response, true, 512, JSON_THROW_ON_ERROR);
echo json_encode(["httpStatus" => $httpStatus, "response" => $result], JSON_UNESCAPED_UNICODE | JSON_THROW_ON_ERROR);
```

```javascript Node.js theme={null}
async function main() {
  const apiUserId = process.env.MUHASIP_API_USER_ID
  const secret = process.env.MUHASIP_API_SECRET
  if (!apiUserId || !secret) throw new Error("API kimlik bilgileri eksik.")
  const authorization = Buffer.from(`${apiUserId}:${secret}`, "utf8").toString("base64")
  const response = await fetch("https://api.muhasip.pro/accounting/cash-accounts/transfers", {
    method: "POST",
    headers: {
      Authorization: `Basic ${authorization}`,
      Accept: "application/json",
      "Content-Type": "application/json",
      "Idempotency-Key": "ORNEK-ACCOUNTINGCASHTRANSFER-001"
    },
    body: JSON.stringify({
      sourceAccountId: "507f1f77bcf86cd799439012",
      destinationAccountId: "507f1f77bcf86cd799439013",
      sourceAmount: "100.00",
      destinationAmount: "100.00",
      paymentDate: "2026-10-19"
    }),
    signal: AbortSignal.timeout(30000)
  })
  const result = await response.json()
  console.log({ httpStatus: response.status, response: result })
}
main().catch(() => {
  console.error("İstek tamamlanamadı; yazma sonucunu kontrol etmeden yeniden göndermeyin.")
  process.exitCode = 1
})
```

## Cevabı değerlendirin

Aşağıdaki cevap temsilîdir.

```json theme={null}
{
  "status": true,
  "result": {
    "id": "507f1f77bcf86cd799439015",
    "source": {
      "id": "507f1f77bcf86cd799439015",
      "version": 0,
      "accountId": "507f1f77bcf86cd799439012",
      "direction": "outflow",
      "paymentDate": "2026-10-19",
      "currencyCode": "TRY",
      "exchangeRate": 1,
      "amount": 100,
      "description": ""
    },
    "destination": {
      "id": "507f1f77bcf86cd799439016",
      "version": 0,
      "accountId": "507f1f77bcf86cd799439013",
      "direction": "inflow",
      "paymentDate": "2026-10-19",
      "currencyCode": "TRY",
      "exchangeRate": 1,
      "amount": 100,
      "description": ""
    }
  },
  "operation": {
    "operationId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "type": "cash.transfer",
    "state": "succeeded",
    "reviewRequired": false,
    "retryable": false,
    "result": {
      "resultId": "507f1f77bcf86cd799439015",
      "sourcePaymentId": "507f1f77bcf86cd799439015",
      "destinationPaymentId": "507f1f77bcf86cd799439016"
    },
    "statusUrl": "/apps/operations/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "createdAt": "2026-10-19T09:00:00.000Z",
    "updatedAt": "2026-10-19T09:00:01.000Z"
  }
}
```

İlk başarılı çağrı `result` ile kayıt sonucunu ve `operation` ile makbuzu döndürür. Aynı iş anahtarıyla tamamlanmış tekrar **200** ve `replayed:true` döndürür; ilk ayrıntı gövdesi tekrarlanmaz. Sonuç kimliğiyle ilgili okuma ucunu kullanın. `reviewRequired:true` sonucunu başarılı mali işlem kabul etmeyin.

## Hata durumunda

| HTTP / kod | İzlenecek adım |
| - | - |
| `400 INVALID_REQUEST` | Alanları, tarihi, ondalık hassasiyeti ve desteklenmeyen alanları kontrol edin. |
| `401` / `403` | Kimlik, IP ve açık modül iznini doğrulayın. |
| `404 RESOURCE_NOT_FOUND` | Kaynağın ve bağlı kimliklerin doğru olduğunu, bu kaynak türünde kullanılabildiğini kontrol edin. |
| `409 RESOURCE_ARCHIVED` | Yeni işlemden önce kartı arşivden çıkarın. |
| `409 TRANSFER_AMOUNT_MISMATCH` | Kaynak ve hedef tutar/kur bilgilerini kontrol edin; TRY karşılıkları eşit olmalıdır. |
| `409 IDEMPOTENCY_PAYLOAD_CONFLICT` | Aynı iş anahtarıyla farklı gövde, kimlik veya If-Match göndermeyin. Önce mevcut işlemi inceleyin. |
| `409 OPERATION_TARGET_LOCKED` / `OPERATION_IN_PROGRESS` | Dönen işlem kimliğini takip edin; beklemek veya anahtarı değiştirmek işlem izni vermez. |
| `502` / `503` | Otomatik tekrar yapmayın. İşlem durumunu ve kayıtları inceleyin. |

[Hata yönetimi](https://docs.muhasip.pro/rehberler/hata-yonetimi.md) · [İşlem takibi](https://docs.muhasip.pro/rehberler/islem-takibi.md)

## Sonraki adım

[Kasa ve transfer akışını izleyin](https://docs.muhasip.pro/rehberler/kasa-entegrasyonu.md). Mali sonucu bakiye ve ekstre okumalarıyla kontrol edin.


## OpenAPI

````yaml openapi.json POST /accounting/cash-accounts/transfers
openapi: 3.0.3
info:
  title: Muhasip API
  version: 2026-10-25.1
  description: >-
    Fatura, banka, POS ve tahsilat, GİB e-Arşiv, pazaryeri, online işlemler,
    görevler, ajanda ve takvim entegrasyonları. İşlem alanları, izinler, istek
    ve cevap örnekleri ile hata yönetimi.
servers:
  - url: https://api.muhasip.pro
    description: Muhasip API
security:
  - BasicAuth: []
tags:
  - name: Uygulamalar
  - name: Görev yönetimi
  - name: Ajanda ve takvim
  - name: Fatura
    description: Fatura bağlantısı, belge işlemleri ve muhasebeye aktarım.
  - name: Banka
    description: >-
      Banka hesapları, hareketler, mahsup ve mevcut çalışma alanı alt
      kaynakları.
  - name: POS ve tahsilat
    description: POS hesapları, komisyonlar ve tahsilat bağlantıları.
  - name: GİB e-Arşiv
    description: GİB hesabı, sorgu, taslak ve SMS imzalama.
  - name: Pazaryeri
    description: Trendyol bağlantısı ve sipariş aktarımı.
  - name: Online işlemler
    description: Online işlem ekranı yapılandırması.
  - name: İşlem takibi
    description: Mali işlem durumu ve tekrar çağrı makbuzları.
  - name: Cari hesaplar
    description: Cari hesaplar işlemleri.
  - name: Kasa ve transferler
    description: Kasa ve transferler işlemleri.
  - name: Alış-satış (e-belgesiz)
    description: Alış-satış (e-belgesiz) işlemleri.
  - name: Ödemeler ve mahsuplaşma
    description: Ödemeler ve mahsuplaşma işlemleri.
  - name: Muhasebe seçenekleri
    description: Muhasebe seçenekleri işlemleri.
  - name: E-Pos
    description: >-
      Firmanın kendi banka/ödeme kuruluşu sanal POS hesapları, tarifeler, ödeme
      talepleri ve tam iptal/iade.
paths:
  /accounting/cash-accounts/transfers:
    post:
      tags:
        - Kasa ve transferler
      summary: Kasalar arası transfer oluştur
      description: >-
        Bir nakit kasasında çıkış, diğerinde giriş kaydeder. İki tarafın kayıtlı
        kurlarla hesaplanan TRY tutarı eşit olmalıdır. source/destination
        kimliklerini saklayın. Transfer komisyonu veya kur farkı kaydı
        oluşturmaz. Idempotency-Key zorunludur. Tamamlanmış tekrar, ilk result
        ayrıntısını değil operation ve güvenli sonuç kimliklerini döndürür.
      operationId: accountingCashTransfer
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
            pattern: ^[!-~]+$
          description: >-
            Her yeni iş niyeti için kalıcı, farklı anahtar. Aynı
            anahtar+işlem+firma ve farklı içerik 409 üretir; tamamlanmış tekrar
            200 replay makbuzu döner.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccountingTransferInput'
            example:
              sourceAccountId: 507f1f77bcf86cd799439012
              destinationAccountId: 507f1f77bcf86cd799439013
              sourceAmount: '100.00'
              destinationAmount: '100.00'
              paymentDate: '2026-10-19'
      responses:
        '200':
          description: >-
            Aynı anahtarla daha önce tamamlanan işlem; ilk ayrıntı gövdesi
            yerine güvenli sonuç kimlikleri.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiOperationReplay'
              example:
                status: true
                replayed: true
                operation:
                  operationId: >-
                    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
                  type: cash.transfer
                  state: succeeded
                  reviewRequired: false
                  retryable: false
                  result:
                    resultId: 507f1f77bcf86cd799439015
                    sourcePaymentId: 507f1f77bcf86cd799439015
                    destinationPaymentId: 507f1f77bcf86cd799439016
                  statusUrl: >-
                    /apps/operations/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
                  createdAt: '2026-10-19T09:00:00.000Z'
                  updatedAt: '2026-10-19T09:00:01.000Z'
                operations:
                  - operationId: >-
                      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
                    type: cash.transfer
                    state: succeeded
                    reviewRequired: false
                    retryable: false
                    result:
                      resultId: 507f1f77bcf86cd799439015
                      sourcePaymentId: 507f1f77bcf86cd799439015
                      destinationPaymentId: 507f1f77bcf86cd799439016
                    statusUrl: >-
                      /apps/operations/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
                    createdAt: '2026-10-19T09:00:00.000Z'
                    updatedAt: '2026-10-19T09:00:01.000Z'
                resultId: 507f1f77bcf86cd799439015
                sourcePaymentId: 507f1f77bcf86cd799439015
                destinationPaymentId: 507f1f77bcf86cd799439016
        '201':
          description: İşlem tamamlandı. Yazma cevabındaki operation makbuzunu saklayın.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    enum:
                      - true
                  result:
                    $ref: '#/components/schemas/AccountingTransfer'
                  operation:
                    $ref: '#/components/schemas/ApiOperation'
                required:
                  - status
                  - result
                  - operation
                additionalProperties: false
              example:
                status: true
                result:
                  id: 507f1f77bcf86cd799439015
                  source:
                    id: 507f1f77bcf86cd799439015
                    version: 0
                    accountId: 507f1f77bcf86cd799439012
                    direction: outflow
                    paymentDate: '2026-10-19'
                    currencyCode: TRY
                    exchangeRate: 1
                    amount: 100
                    description: ''
                  destination:
                    id: 507f1f77bcf86cd799439016
                    version: 0
                    accountId: 507f1f77bcf86cd799439013
                    direction: inflow
                    paymentDate: '2026-10-19'
                    currencyCode: TRY
                    exchangeRate: 1
                    amount: 100
                    description: ''
                operation:
                  operationId: >-
                    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
                  type: cash.transfer
                  state: succeeded
                  reviewRequired: false
                  retryable: false
                  result:
                    resultId: 507f1f77bcf86cd799439015
                    sourcePaymentId: 507f1f77bcf86cd799439015
                    destinationPaymentId: 507f1f77bcf86cd799439016
                  statusUrl: >-
                    /apps/operations/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
                  createdAt: '2026-10-19T09:00:00.000Z'
                  updatedAt: '2026-10-19T09:00:01.000Z'
        '400':
          description: Alan, tarih, hassasiyet, gövde veya başlık geçersiz.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiOperationError'
              example:
                status: false
                code: INVALID_REQUEST
                message: Alan, tarih, hassasiyet, gövde veya başlık geçersiz.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: >-
            İlişki, bakiye, kur, sürüm veya işlem kilidi çakışması. İlgili kaydı
            ve işlem durumunu okuyun.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiOperationError'
              example:
                status: false
                code: RECORD_CHANGED
                message: >-
                  İlişki, bakiye, kur, sürüm veya işlem kilidi çakışması. İlgili
                  kaydı ve işlem durumunu okuyun.
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '502':
          description: >-
            Mali sonuç kesinleştirilemedi. İşlemi tekrar göndermeden operation
            durumunu ve ilgili kayıtları inceleyin.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiOperationError'
              example:
                status: false
                code: UPSTREAM_RESULT_UNCERTAIN
                message: >-
                  Mali sonuç kesinleştirilemedi. İşlemi tekrar göndermeden
                  operation durumunu ve ilgili kayıtları inceleyin.
        '503':
          description: >-
            İşlem makbuzu oluşturulamadı veya kesinleştirilemedi. Yeniden
            göndermeden durumunu okuyun.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiOperationError'
              example:
                status: false
                code: OPERATION_RECORD_UNAVAILABLE
                message: >-
                  İşlem makbuzu oluşturulamadı veya kesinleştirilemedi. Yeniden
                  göndermeden durumunu okuyun.
components:
  schemas:
    AccountingTransferInput:
      type: object
      properties:
        sourceAccountId:
          type: string
          description: 24 karakterli kayıt kimliği.
          pattern: ^[a-f0-9A-F]{24}$
        destinationAccountId:
          type: string
          description: 24 karakterli kayıt kimliği.
          pattern: ^[a-f0-9A-F]{24}$
        sourceAmount:
          description: >-
            Noktalı ondalık sayı veya metin. Üstel gösterim, negatif değer ve
            fazla ondalık basamak reddedilir.
          oneOf:
            - type: number
              minimum: 0
              maximum: 999999999.99
              multipleOf: 0.01
              exclusiveMinimum: true
            - type: string
              pattern: >-
                ^(?=\d{1,12}(?:\.\d{1,2})?$)(?!0+(?:\.0+)?$)0*\d{1,9}(?:\.\d{1,2})?$
          x-decimal-places: 2
        destinationAmount:
          description: >-
            Noktalı ondalık sayı veya metin. Üstel gösterim, negatif değer ve
            fazla ondalık basamak reddedilir.
          oneOf:
            - type: number
              minimum: 0
              maximum: 999999999.99
              multipleOf: 0.01
              exclusiveMinimum: true
            - type: string
              pattern: >-
                ^(?=\d{1,12}(?:\.\d{1,2})?$)(?!0+(?:\.0+)?$)0*\d{1,9}(?:\.\d{1,2})?$
          x-decimal-places: 2
        sourceExchangeRate:
          $ref: '#/components/schemas/AccountingRate'
        destinationExchangeRate:
          $ref: '#/components/schemas/AccountingRate'
        paymentDate:
          type: string
          description: YYYY-MM-DD; 1900-01-01–2199-12-31. Saat gönderilmez.
          format: date
        description:
          type: string
          maxLength: 2000
      required:
        - sourceAccountId
        - destinationAccountId
        - sourceAmount
        - destinationAmount
        - paymentDate
      additionalProperties: false
      description: >-
        İki aktif, farklı nakit kasası gerekir. İki tarafın kuruşla yuvarlanan
        TRY karşılığı eşit olmalıdır. Bankaya para göndermez.
    ApiOperationReplay:
      type: object
      properties:
        status:
          type: boolean
        replayed:
          type: boolean
          enum:
            - true
        operation:
          $ref: '#/components/schemas/ApiOperation'
        operations:
          type: array
          items:
            $ref: '#/components/schemas/ApiOperation'
        resultId:
          type: string
        transactionId:
          type: string
        uuid:
          type: string
        id:
          type: string
        providerId:
          type: string
        documentId:
          type: string
        paymentId:
          type: string
        orderId:
          type: string
        uuids:
          type: array
          items:
            type: string
        sourcePaymentId:
          type: string
          description: 24 karakterli kayıt kimliği.
          pattern: ^[a-f0-9A-F]{24}$
        destinationPaymentId:
          type: string
          description: 24 karakterli kayıt kimliği.
          pattern: ^[a-f0-9A-F]{24}$
      required:
        - status
        - replayed
        - operation
        - operations
      additionalProperties: false
    AccountingTransfer:
      type: object
      properties:
        id:
          type: string
          description: 24 karakterli kayıt kimliği.
          pattern: ^[a-f0-9A-F]{24}$
        source:
          $ref: '#/components/schemas/AccountingCashMovement'
        destination:
          $ref: '#/components/schemas/AccountingCashMovement'
      required:
        - id
        - source
        - destination
      additionalProperties: false
    ApiOperation:
      type: object
      properties:
        operationId:
          type: string
          pattern: ^[a-f0-9]{64}$
        type:
          type: string
        state:
          type: string
          enum:
            - claimed
            - dispatching
            - provider_accepted
            - succeeded
            - rejected
            - failed_before_dispatch
            - review_required
        reviewRequired:
          type: boolean
        retryable:
          type: boolean
        result:
          $ref: '#/components/schemas/ApiOperationReceipt'
        statusUrl:
          type: string
        createdAt:
          type: string
          format: date-time
          description: ISO 8601 tarih-saat.
        updatedAt:
          type: string
          format: date-time
          description: ISO 8601 tarih-saat.
      required:
        - operationId
        - type
        - state
        - reviewRequired
        - retryable
        - result
        - statusUrl
        - createdAt
        - updatedAt
    ApiOperationError:
      type: object
      properties:
        status:
          type: boolean
        code:
          type: string
        message:
          type: string
        retryable:
          type: boolean
        reviewRequired:
          type: boolean
        operation:
          $ref: '#/components/schemas/ApiOperation'
        operationId:
          type: string
      required:
        - status
      additionalProperties: true
    AccountingRate:
      description: >-
        1 birim dövizin TRY karşılığı; pozitif, en fazla 6 basamak. TRY için 1;
        diğer para birimlerinde zorunlu.
      oneOf:
        - type: number
          minimum: 0
          maximum: 999999.999999
          multipleOf: 0.000001
          exclusiveMinimum: true
        - type: string
          pattern: ^(?=\d{1,12}(?:\.\d{1,6})?$)(?!0+(?:\.0+)?$)0*\d{1,6}(?:\.\d{1,6})?$
      x-decimal-places: 6
    AccountingCashMovement:
      type: object
      properties:
        id:
          type: string
          description: 24 karakterli kayıt kimliği.
          pattern: ^[a-f0-9A-F]{24}$
        version:
          type: integer
          minimum: 0
          description: If-Match için kullanılan kayıt sürümü.
        accountId:
          type: string
          description: 24 karakterli kayıt kimliği.
          pattern: ^[a-f0-9A-F]{24}$
        direction:
          type: string
          enum:
            - inflow
            - outflow
        paymentDate:
          type: string
          description: YYYY-MM-DD; 1900-01-01–2199-12-31. Saat gönderilmez.
          format: date
        currencyCode:
          $ref: '#/components/schemas/AccountingCurrency'
        exchangeRate:
          type: number
        amount:
          type: number
        description:
          type: string
      required:
        - id
        - version
        - accountId
        - direction
        - paymentDate
        - currencyCode
        - exchangeRate
        - amount
        - description
      additionalProperties: false
    ApiOperationReceipt:
      type: object
      properties:
        resultId:
          type: string
          minLength: 1
          maxLength: 200
          pattern: ^[A-Za-z0-9_.:-]+$
        transactionId:
          type: string
          minLength: 1
          maxLength: 200
          pattern: ^[A-Za-z0-9_.:-]+$
        uuid:
          type: string
          minLength: 1
          maxLength: 200
          pattern: ^[A-Za-z0-9_.:-]+$
        id:
          type: string
          minLength: 1
          maxLength: 200
          pattern: ^[A-Za-z0-9_.:-]+$
        providerId:
          type: string
          minLength: 1
          maxLength: 200
          pattern: ^[A-Za-z0-9_.:-]+$
        documentId:
          type: string
          minLength: 1
          maxLength: 200
          pattern: ^[A-Za-z0-9_.:-]+$
        paymentId:
          type: string
          minLength: 1
          maxLength: 200
          pattern: ^[A-Za-z0-9_.:-]+$
        orderId:
          type: string
          minLength: 1
          maxLength: 200
          pattern: ^[A-Za-z0-9_.:-]+$
        uuids:
          type: array
          items:
            type: string
            maxLength: 200
            pattern: ^[A-Za-z0-9_.:-]+$
          maxItems: 100
        sourcePaymentId:
          type: string
          description: 24 karakterli kayıt kimliği.
          pattern: ^[a-f0-9A-F]{24}$
        destinationPaymentId:
          type: string
          description: 24 karakterli kayıt kimliği.
          pattern: ^[a-f0-9A-F]{24}$
      additionalProperties: false
    Error:
      type: object
      properties:
        status:
          type: boolean
        code:
          type: string
        message:
          type: string
        description:
          type: string
        retryable:
          type: boolean
        reviewRequired:
          type: boolean
        operationId:
          type: string
      required:
        - status
      additionalProperties: true
    RateLimitError:
      type: object
      properties:
        status:
          type: integer
          enum:
            - 429
        error:
          type: string
        message:
          type: string
      required:
        - status
        - error
        - message
    AccountingCurrency:
      type: string
      description: >-
        İşlem para birimi. Uygulama tutar hassasiyeti bütün bu birimlerde 2
        basamaktır.
      enum:
        - TRY
        - USD
        - EUR
        - GBP
        - CHF
        - CAD
        - AUD
        - JPY
        - CNY
        - AED
        - SAR
        - RUB
        - DKK
        - NOK
        - SEK
  responses:
    Unauthorized:
      description: API kimliği/parolası, erişim süresi veya firma doğrulanamadı.
      headers:
        WWW-Authenticate:
          schema:
            type: string
          description: Basic realm="Muhasip API", charset="UTF-8"
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            status: false
            code: UNAUTHORIZED
            message: API kimlik bilgileri doğrulanamadı.
    Forbidden:
      description: Ürün, IP, modül izni veya kaynak kapsamı uygun değil.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            status: false
            message: Ürün, IP, modül izni veya kaynak kapsamı uygun değil.
    NotFound:
      description: Kayıt bulunamadı veya bu erişim bağlamında kullanılamıyor.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            status: false
    RateLimited:
      description: Ortak istek sınırı aşıldı; sayısal status alanı kullanılır.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitError'
          example:
            status: 429
            error: Too Many Requests
            message: Rate limit exceeded. Please try again later.
    InternalError:
      description: İşleme hatası. Bazı işleme hataları 411 olarak dönebilir.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            status: false
            message: Üzgünüz, bir hata oluştu.
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
      description: >-
        Kullanıcı adı apiUserId, parola secretKey. Aktif ve süresi geçmemiş API
        kullanıcısı ve uygun firma gerekir.

````

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