> For the complete documentation index, see [llms.txt](https://docs.iyzico.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.iyzico.com/urunler/ceppos-app2app/app2app-v3/iptal-iade.md).

# İptal / İade

Tamamlanmış bir ödeme için `/payment/refund` endpoint'ini kullanabilirsiniz. `refundAmount` alanını doldurursanız kısmi iade, boş bırakırsanız tam iade gerçekleştirilir. Süreç, ödeme başlatmaya benzer şekilde işler: dönen `deepLinkUrl` üzerinden müşteri onayı alınır ve sonuç callback URL'inize iletilir.

## Ödeme İade İşlemi

> Tamamlanmış bir ödemenin tamamını veya bir kısmını iade etmek için kullanılır.

```json
{"openapi":"3.0.3","info":{"title":"iyzico In-Store API - Payment Refund","version":"3.0"},"servers":[{"url":"https://sandbox-api.iyzipay.com/v3/in-store","description":"Sandbox Ortamı"},{"url":"https://api.iyzipay.com/v3/in-store","description":"Canlı (Production) Ortam"}],"paths":{"/payment/refund":{"post":{"summary":"Ödeme İade İşlemi","description":"Tamamlanmış bir ödemenin tamamını veya bir kısmını iade etmek için kullanılır.","operationId":"refundPayment","parameters":[{"name":"x-api-key","in":"header","required":true,"description":"iyzico panelinizdeki CepPOS API anahtarı","schema":{"type":"string"}},{"name":"x-secret-key","in":"header","required":true,"description":"iyzico panelinizdeki CepPOS güvenlik anahtarı","schema":{"type":"string"}},{"name":"x-merchant-id","in":"header","required":true,"description":"iyzico hesabınızın üye işyeri numarası","schema":{"type":"string"}},{"name":"x-callback-url","in":"header","required":true,"description":"İşlem sonucu bildirimi için callback URL","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundRequest"}}}},"responses":{"200":{"description":"İade talebi başarıyla alındı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundResponse"}}}},"400":{"description":"Geçersiz parametre veya iade edilemez durum","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"RefundRequest":{"type":"object","required":["userId","paymentId"],"properties":{"userId":{"type":"string","description":"İşlemi başlatan kullanıcı ID'si."},"paymentId":{"type":"long","description":"İade edilecek ödemenin ID'si."},"refundPrice":{"type":"BigDecimal","format":"float","description":"İade edilecek tutar. Boş bırakılırsa eğer tam iade yapılır."}}},"RefundResponse":{"type":"object","properties":{"status":{"type":"string","description":"İşlemin sonucunu gösterir. Başarılı durumlarda \"success\" döner."},"deepLinkUrl":{"type":"string","description":"Müşteriyi iade onay ekranına yönlendiren deep link URL'i. İade akışı bu link üzerinden tamamlanır."},"paymentSessionToken":{"type":"string","description":"İade oturumuna özgü token. Callback sonrasında şifre çözmek için kullanılır."},"paymentId":{"type":"Long","description":"İade işlemi başlatılan orijinal ödemenin kimliği."}}},"ErrorResponse":{"type":"object","properties":{"status":{"type":"string"},"errorCode":{"type":"string"},"errorMessage":{"type":"string"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.iyzico.com/urunler/ceppos-app2app/app2app-v3/iptal-iade.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
