GET /api/v2/storefront/audit-logs
Returns the storefront activity feed: recent configuration and inventory-source changes, with the actor and before/after values attributed per row. Filter by resource type, inventory source, and date range.
Request
curl
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
startDate | string | No | ISO timestamp; include logs at or after this time |
endDate | string | No | ISO timestamp; include logs at or before this time |
inventorySourceId | string | No | Filter to a single storefront inventory source by source ID |
resourceTypes | enum | array | No | STOREFRONT or STOREFRONT_INVENTORY_SOURCE. Defaults to all storefront resource types |
take | integer | No | Results to return, max 500 (default 50) |
skip | integer | No | Results to skip for pagination (default 0) |
Response
| Field | Type | Notes |
|---|---|---|
logs[] | array | Audit rows, newest first |
logs[].action | string | The change applied (e.g. CREATE, UPDATE, DELETE) |
logs[].resourceType | string | STOREFRONT or STOREFRONT_INVENTORY_SOURCE |
logs[].resourceId / resourceName | string | null | The affected resource |
logs[].userId / userEmail / userName | mixed | null | Actor when a user made the change |
logs[].serviceTokenId / serviceTokenName | mixed | null | Actor when a service token made the change |
logs[].parameters | object | null | Request parameters captured for the action |
logs[].changes | object | null | Before/after values |
logs[].description | string | Human-readable summary |
total | integer | Total matching rows (for pagination) |
Errors
400 VALIDATION_ERROR— malformed date ortakeover500.401 UNAUTHORIZED— missing or invalid API key.
Related
Activity tasks
All activity operations
Inventory sources
The sources these logs track
Get reporting metrics
Delivery metrics