# Создание инвойс

## Создание инвойс

<mark style="color:orange;">`POST`</mark> `/claim/invoice/`

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Body**

<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th data-type="checkbox">Обязательный</th></tr></thead><tbody><tr><td><code>email</code></td><td>string</td><td>Email пользователя</td><td>true</td></tr><tr><td><code>fromPs</code></td><td>uint</td><td>Отдача платежной системы</td><td>true</td></tr><tr><td><code>fromSumma</code></td><td>float</td><td>Сумма отдачи</td><td>true</td></tr><tr><td><code>toSumma</code></td><td>float</td><td>Сумма получения</td><td>true</td></tr></tbody></table>

**Response**

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

```json
{
    "claim": "65bb780c-f398-4372-a243-16966f7198cf"
}
```

{% endtab %}

{% tab title="400" %}

```json
{
    "email": [
        "Введите правильный адрес электронной почты."
    ],
    "toSumma": [
        "Не хватает 499782714319.24 rub в резервах для обмена!"
    ]
}

// non fields ошибки
{
    "nonFieldErrors": [
        "Такого направления обмена нет"
    ]
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://exchangerretp4lrpg6lp2.mikroservis.one/zayavki/invoisy/sozdanie-invois.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
