> For the complete documentation index, see [llms.txt](https://help.rezonuniversal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.rezonuniversal.com/metody-api/zhd/reestr-vozvratov.md).

# Рєстр повернень

## Railway returns

<mark style="color:blue;">`GET`</mark> `/railway/returns`

Возвращает ЖД возвраты за указанный период

#### Path Parameters

| Name     | Type   | Description                                                   |
| -------- | ------ | ------------------------------------------------------------- |
| t        | string | json или xml (по-умолчанию)                                   |
| key      | string | aaaa                                                          |
| token    | string | aaaabbbbccccddddeeeeffffddddaaaa                              |
| dateFrom | string | Период "с" YYYY-MM-DDTHH:MM:SS, например 2015-03-29T21:12:00  |
| dateTo   | string | Период "по" YYYY-MM-DDTHH:MM:SS, например 2015-03-29T21:12:00 |

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

```markup
<Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<StatusCode>200</StatusCode>
<Status>OK</Status>
    <Data xsi:type="ArrayOfRailReturns">
        <RailReturns>
            <uio>000B0DC9-9999BC99</uio>
            <created>2018-01-16T17:58:18</created>
            <return_date>2018-01-01T00:00:00</return_date>
            <ordernumber>УУУ-Ю1-9999999-9999</ordernumber>
            <returned_amt>200.00</returned_amt>
            <currency>UAH</currency>
            <status>3</status>
        </RailReturns>
    </Data>
</Response>
```

{% endtab %}

{% tab title="JSON" %}

```markup
{
    Data: [
        {
            created: "2018-01-16T17:58:18",
            currency: "UAH",
            ordernumber: "УУУ-Ю1-9999999-9999",
            return_date: "2018-01-01T00:00:00",
            returned_amt: 200,
            status: 3,
            uio: "000B0DC9-9999BC99"
        }
    ],
    Error: null,
    Status: "OK",
    StatusCode: 200
}
```

{% endtab %}
{% endtabs %}
{% endtab %}
{% endtabs %}

### Пример запроса

<https://domain.rezonuniversal.com/api/railway/returns?key=aaaa\\&token=aaaabbbbccccddddeeeeffffddddaaaa\\&t=json\\&dateFrom=2017-01-01\\&dateTo=2018-01-01>

### Структура ответа RailReturns

| Параметр      | Описание                                                         |
| ------------- | ---------------------------------------------------------------- |
| uio           | уникальный идентификатор заказа                                  |
| created       | дата создания заказа                                             |
| return\_date  | дата возврата заказа                                             |
| ordernumber   | номер заказа                                                     |
| returned\_amt | сумма возврата                                                   |
| currency      | валюта возврата                                                  |
| status        | статус возврата (3 - возвращенный, 4 - возвращенный через кассу) |


---

# 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 dynamically by asking a question.

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

```
GET https://help.rezonuniversal.com/metody-api/zhd/reestr-vozvratov.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.
