Get the list of marketplace opportunity forecasts with filtering options.
Query parameters
-
The UUID of the merchant to filter forecasts by
-
Filter by specific forecast ID
-
Minimum profit amount to filter by (uses risk-adjusted high forecast)
Minimum value is
0. -
Maximum margin percentage to filter by
Minimum value is
0, maximum value is100. -
Filter by marketplace catalog item ID
-
Filter by supplier item cost ID
-
The page number to retrieve
Minimum value is
1. -
The number of results to return per page
Minimum value is
1, maximum value is100.
GET
/2024-09/forecasting/opportunity-forecasts
curl \
--request GET 'https://app.merchanthq.com/api/2024-09/forecasting/opportunity-forecasts?merchant_id=1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"links": {
"first": "https://app.merchanthq.com/api/2024-09/merchants?page=1",
"last": "https://app.merchanthq.com/api/2024-09/merchants?page=10",
"prev": "https://app.merchanthq.com/api/2024-09/merchants?page=1",
"next": "https://app.merchanthq.com/api/2024-09/merchants?page=3"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 10,
"path": "https://app.merchanthq.com/api/2024-09/merchants",
"per_page": 10,
"to": 10,
"total": 20
},
"data": [
{
"id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"marketplace_catalog_item_id": "1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"supplier_item_cost_id": "2e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4",
"thirty_day_profit_forecast_high": {
"value": 42.0,
"currency": "string"
},
"thirty_day_profit_forecast_low": {
"value": 42.0,
"currency": "string"
},
"risk_score": 35,
"risk_factors": [
"limited_price_history"
],
"risk_adjusted_thirty_day_profit_forecast_high": {
"value": 42.0,
"currency": "string"
},
"risk_adjusted_thirty_day_profit_forecast_low": {
"value": 42.0,
"currency": "string"
},
"calculated_at": "2025-01-10T10:37:11Z",
"type": "beat_lowest_recent_price",
"forecast_model": "beat_lowest_recent_price_opportunity_forecast_v150725",
"forecast_inputs": {},
"created_at": "2025-01-10T10:37:11Z",
"updated_at": "2025-01-10T10:37:11Z"
}
]
}
Response examples (401)
{
"message": "Unauthorized"
}
Response examples (404)
{
"message": "Not found"
}