logoSellhub
Logs
background
Sellhub Docs
Sellhub Docs
Store Audit Logs
GET
/store/logs

Authorization

Authorization<token>

In: header

Query Parameters

idstring

Generic ID filter (e.g., product, bundle, coupon, etc.)

logTypestring

Type of Log (e.g., create, view, update, delete)

sellerIdstring

Seller ID

createdAtFromstring

Earliest creation date (ISO 8601 datetime)

Format: "date-time"
createdAtTostring

Latest creation date (ISO 8601 datetime)

Format: "date-time"
curl -X GET "https://dash.sellhub.cx/api/sellhub/store/logs?id=%3Cstring%3E&logType=%3Cstring%3E&sellerId=%3Cstring%3E&createdAtFrom=2019-08-24T14%3A15%3A22Z&createdAtTo=2019-08-24T14%3A15%3A22Z" \
  -H "Authorization: <token>"

A list of audit logs

{
  "data": {
    "auditLogs": [
      {
        "id": "log_123",
        "logType": "product_update",
        "description": "Updated product 'Awesome Widget' price from $19.99 to $24.99",
        "storeId": "store_456",
        "createdAt": "2023-06-15T14:30:00Z",
        "sellerName": "John Doe",
        "sellerEmail": "john@example.com"
      }
    ]
  }
}