> 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-p2p-h2h.md). Agents can also search and read this documentation through its [MCP server](https://docs.50spays.com/~gitbook/mcp).

# PayIn P2P H2H

## Create Incoming P2P Payment

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

This method is used to create deposit orders.

**Body**

| Name                                                                                                  | Type                                                   | Description                                                                                                                                                                                                                                                                      |
| ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| method                                                                                                | string <mark style="color:red;">**(required)**</mark>  | <p>Payment method:<br><strong><code>bank\_account, iban</code></strong><code>,</code><strong><code>card, card\_transgran, sbp, sbp\_transgran, qr\_code, phone\_number, m10, sim, yandex\_tips, alipay, wechat, cliq, cliq\_iban, cliq\_alias, instapay, pix</code></strong></p> |
| amount                                                                                                | number <mark style="color:red;">**(required)**</mark>  | Payment amount                                                                                                                                                                                                                                                                   |
| currencyId                                                                                            | string <mark style="color:red;">**(required)**</mark>  | <p>Payment currency (for fiat, use the ISO 4217 3-letter code):<br><code>RUB, USD, EUR, UAH, AZN, KRW ...</code></p>                                                                                                                                                             |
| bankId                                                                                                | integer                                                | Bank identifier in our system. If specified, the account details will be issued for that specific bank.                                                                                                                                                                          |
| merchantOrderId                                                                                       | string <mark style="color:red;">**(required)**</mark>  | Unique order ID in the merchant’s system                                                                                                                                                                                                                                         |
| amountCorrectionAllow                                                                                 | boolean                                                | Enable amount correction for the order. Default: uses merchant settings.                                                                                                                                                                                                         |
| amountCorrectionMaxDiff                                                                               | number                                                 | <p>Maximum allowed amount difference (tolerance) for automatic correction.<br>Default: 20.</p>                                                                                                                                                                                   |
| ttl                                                                                                   | integer                                                | Desired order lifetime in seconds. The actual lifetime may differ.                                                                                                                                                                                                               |
| callbackUrl                                                                                           | string <mark style="color:red;">**(required)**</mark>  | Callback URL where order status updates will be sent                                                                                                                                                                                                                             |
| comment                                                                                               | string                                                 | Payment comment                                                                                                                                                                                                                                                                  |
| payerInfo                                                                                             | object <mark style="color:red;">**(required)**</mark>  | Information about the payer                                                                                                                                                                                                                                                      |
| payerInfo.userAgent                                                                                   | string                                                 | Browser User-Agent                                                                                                                                                                                                                                                               |
| payerInfo.ip                                                                                          | string <mark style="color:red;">**(required)**</mark>  | IP address                                                                                                                                                                                                                                                                       |
| payerInfo.userId                                                                                      | string <mark style="color:red;">**(required)**</mark>  | Unique user ID in the merchant’s system                                                                                                                                                                                                                                          |
| payerInfo.fingerprint                                                                                 | string                                                 | Device fingerprint                                                                                                                                                                                                                                                               |
| payerInfo.registeredAt                                                                                | integer <mark style="color:red;">**(required)**</mark> | UNIX timestamp of user registration in the merchant’s system                                                                                                                                                                                                                     |
| payerInfo.email                                                                                       | string                                                 | User email                                                                                                                                                                                                                                                                       |
| payerInfo.phone                                                                                       | string                                                 | User phone                                                                                                                                                                                                                                                                       |
| <p>payerInfo.userName<br><sub><mark style="color:red;"><strong>(deprecated)</strong></mark></sub></p> | string                                                 | <p>User full name<br><sub><mark style="color:red;">required for KRW VA and TRY, BRL</mark></sub></p>                                                                                                                                                                             |
| payerInfo.userFirstName                                                                               | string                                                 | <p>User First name<br><sub><mark style="color:red;">required for KRW VA and TRY, BRL</mark></sub></p>                                                                                                                                                                            |
| payerInfo.userLastName                                                                                | string                                                 | <p>User Last name<br><sub><mark style="color:red;">required for KRW VA and TRY, BRL</mark></sub></p>                                                                                                                                                                             |
| payerInfo.accountNumber                                                                               | string                                                 | <p>The customer’s account number from which the transfer will be made.<br><sub><mark style="color:red;">required for SYP</mark></sub></p>                                                                                                                                        |
| payerInfo.taxId                                                                                       | string                                                 | <p>Recipient's tax ID<br><sub><mark style="color:red;"><strong>required for BRL pix</strong></mark></sub></p>                                                                                                                                                                    |

**Example Request Body**

<details>

<summary>AED</summary>

```json
//for IBAN
{
    "method": "iban",
    "amount": 600,
    "currencyId": "AED",
    "merchantOrderId": "32",
    "callbackUrl": "https://webhook.site/c7e3b35d-3e0b-42e7-a46b-e51b98e865c4",
    "payerInfo": {
        "ip": "16.16.41.97",
        "userId": "1018329a36d212c6f883900db534cc5d",
        "registeredAt": 1793483030,
        "userFirstName": "BEHIYE",
        "userLastName": "SAR"
    }
}
```

</details>

<details>

<summary>AZN</summary>

```json
//for CARD
{
    "method": "card",
    "amount": 5000,
    "currencyId": "AZN",
    "merchantOrderId": "32",
    "callbackUrl": "https://webhook.site/c7e3b35d-3e0b-42e7-a46b-e51b98e865c4",
    "payerInfo": {
        "ip": "123.123.123.123",
        "userId": "user-16",
        "registeredAt": 1695057185,
        "userFirstName": "Jack",
        "userLastName": "Hoverton",
  }
}
```

</details>

<details>

<summary>BHD</summary>

```json
//for IBAN
{
    "method": "iban",
    "amount": 100,
    "currencyId": "BHD",
    "merchantOrderId": "32",
    "callbackUrl": "https://webhook.site/c7e3b35d-3e0b-42e7-a46b-e51b98e865c4",
    "payerInfo": {
        "ip": "16.16.41.97",
        "userId": "1018329a36d212c6f883900db534cc5d",
        "registeredAt": 1793483030,
        "userFirstName": "BEHIYE",
        "userLastName": "SAR"
    }
}

//for BenefitPay phone_number: bankId = 809
{
    "method": "phone_number",
    "amount": 10.14,
    "currencyId": "BHD",
    "bankId": 809,
    "merchantOrderId": "123",
    "callbackUrl": "https://callback.url/webhook",
    "payerInfo": {
        "userId": "user101",
        "registeredAt": 1695057185,
        "userFirstName": "Jack",
        "userLastName": "Hoverton"
    }
}

//for STC Pay phone_number: bankId = 810
{
    "method": "phone_number",
    "amount": 10.14,
    "currencyId": "BHD",
    "bankId": 810,
    "merchantOrderId": "123",
    "callbackUrl": "https://callback.url/webhook",
    "payerInfo": {
        "userId": "user101",
        "registeredAt": 1695057185,
        "userFirstName": "Jack",
        "userLastName": "Hoverton"
    }
}
```

</details>

<details>

<summary>BRL</summary>

```json
{
    "method": "pix",
    "amount": 1000,
    "currencyId": "BRL",
    "merchantOrderId": "32",
    "callbackUrl": "https://webhook.site/c7e3b35d-3e0b-42e7-a46b-e51b98e865c4",
    "payerInfo": {
        "ip": "176.221.227.145",
        "userId": "user-12",
        "userFirstName": "Jack",
        "userLastName": "Hoverton",
        "taxId": "03614877116",
        "registeredAt": 1695057185
    }
}
```

</details>

<details>

<summary>DZD</summary>

```json
//for BaridiMob: BANK ACCOUNT
{
    "method": "bank_account",
    "amount": 100,
    "currencyId": "DZD",
    "bankId": 866,
    "merchantOrderId": "32",
    "callbackUrl": "https://webhook.site/c7e3b35d-3e0b-42e7-a46b-e51b98e865c4",
    "payerInfo": {
        "ip": "176.221.227.145",
        "userId": "user-16",
        "userFirstName": "Jack",
        "userLastName": "Hoverton",
        "registeredAt": 1695057185
    }
}
```

</details>

<details>

<summary>EGP</summary>

```json
//for InstaPay
{
    "method": "instapay",
    "amount": 12,
    "currencyId": "EGP",
    "merchantOrderId": "123",
    "callbackUrl": "https://callback.url/webhook",
    "payerInfo": {
        "ip": "176.221.227.145",
        "userId": "userid-16",
        "userFirstName": "Jack",
        "userLastName": "Hoverton",
        "registeredAt": 1695057185
    }
}

//for Mobile Operators: Axis, Orange, Etisalat, Vodafone, Telda
// Set the bankId field to the ID of the mobile operator. For example, use bankId = 473 for Orange Cash.
{
    "method": "sim",
    "amount": 12.234,
    "currencyId": "EGP",
    "bankId": 473,
    "merchantOrderId": "123",
    "callbackUrl": "https://callback.url/webhook",
    "payerInfo": {
        "ip": "176.221.227.145",
        "userId": "userid-16",
        "userFirstName": "Jack",
        "userLastName": "Hoverton",
        "registeredAt": 1695057185
    }
}
```

</details>

<details>

<summary>JOD</summary>

```json
//for CLIQ phone
{
    "method": "cliq",
    "amount": 12.23,
    "currencyId": "JOD",
    "merchantOrderId": "123",
    "callbackUrl": "https://callback.url/webhook",
    "payerInfo": {
        "ip": "176.221.227.145",
        "userId": "user-16",
        "userFirstName": "Jack",
        "userLastName": "Hoverton",
        "registeredAt": 1695057185
    }
}

//for CLIQ IBAN
{
    "method": "cliq_iban",
    "amount": 12.23,
    "currencyId": "JOD",
    "merchantOrderId": "123",
    "callbackUrl": "https://callback.url/webhook",
    "payerInfo": {
        "ip": "176.221.227.145",
        "userId": "user-16",
        "userFirstName": "Jack",
        "userLastName": "Hoverton",
        "registeredAt": 1695057185
    }
}

//for CLIQ ALIAS
{
    "method": "cliq_alias",
    "amount": 12.23,
    "currencyId": "JOD",
    "merchantOrderId": "123",
    "callbackUrl": "https://callback.url/webhook",
    "payerInfo": {
        "ip": "176.221.227.145",
        "userId": "user-16",
        "userFirstName": "Jack",
        "userLastName": "Hoverton",
        "registeredAt": 1695057185
    }
}
```

</details>

<details>

<summary>JPY</summary>

```json
{
    "method": "bank_account",
    "amount": 10001,
    "currencyId": "JPY",
    "merchantOrderId": "32",
    "callbackUrl": "https://webhook.site/c7e3b35d-3e0b-42e7-a46b-e51b98e865c4",
    "payerInfo": {
        "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/655.1.15 (KHTML, like Gecko) Version/16.4 Mobile/148 Safari/04.1",
        "ip": "176.221.227.145",
        "userId": "user12",
        "registeredAt": 1695057185,
        "userFirstName": "山田",
        "userLastName": "太郎"
    }
}
```

</details>

<details>

<summary>KZT QR Code Kaspi</summary>

```json
{
    "method": "qr_code",
    "amount": 1002,
    "currencyId": "KZT",
    "bankId": 235,
    "merchantOrderId": "32",
    "callbackUrl": "https://webhook.site/c7e3b35d-3e0b-42e7-a46b-e51b98e865c4",
    "payerInfo": {
        "userId": "5",
        "userFirstName": "Jack",
        "userLastName": "Hoverton",
        "ip": "176.221.227.145",
        "registeredAt": 1695057185
   }
}
```

</details>

<details>

<summary>RUB</summary>

```json
//for card
{
    "method": "card",
    "amount": 5000,
    "currencyId": "RUB",
    "merchantOrderId": "32",
    "callbackUrl": "https://webhook.site/c7e3b35d-3e0b-42e7-a46b-e51b98e865c4",
    "payerInfo": {
        "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/655.1.15 (KHTML, like Gecko) Version/16.4 Mobile/148 Safari/04.1",
        "ip": "123.123.123.123",
        "userId": "84784759879",
        "fingerprint": "0515fc4c49925bb90b5ad0f887a4f73d",
        "registeredAt": 1695057185,
        "email": "user@gmail.com",
        "userName": "Popov Valentin"
  }
}

//for sbp
{
    "method": "sbp",
    "amount": 5000,
    "currencyId": "RUB",
    "merchantOrderId": "32",
    "callbackUrl": "https://webhook.site/c7e3b35d-3e0b-42e7-a46b-e51b98e865c4",
    "payerInfo": {
        "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/655.1.15 (KHTML, like Gecko) Version/16.4 Mobile/148 Safari/04.1",
        "ip": "123.123.123.123",
        "userId": "84784759879",
        "fingerprint": "0515fc4c49925bb90b5ad0f887a4f73d",
        "registeredAt": 1695057185,
        "email": "user@gmail.com",
        "userName": "Popov Valentin"
  }
}
```

</details>

<details>

<summary>SAR</summary>

```json
{
    "method": "phone_number",
    "amount": 10.23,
    "currencyId": "SAR",
    "merchantOrderId": "32",
    "callbackUrl": "https://webhook.site/c7e3b35d-3e0b-42e7-a46b-e51b98e865c4",
    "payerInfo": {
        "ip": "176.221.227.145",
        "userId": "user-12",
        "userFirstName": "Jack",
        "userLastName": "Hoverton",
        "registeredAt": 1695057185
    }
}
```

</details>

<details>

<summary>SYP</summary>

```json
{
    "method": "bank_account",
    "amount": 5000,
    "currencyId": "SYP",
    "ttl": 900,
    "merchantOrderId": "32",
    "callbackUrl": "https://webhook.site/c7e3b35d-3e0b-42e7-a46b-e51b98e865c4",
    "payerInfo": {
        "ip": "123.123.123.123",
        "userId": "128",
        "registeredAt": 1695057185,
        "userFirstName": "Jack",
        "userLastName": "Hoverton",
        "accountNumber": "4abf9a4be3a51c79884f1562"
  }
}
```

</details>

<details>

<summary>UZS</summary>

```json
//for HUMO CARD
{
    "method": "card",
    "amount": 20002,
    "currencyId": "UZS",
    "bankId": 234,
    "merchantOrderId": "32",
    "callbackUrl": "https://webhook.site/c7e3b35d-3e0b-42e7-a46b-e51b98e865c4",
    "payerInfo": {
        "userId": "5",
        "userFirstName": "Jack",
        "userLastName": "Hoverton",
        "ip": "176.221.227.145",
        "registeredAt": 1695057185
   }
}

//for UZCard 
{
    "method": "card",
    "amount": 20002,
    "currencyId": "UZS",
    "bankId": 229,
    "merchantOrderId": "32",
    "callbackUrl": "https://webhook.site/c7e3b35d-3e0b-42e7-a46b-e51b98e865c4",
    "payerInfo": {
        "userId": "5",
        "userFirstName": "Jack",
        "userLastName": "Hoverton",
        "ip": "176.221.227.145",
        "registeredAt": 1695057185
   }
}
```

</details>

**Response**

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

```json
{
    "ok": true,
    "order": {
        "orderUid": "7b3bada5-00d3-40fd-bb37-14929bf1be26",
        "accountNumber": "5536914122231982",
        "accountName": "Michel B",
        "bankName": "ALFA",
        "amountRequested": 5000,
        "currencyIdRequested": "RUB",
        "ttl": 600,
        "expireAt": 1738179283
    }
}

//response with qrCode
{
  "ok": true,
  "order": {
    "orderUid": "680b96f8-c1e2-465d-a6e8-3b598f4c0718",
    "amountRequested": 2002,
    "currencyIdRequested": "RUB",
    "exchangeRate": 84.02,
    "ttl": 900,
    "expireAt": 1786009173,
    "accountNumber": null,
    "accountName": "Test",
    "bankName": "Kaspi",
    "qrCode": "data:image/png;base64,iVBOR……ggg==",
    "paymentLink": "https://payment.url.com"
  }
}
```

| Name                | Type    | Description                                                                                                                                                                                   |
| ------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| orderUid            | string  | Order UID in our system                                                                                                                                                                       |
| accountNumber       | string  | The account number where the client should transfer funds                                                                                                                                     |
| accountName         | string  | Account holder name                                                                                                                                                                           |
| bankName            | string  | Bank name for the payment                                                                                                                                                                     |
| bankBranch          | string  | <p>Bank branch<br><sub><mark style="color:red;">used for JPY</mark></sub></p>                                                                                                                 |
| qrCode              | string  | Base64-encoded QR code (if present, this field must be shown to the user)                                                                                                                     |
| qrCodeData          | string  | Raw QR Code data                                                                                                                                                                              |
| paymentLink         | string  | Payment URL (if present, this field must be shown to the user as a button)                                                                                                                    |
| amountRequested     | number  | Amount the client should send                                                                                                                                                                 |
| currencyIdRequested | string  | <p>Payment currency:<br><code>RUB, USD, EUR, UAH, AZN ...</code></p>                                                                                                                          |
| exchangeRate        | number  | <p>Exchange rate used to convert the paid currency into the final settlement currency.<br>The field may be null or omitted if both currencies are the same and no conversion is required.</p> |
| ttl                 | integer | Order time-to-live in seconds                                                                                                                                                                 |
| expireAt            | integer | Expiration time of the order in UNIX timestamp                                                                                                                                                |
| {% endtab %}        |         |                                                                                                                                                                                               |

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

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

{% endcode %}

[**All Error Codes**](https://docs.50spays.com/tr/reference/error-codes.md)
{% 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-p2p-h2h.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.
