> 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/odeme-baslatma.md).

# Ödeme Başlatma

Ödeme süreci `/payment/init` endpoint'i ile başlar. Başarılı bir istek, müşteriyi iyzico mobil uygulamasına yönlendiren bir `deepLinkUrl` ve sonraki adımda şifre çözmek için kullanılacak bir `paymentSessionToken` döner. Müşteri uygulamayı açıp ödemeyi onayladıktan sonra sonuç, sizin belirlediğiniz `x-callback-url` adresine şifreli olarak iletilir.

## Ödeme Başlatma

> Mağaza içi bir ödeme işlemini başlatmak için kullanılır.

```json
{"openapi":"3.0.3","info":{"title":"iyzico In-Store API - Payment Init","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/init":{"post":{"summary":"Ödeme Başlatma","description":"Mağaza içi bir ödeme işlemini başlatmak için kullanılır.","operationId":"initPayment","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":"Sorgulanacak ödemenin ID'si","schema":{"type":"Long"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitRequest"}}}},"responses":{"200":{"description":"Ödeme başarıyla başlatıldı","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitResponse"}}}},"400":{"description":"Hatalı istek veya doğrulama hatası","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"InitRequest":{"type":"object","required":["userId","orderId","amount"],"properties":{"userId":{"type":"number","format":"float","description":"Ödemeyi yapacak kullanıcı ID'si"},"orderId":{"type":"string","description":"Sipariş referans numarası"},"amount":{"type":"string","description":"Ödeme tutarı"}}},"InitResponse":{"type":"object","properties":{"status":{"type":"string","description":"İşlemin sonucunu gösterir. Başarılı durumlarda \"success\" döner."},"deepLinkUrl":{"type":"string","description":"Ödeme oturumuna özgü token. Ödeme tamamlandıktan sonra /crypt/decrypt adımında şifre çözmek için kullanılır."},"paymentSessionToken":{"type":"string","description":"Müşterinin iyzico mobil uygulamasına yönlendirileceği deep link URL'i. Bu link açıldığında uygulama ödeme ekranını başlatır."},"paymentId":{"type":"string","description":"iyzico tarafından atanan benzersiz ödeme kimliği. İade ve sorgulama işlemlerinde referans olarak kullanılır."}}},"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/odeme-baslatma.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.
