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

# Provizyon Kapama (Post-Auth)

> PreAuth işlemi için PostAuth işlemi gerçekleştirir

## 🔒 Provizyon Kapama (Post-Auth)

PreAuth (ön provizyon) işlemi için PostAuth (provizyon kapama) işlemi gerçekleştirir.

**`POST`** `https://api-test.fincraft.com.tr/api/v1/payments/post-auth`

## Request Body

```json theme={null}
{
  "referenceId": "123e4567-e89b-12d3-a456-426614174000",
  "amount": 100.50
}
```

## Request Parametreleri

| Parametre     | Tip    | Zorunlu | Validation                        | Açıklama                   |
| ------------- | ------ | ------- | --------------------------------- | -------------------------- |
| `referenceId` | String | Evet    | Banka sipariş ID'si (UUID format) |                            |
| `amount`      | Double | Evet    | @NotNull, @DecimalMin(0.01)       | Kapanacak provizyon tutarı |

## Response Body

```json theme={null}
{
    "response": {
        "id": "25282KK7J07041188",
        "createdDate": "2025-10-09 10:10:57",
        "amount": 405.0,
        "source": "API",
        "paymentStatus": "SUCCESS",
        "transactionType": "POSTAUTH",
        "authCode": "P63190",
        "hostReferenceNo": "528200380135",
        "transactionId": "25282KK7J07041188",
        "orderId": "71357c9d-2df5-44cb-95e4-fb82ffcd9e6e"
    }
}
```

## cURL Örneği

```bash theme={null}
curl -X POST https://api-test.fincraft.com.tr/api/v1/payments/post-auth \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "referenceId": "123e4567-e89b-12d3-a456-426614174000",
    "amount": 100.50
  }'
```
