GET
/
orders
Get User Orders
curl --request GET \
  --url https://api.sandbox.sardine.ai/v1/orders
{
  "orders": [
    {
      "orderId": "OFF-20250417-001",
      "fromCurrency": "ETH",
      "toCurrency": "USD",
      "amount": 0.05,
      "status": "pending",
      "createdAt": "2025-04-17T10:00:00Z"
    },
    {
      "orderId": "OFF-20250416-002",
      "fromCurrency": "BTC",
      "toCurrency": "USD",
      "amount": 0.2,
      "status": "completed",
      "createdAt": "2025-04-16T14:30:00Z"
    }
  ]
}

Query Parameters

userId
string
required

The ID of the user whose orders are being retrieved

status
string

Filter orders by status (e.g., pending, completed)

fromDate
string<date-time>

Filter orders created after this date (ISO 8601 format)

toDate
string<date-time>

Filter orders created before this date (ISO 8601 format)

Response

200 - application/json

Successfully retrieved user orders

The response is of type object.