> For the complete documentation index, see [llms.txt](https://docs.50spays.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.50spays.com/tr/payin/payin-confirm.md). Agents can also search and read this documentation through its [MCP server](https://docs.50spays.com/~gitbook/mcp).

# Onay

## Confirm Payment

<mark style="color:green;">`POST`</mark> /api/merchant/h2h/payin/confirm

This method confirms a previously created deposit (pay-in) order. Call it after the payer has completed the payment so the gateway is notified and the order can proceed.

**Body**

<table><thead><tr><th>Name</th><th width="249">Type</th><th>Description</th></tr></thead><tbody><tr><td>orderUid</td><td>string <mark style="color:red;"><strong>(required)</strong></mark></td><td>Order UID in our system</td></tr><tr><td>paymentData</td><td>object</td><td>Extra data required to confirm the order, as key–value pairs. The required keys depend on the order's currency and payment method.</td></tr><tr><td>paymentData.transactionId</td><td>string</td><td>Payment transaction id.<br><sub><mark style="color:red;">required for SYP bank_account</mark></sub></td></tr></tbody></table>

**Example Request Body**

{% tabs %}
{% tab title="Default request" %}
{% code overflow="wrap" %}

```json
{ 
    "orderUid": "0e194cc8-cfb5-459c-a1a1-21903c2066d7"
}
```

{% endcode %}
{% endtab %}

{% tab title="SYP bank\_account" %}

```json
{
    "orderUid": "0e194cc8-cfb5-459c-a1a1-21903c2066d7", 
    "paymentData": {
        "transactionId": "12221"
    }
}
```

{% endtab %}
{% endtabs %}

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
    "ok": true
}
```

{% endtab %}

{% tab title="4xx/5xx" %}
{% code fullWidth="true" %}

```json
{
    "ok": false,
    "code": 402,
    "message": "human readable error message"
}
```

{% endcode %}

**All Error Codes**
{% endtab %}
{% endtabs %}


---

# 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.50spays.com/tr/payin/payin-confirm.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.
