Skip to main content
GET
https://api.usegately.com
/
api
/
v1
/
shop
/
orders
curl -X GET "https://api.usegately.com/api/v1/shop/orders" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-User-ID: user_123"
{
  "success": true,
  "orders": [
    {
      "id": "order_123",
      "status": "completed",
      "total": 99.00,
      "currency": "usd",
      "items": [
        {
          "product_id": "prod_456",
          "quantity": 1,
          "price": 99.00
        }
      ],
      "created_at": "2024-01-15T10:30:00Z"
    }
  ]
}
Retrieve order history for a user.
X-User-ID
string
required
The user ID to get orders for

Response

success
boolean
Whether the request was successful
orders
array
Array of order objects
curl -X GET "https://api.usegately.com/api/v1/shop/orders" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-User-ID: user_123"
{
  "success": true,
  "orders": [
    {
      "id": "order_123",
      "status": "completed",
      "total": 99.00,
      "currency": "usd",
      "items": [
        {
          "product_id": "prod_456",
          "quantity": 1,
          "price": 99.00
        }
      ],
      "created_at": "2024-01-15T10:30:00Z"
    }
  ]
}