Skip to main content
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"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.payments.sardine.ai/llms.txt

Use this file to discover all available pages before exploring further.

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

orders
object[]