> ## 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.

# E-Pos hesabını ve satış tarifesini güncelle

> Güncel revision ile ad, oran, kimlik veya durum değiştirir.

## Ne yapar?

Güncel revision ile ad, oran, kimlik veya durum değiştirir. Pasifleştirme status=disabled, arşivleme status=archived ile yapılır. Arşivli hesap düzenlenemez. Etkinleştirme geçerli bağlantı ve sağlayıcı desteği ister. Başarılı değişiklik yeni revision döndürür; önceki sürümdeki açık ödeme bağlantıları etkilenebilir.

## Ön koşullar ve izin

Gereken izin: **`muhasip:epos:write`**. Açık izin her durumda zorunludur; genel erişim veya yönetici yetkisi bunun yerine geçmez. `write` tek başına `read` sağlamaz. Firma kimlik bilgilerinden belirlenir; ilişkili kayıtlar aynı firmaya ait olmalıdır. Firma paketi ücretli ve süresi aktif olmalıdır.

[Kimlik ve izinler](https://docs.muhasip.pro/baslangic/kimlik-ve-izinler.md) · [E-Pos entegrasyonu](https://docs.muhasip.pro/rehberler/e-pos-entegrasyonu.md)

## İstek örnekleri

Örnekler temsilîdir. Kimlikleri, sürümleri ve işyeri bilgilerini kendi kayıtlarınızla değiştirin. Oranlar yüzde, `amountMinor` değerleri kuruştur. Gereken işlem anahtarını çağrıdan önce kalıcı saklayın; otomatik tekrar yapmayın. Gerçek işyeri anahtarını güvenli sunucu ortamından sağlayın. Node.js örneği Node.js 20 veya üzeri, PHP örneği cURL uzantısı gerektirir.

```bash cURL theme={null}
curl --request PATCH 'https://api.muhasip.pro/apps/bankpos/accounts/600000000000000000000001' \
  --user "$MUHASIP_API_USER_ID:$MUHASIP_API_SECRET" \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data-binary @- <<'JSON'
{
  "revision": 1,
  "familySaleRates": [
    {
      "family": "paraf",
      "installment": 3,
      "saleRate": 0.1
    }
  ]
}
JSON
```

```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.");
}
$headers = ["Accept: application/json"];
$headers[] = "Content-Type: application/json";
$body = <<<'JSON'
{
  "revision": 1,
  "familySaleRates": [
    {
      "family": "paraf",
      "installment": 3,
      "saleRate": 0.1
    }
  ]
}
JSON;
$curl = curl_init("https://api.muhasip.pro/apps/bankpos/accounts/600000000000000000000001");
curl_setopt_array($curl, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD => $apiUserId . ":" . $secret,
    CURLOPT_CUSTOMREQUEST => "PATCH",
    CURLOPT_TIMEOUT => 100,
    CURLOPT_FOLLOWLOCATION => false,
    CURLOPT_HTTPHEADER => $headers,
    CURLOPT_POSTFIELDS => $body
]);
$response = curl_exec($curl);
$httpStatus = curl_getinfo($curl, CURLINFO_HTTP_CODE);
if ($response === false) {
    curl_close($curl);
    throw new RuntimeException("Sonuç belirsiz; yeniden göndermeden işlem ve ödeme durumunu okuyun.");
}
curl_close($curl);
$result = json_decode($response, true, 512, JSON_THROW_ON_ERROR);
// Ödeme bağlantısını veya gizli alanları günlüklemeyin.
echo json_encode(["httpStatus" => $httpStatus, "status" => $result["status"] ?? null, "id" => $result["result"]["_id"] ?? null, "operationId" => $result["operation"]["operationId"] ?? null], 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 headers = {
    Authorization: `Basic ${Buffer.from(`${apiUserId}:${secret}`, "utf8").toString("base64")}`,
    Accept: "application/json"
  }
  headers["Content-Type"] = "application/json"
  const body = {
    revision: 1,
    familySaleRates: [
      {
        family: "paraf",
        installment: 3,
        saleRate: 0.1
      }
    ]
  }
  const response = await fetch("https://api.muhasip.pro/apps/bankpos/accounts/600000000000000000000001", {
    method: "PATCH",
    headers,
    redirect: "error",
    signal: AbortSignal.timeout(100000),
    body: JSON.stringify(body)
  })
  const result = await response.json()
  // Ödeme bağlantısını veya gizli alanları günlüklemeyin.
  console.log({
    httpStatus: response.status,
    status: result.status,
    id: result.result?._id,
    operationId: result.operation?.operationId
  })
}
main().catch(() => {
  console.error("Sonuç alınamadı; işlem/ödeme durumunu kontrol etmeden yeniden göndermeyin.")
  process.exitCode = 1
})
```

## Cevabı değerlendirin

Aşağıdaki cevap temsilîdir; varsa `url` alanı örnekte yer tutucudur. Uygulamada dönen adresi doğrudan kullanın ve günlüklemeyin.

Bu çağrı genel `operation` makbuzu üretmez. Hesap/tercih yazmalarında güncel `revision` kullanın; yanıt kaybında kaydı okuyup son sürümü kontrol edin.

```json theme={null}
{
  "status": true,
  "result": {
    "_id": "600000000000000000000001",
    "name": "Merkez Hoppa",
    "providerCode": "esnekpos",
    "providerKind": "paymentInstitution",
    "environment": "test",
    "status": "draft",
    "revision": 2,
    "identity": {
      "merchant": "ORNEK_ISYERI"
    },
    "currencies": ["TRY"],
    "installments": [1, 3],
    "installmentRates": [
      {
        "installment": 1,
        "enabled": true,
        "purchaseRate": null,
        "saleRate": 0
      },
      {
        "installment": 3,
        "enabled": true,
        "purchaseRate": null,
        "saleRate": 1
      }
    ],
    "familySaleRates": [
      {
        "family": "paraf",
        "installment": 3,
        "saleRate": 0.1
      }
    ],
    "credentialsConfigured": false,
    "ratesConfigured": true,
    "credentialVersionId": null,
    "credentialsUpdatedAt": null,
    "connectionCheck": {
      "status": "not_checked",
      "checkedAt": null
    },
    "integrationStatus": "implemented",
    "canActivate": false,
    "createdAt": "2026-10-25T09:00:00.000Z",
    "updatedAt": "2026-10-25T09:00:00.000Z",
    "archivedAt": null,
    "createdBy": "600000000000000000000003",
    "updatedBy": "600000000000000000000003"
  }
}
```

## Hata durumunda

| HTTP / kod | Yapılacak işlem |
| - | - |
| `400 BANKPOS_INVALID_REQUEST` | İstek, kimlik, filtre veya oran biçimini düzeltin. |
| `401 UNAUTHORIZED` | API kimliği, erişim süresi ve firma durumunu kontrol edin. |
| `403 API_SCOPE_FORBIDDEN` | Açık E-Pos iznini, firma/IP ve paket koşullarını kontrol edin. |
| `429` | İstek sıklığını azaltın; mali çağrıyı körlemesine tekrarlamayın. |
| `500 INTERNAL_ERROR` | İstek tamamlanamadı; yazma sonucunu kayıttan kontrol edin. |
| `404 BANKPOS_ACCOUNT_NOT_FOUND` | Aynı firmaya ait hesap kimliğini kullanın. |
| `409 BANKPOS_REVISION_CONFLICT` | Güncel hesap veya tercih sürümünü okuyun. |
| `409 BANKPOS_ACCOUNT_ARCHIVED` | Arşivli hesap düzenlenemez. |
| `409 BANKPOS_IDENTITY_LOCKED` | Bağlantılı işyeri kimliği için yeni hesap oluşturun. |
| `422 BANKPOS_ACCOUNT_NOT_READY` | Hesabın bağlantı, destek ve etkinlik koşullarını tamamlayın. |
| `422 BANKPOS_ENVIRONMENT_MISMATCH` | Firma ortamına uygun hesabı kullanın. |

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

## Sonraki adım

[E-Pos entegrasyon akışını izleyin](https://docs.muhasip.pro/rehberler/e-pos-entegrasyonu.md). Hesap değişikliğinde dönen `revision` değerini saklayın; ödemede bağlantı oluşturmayı, müşterinin 3D işlemini ve doğrulanmış mali sonucu ayrı değerlendirin.


## OpenAPI

````yaml openapi.json PATCH /apps/bankpos/accounts/{accountId}
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:
  /apps/bankpos/accounts/{accountId}:
    patch:
      tags:
        - E-Pos
      summary: E-Pos hesabını ve satış tarifesini güncelle
      description: >-
        Güncel revision ile ad, oran, kimlik veya durum değiştirir.
        Pasifleştirme status=disabled, arşivleme status=archived ile yapılır.
        Arşivli hesap düzenlenemez. Etkinleştirme geçerli bağlantı ve sağlayıcı
        desteği ister. Başarılı değişiklik yeni revision döndürür; önceki
        sürümdeki açık ödeme bağlantıları etkilenebilir.
      operationId: eposUpdateAccount
      parameters:
        - name: accountId
          in: path
          required: true
          schema:
            type: string
            pattern: ^[a-fA-F0-9]{24}$
            description: Aynı firmaya ait 24 haneli kayıt kimliği.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EposAccountUpdate'
            example:
              revision: 1
              familySaleRates:
                - family: paraf
                  installment: 3
                  saleRate: 0.1
      responses:
        '200':
          description: İşlem cevabı; örnek temsilîdir.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    enum:
                      - true
                  result:
                    $ref: '#/components/schemas/EposAccount'
                additionalProperties: false
                required:
                  - status
                  - result
              example:
                status: true
                result:
                  _id: '600000000000000000000001'
                  name: Merkez Hoppa
                  providerCode: esnekpos
                  providerKind: paymentInstitution
                  environment: test
                  status: draft
                  revision: 2
                  identity:
                    merchant: ORNEK_ISYERI
                  currencies:
                    - TRY
                  installments:
                    - 1
                    - 3
                  installmentRates:
                    - installment: 1
                      enabled: true
                      purchaseRate: null
                      saleRate: 0
                    - installment: 3
                      enabled: true
                      purchaseRate: null
                      saleRate: 1
                  familySaleRates:
                    - family: paraf
                      installment: 3
                      saleRate: 0.1
                  credentialsConfigured: false
                  ratesConfigured: true
                  credentialVersionId: null
                  credentialsUpdatedAt: null
                  connectionCheck:
                    status: not_checked
                    checkedAt: null
                  integrationStatus: implemented
                  canActivate: false
                  createdAt: '2026-10-25T09:00:00.000Z'
                  updatedAt: '2026-10-25T09:00:00.000Z'
                  archivedAt: null
                  createdBy: '600000000000000000000003'
                  updatedBy: '600000000000000000000003'
        '400':
          description: İşlem cevabı; örnek temsilîdir.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EposError'
              example:
                status: false
                code: BANKPOS_INVALID_REQUEST
                message: İstek alanları geçersiz.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: >-
            BANKPOS_REVISION_CONFLICT · BANKPOS_ACCOUNT_ARCHIVED ·
            BANKPOS_IDENTITY_LOCKED. İlgili kaydı ve işlem durumunu kontrol
            edin.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EposError'
              example:
                status: false
                code: BANKPOS_REVISION_CONFLICT
                message: Güncel hesap veya tercih sürümünü okuyun.
        '422':
          description: >-
            BANKPOS_ACCOUNT_NOT_READY · BANKPOS_ENVIRONMENT_MISMATCH. İlgili
            kaydı ve işlem durumunu kontrol edin.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EposError'
              example:
                status: false
                code: BANKPOS_ACCOUNT_NOT_READY
                message: Hesabın bağlantı, destek ve etkinlik koşullarını tamamlayın.
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          description: İşlem cevabı; örnek temsilîdir.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EposError'
              example:
                status: false
                code: INTERNAL_ERROR
                message: İşlem gerçekleştirilemedi.
components:
  schemas:
    EposAccountUpdate:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 120
        identity:
          type: object
          properties:
            merchant:
              type: string
              minLength: 1
              maxLength: 120
          additionalProperties: false
          description: Sağlayıcının gizli olmayan işyeri kimliği. Hoppa için merchant.
        currencies:
          type: array
          items:
            type: string
            pattern: ^[A-Z]{3}$
          minItems: 1
          maxItems: 30
          uniqueItems: true
          default:
            - TRY
        installments:
          type: array
          items:
            type: integer
            minimum: 1
            maximum: 99
            description: >-
              1 tek çekimdir. Yeni Hoppa talebinde 1–12 arasında ve hesapta
              aktif olmalıdır.
          minItems: 1
          maxItems: 99
          uniqueItems: true
          description: >-
            Gönderilirse oran satırlarının aktif taksitleriyle birebir
            eşleşmelidir.
        installmentRates:
          type: array
          items:
            $ref: '#/components/schemas/EposInstallmentRate'
          minItems: 1
          maxItems: 99
          description: >-
            Benzersiz taksitler; en az bir aktif satır. Aktif satırın genel
            satış oranı zorunludur.
        familySaleRates:
          type: array
          items:
            $ref: '#/components/schemas/EposAccountFamilyRate'
          maxItems: 384
          description: >-
            En fazla 32 farklı aile; aile+taksit benzersizdir. Taksit hesap
            oranlarında tanımlı olmalıdır. Boş dizi aile tarifelerini kaldırır.
        revision:
          type: integer
          minimum: 1
          maximum: 9007199254740990
          description: >-
            Güncel hesap sürümü. Hesap değişikliği sonrasında dönen yeni değeri
            kullanın.
        status:
          type: string
          enum:
            - draft
            - active
            - disabled
            - archived
      additionalProperties: false
      required:
        - revision
      description: >-
        revision dışında en az bir alan gönderin. providerCode/ortam değişmez.
        Arşivli hesap düzenlenemez; bağlantılı işyeri kimliği değiştirilemez.
    EposAccount:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 120
        providerCode:
          type: string
          description: Sağlayıcı kataloğundan alınır; Hoppa için esnekpos.
        identity:
          type: object
          properties:
            merchant:
              type: string
              minLength: 1
              maxLength: 120
          additionalProperties: false
          description: Sağlayıcının gizli olmayan işyeri kimliği. Hoppa için merchant.
        currencies:
          type: array
          items:
            type: string
            pattern: ^[A-Z]{3}$
          minItems: 1
          maxItems: 30
          uniqueItems: true
          default:
            - TRY
        installments:
          type: array
          items:
            type: integer
            minimum: 1
            maximum: 99
            description: >-
              1 tek çekimdir. Yeni Hoppa talebinde 1–12 arasında ve hesapta
              aktif olmalıdır.
          minItems: 1
          maxItems: 99
          uniqueItems: true
          description: >-
            Gönderilirse oran satırlarının aktif taksitleriyle birebir
            eşleşmelidir.
        installmentRates:
          type: array
          items:
            $ref: '#/components/schemas/EposInstallmentRate'
          minItems: 1
          maxItems: 99
          description: >-
            Benzersiz taksitler; en az bir aktif satır. Aktif satırın genel
            satış oranı zorunludur.
        familySaleRates:
          type: array
          items:
            $ref: '#/components/schemas/EposAccountFamilyRate'
          maxItems: 384
          description: >-
            En fazla 32 farklı aile; aile+taksit benzersizdir. Taksit hesap
            oranlarında tanımlı olmalıdır. Boş dizi aile tarifelerini kaldırır.
        _id:
          type: string
          pattern: ^[a-fA-F0-9]{24}$
          description: Aynı firmaya ait 24 haneli kayıt kimliği.
        providerKind:
          type: string
          enum:
            - bank
            - paymentInstitution
        environment:
          type: string
          enum:
            - test
            - production
          description: >-
            Firma hesabının test bilgisine göre belirlenir; hesap oluştururken
            seçilmez.
        status:
          type: string
          enum:
            - draft
            - active
            - disabled
            - archived
        revision:
          type: integer
          minimum: 1
          maximum: 9007199254740990
          description: >-
            Güncel hesap sürümü. Hesap değişikliği sonrasında dönen yeni değeri
            kullanın.
        ratesConfigured:
          type: boolean
        credentialsConfigured:
          type: boolean
        credentialVersionId:
          type: string
          pattern: ^[a-fA-F0-9]{24}$
          description: Aynı firmaya ait 24 haneli kayıt kimliği.
          nullable: true
        credentialsUpdatedAt:
          type: string
          format: date-time
          nullable: true
        connectionCheck:
          type: object
          properties:
            status:
              type: string
              enum:
                - not_checked
                - unsupported
                - passed
                - failed
            checkedAt:
              type: string
              format: date-time
              nullable: true
          additionalProperties: false
        integrationStatus:
          type: string
          enum:
            - planned
            - implemented
        canActivate:
          type: boolean
        hasTransactions:
          type: boolean
        canDelete:
          type: boolean
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        archivedAt:
          type: string
          format: date-time
          nullable: true
        createdBy:
          type: string
          pattern: ^[a-fA-F0-9]{24}$
          description: Aynı firmaya ait 24 haneli kayıt kimliği.
        updatedBy:
          type: string
          pattern: ^[a-fA-F0-9]{24}$
          description: Aynı firmaya ait 24 haneli kayıt kimliği.
      additionalProperties: false
      required:
        - _id
        - name
        - providerCode
        - environment
        - status
        - revision
    EposError:
      type: object
      properties:
        status:
          type: boolean
          enum:
            - false
        code:
          type: string
        message:
          type: string
        operation:
          $ref: '#/components/schemas/ApiOperation'
        operationId:
          type: string
        operationIds:
          type: array
          items:
            type: string
        retryable:
          type: boolean
        reviewRequired:
          type: boolean
      additionalProperties: true
      required:
        - status
        - code
        - message
    EposInstallmentRate:
      type: object
      properties:
        installment:
          type: integer
          minimum: 1
          maximum: 99
          description: >-
            1 tek çekimdir. Yeni Hoppa talebinde 1–12 arasında ve hesapta aktif
            olmalıdır.
        enabled:
          type: boolean
          default: true
        purchaseRate:
          type: number
          minimum: 0
          maximum: 100
          multipleOf: 0.0001
          description: >-
            Hoppa hesabında elle maliyet kaynağı olarak kullanılmaz; güncel
            alışlar ayrı oran ucundan okunur.
          nullable: true
        saleRate:
          type: number
          minimum: 0
          maximum: 100
          multipleOf: 0.0001
          description: >-
            Yüzde oranı; en fazla dört ondalık. 1.49 = %1,49; açık 0 komisyonsuz
            satıştır.
          nullable: true
      additionalProperties: false
      required:
        - installment
      oneOf:
        - properties:
            enabled:
              type: boolean
              enum:
                - false
          required:
            - enabled
        - properties:
            enabled:
              type: boolean
              enum:
                - true
            saleRate:
              type: number
              minimum: 0
              maximum: 100
              multipleOf: 0.0001
          required:
            - saleRate
    EposAccountFamilyRate:
      type: object
      properties:
        family:
          type: string
          pattern: ^[a-z0-9_-]{1,40}$
          description: Kart ailesi kodu. __proto__, prototype ve constructor kullanılamaz.
        installment:
          type: integer
          minimum: 1
          maximum: 99
          description: >-
            1 tek çekimdir. Yeni Hoppa talebinde 1–12 arasında ve hesapta aktif
            olmalıdır.
        saleRate:
          type: number
          minimum: 0
          maximum: 100
          multipleOf: 0.0001
          description: >-
            Yüzde oranı; en fazla dört ondalık. 1.49 = %1,49; açık 0 komisyonsuz
            satıştır.
      additionalProperties: false
      required:
        - family
        - installment
        - saleRate
    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
    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
    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
  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.
  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.