Get products in demand report
Retrieve a paginated list of product variants with demand metrics based on customer intents. Returns aggregated data showing total intents, pending intents, and last requested date for each variant. Results can be filtered by date range and sorted by different metrics.
Filter by start date (YYYY-MM-DD). Filters based on last_requested_at field.
Filter by end date (YYYY-MM-DD). Filters based on last_requested_at field.
Sort results by pending intents, total intents, or last requested date
pendingPossible values: Sort direction (ascending or descending)
descPossible values: Page number for pagination
1Number of items per page (maximum 500)
25Filter by intent type (used when loading product data)
API key for authentication
A paginated list of product variants with demand metrics
Bad request - invalid parameters
Unauthorized
GET /api/v1/external/intents/products_in_demand HTTP/1.1
Host: app.stoqapp.com
X-Auth-Token: text
Accept: */*
{
"product_variants_in_demand": [
{
"shopify_variant_id": 123456789,
"shopify_product_id": 987654321,
"shopify_inventory_item_id": 555666777,
"total": 45,
"pending": 23,
"last_requested_at": "2024-01-15T10:30:00Z",
"product_data": {
"id": 987654321,
"title": "Sample Product",
"vendor": "Sample Vendor",
"variants": [
{
"id": 123456789,
"title": "Medium / Red",
"sku": "SAMPLE-M-RED"
}
]
},
"variant_data": {
"id": 123456789,
"title": "Medium / Red",
"sku": "SAMPLE-M-RED"
}
}
],
"page": 1,
"per_page": 25,
"has_next_page": false,
"has_prev_page": false
}Last updated