Skip to main content
GET
/
orders
Get User Orders
curl --request GET \
  --url https://api.sandbox.sardine.ai/v1/orders
{
  "orders": [
    {
      "orderId": "<string>",
      "fromCurrency": "<string>",
      "toCurrency": "<string>",
      "amount": 123,
      "status": "<string>",
      "createdAt": "2023-11-07T05:31:56Z"
    }
  ]
}

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[]