Перейти к основному содержимому

GET /api/v1/p2p/orders/my

Retrieve all P2P orders where the authenticated user is either the buyer or the seller.

Authentication

Required. Pass a Bearer token in the Authorization header.

Request

ParameterTypeInDescription
statusstringqueryFilter by order status (e.g. "pending", "completed", "cancelled")
limitintegerqueryMaximum number of orders to return (default: 20)
offsetintegerqueryNumber of orders to skip for pagination (default: 0)

Example

curl "https://example.com/api/v1/p2p/orders/my?status=pending&limit=10" \
-H "Authorization: Bearer <token>"

Response

200 OK

Returns an object with orders array of P2POrder objects.

{
"orders": [
{
"id": 101,
"ad_id": 42,
"buyer_id": 15,
"seller_id": 7,
"usdt_amount": 500000,
"fiat_amount": 500000,
"fiat_currency": "RUB",
"exchange_rate": 100,
"payment_method": "sber",
"status": "pending",
"frozen_balance": 500000,
"operator_called": false,
"created_at": "2026-04-04T12:05:00Z",
"updated_at": "2026-04-04T12:05:00Z"
}
]
}

Errors

StatusCodeDescription
401UNAUTHORIZEDMissing or invalid token