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

# List

## Order List

<mark style="color:green;">`POST`</mark> /api/merchant/orders

This method returns a list of merchant orders with filtering and pagination options.

#### Request Body (Filter Parameters)

<table><thead><tr><th width="263">Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>action</td><td>string</td><td>Order action:<br><code>payIn, payOut</code></td></tr><tr><td>status</td><td>string</td><td>Order status:<br><code>wait_payment, paid, failed, error</code></td></tr><tr><td>from</td><td>integer</td><td>Start time (inclusive), in Unix timestamp format</td></tr><tr><td>to</td><td>integer</td><td>End time (inclusive), in Unix timestamp format</td></tr><tr><td>limit</td><td>integer</td><td>Number of records to return (max 200)</td></tr><tr><td>offset</td><td>integer</td><td>Offset for pagination</td></tr></tbody></table>

**Example Request Body**

```json
{
    "action": "payIn",
    "status":"failed",
    "from": 1737927321,
    "limit": 100,
    "offset": 0
}
```

**Response**

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

```json
{
    "ok": true,
    "orders": [
        {
            "orderUid": "c8c45f60-9ba6-4e2c-b7ca-59225f24f0a6",
            "createdAt": 1738187600,
            "action": "payIn",
            "paymentType": "p2p",
            "paymentMethod": "card",
            "merchantOrderId": "36",
            "expireAt": null,
            "status": "failed",
            "currencyIdRequested": "RUB",
            "amountRequested": 5000,
            "currencyIdPaid": null,
            "amountPaid": 0,
            "amountPaidAfterFee": 0,
            "fee": 0,
            "currencyIdPaidFinal": null,
            "amountPaidFinal": 0,
            "amountPaidFinalAfterFee": 0,
            "feeFinal": 0,
            "accountName": null,
            "accountNumber": null,
            "bankName": null,
        },
        .....
    ],
    "meta": {
        "totalCount": 5
    }
}
```

| Name                    | Type    | Description                                                                                        |
| ----------------------- | ------- | -------------------------------------------------------------------------------------------------- |
| orderUid                | string  | Unique order ID in our system                                                                      |
| createdAt               | integer | Order creation time (Unix timestamp)                                                               |
| action                  | string  | <p>Order action:<br><code>payIn, payOut</code></p>                                                 |
| paymentType             | string  | <p>Payment type:<br><code>p2p, ecom</code></p>                                                     |
| paymentMethod           | string  | <p>Payment method:<br><strong><code>card, card\_transgran, sbp, sbp\_transgran</code></strong></p> |
| merchantOrderId         | string  | Unique order ID in the merchant’s system                                                           |
| expireAt                | integer | Order expiration time (Unix timestamp)                                                             |
| status                  | string  | <p>Order status:<br><code>wait\_payment, paid, failed, error</code></p>                            |
| currencyIdRequested     | string  | <p>Requested currency:<br><code>RUB, USD, EUR, UAH...</code></p>                                   |
| amountRequested         | number  | Amount the customer was supposed to send                                                           |
| currencyIdPaid          | string  | <p>Currency used by the customer to pay:<br><code>RUB, USD, EUR, UAH...</code></p>                 |
| amountPaid              | number  | Amount sent by the customer                                                                        |
| amountPaidAfterFee      | number  | Amount after service fee                                                                           |
| fee                     | number  | Service fee                                                                                        |
| currencyIdPaidFinal     | string  | <p>Final payment currency:<br><code>RUB, USD, EUR, UAH...</code></p>                               |
| amountPaidFinal         | number  | Final amount sent by the customer                                                                  |
| amountPaidFinalAfterFee | number  | Final amount after service fee                                                                     |
| feeFinal                | number  | Final service fee                                                                                  |
| accountNumber           | string  | Account number where the customer should transfer funds                                            |
| accountName             | string  | Name of the account holder                                                                         |
| bankName                | string  | Name of the bank                                                                                   |
| {% endtab %}            |         |                                                                                                    |

{% tab title="4xx/5xx Errors" %}

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

[**All Error Codes**](https://docs.50spays.com/kk/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/kk/orders/order-list.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.
