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​
| Parameter | Type | In | Description |
|---|---|---|---|
status | string | query | Filter by order status (e.g. "pending", "completed", "cancelled") |
limit | integer | query | Maximum number of orders to return (default: 20) |
offset | integer | query | Number 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​
| Status | Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Missing or invalid token |