POST
/v1/inventory/analyticsPOST /v1/inventory/analytics
Scopes: inventory:analytics:read
Requires scope: inventory:analytics:read.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
item_ids | integer<int32>[] | no |
Response (200)
| Field | Type | Required | Description |
|---|---|---|---|
<root> | ItemAnalyticsResponse[] | no |
Examples
import { SolidCommerceClient } from '@solidcommerce/sdk';
const client = new SolidCommerceClient({
apiKey: process.env.SOLIDCOMMERCE_API_KEY!,
});
const { data, error } = await client.raw.POST('/v1/inventory/analytics', {
// params: { path: { id: '...' }, query: { limit: 25 } },
// body: { /* request body */ },
});
if (error) throw error;
console.log(data);