/shop/yield-insightsGet yield insights
Returns a site-level summary of how yield pricing is set up and performing over a recent reporting period: the opportunity for demand-based pricing (utilisation, peak and quiet spells) and what yield rules have earned since they were switched on.
The four state flags (has_occupancy_data, is_yield_enabled,
opportunities.has_data, performance.has_data) are always
present, so a dashboard can decide which panels to render before
reading any stats. The stat fields themselves are null until the
underlying calculation has data to work from.
Monetary amounts are integers in the minor units of the top-level
currency — format them client-side.
For a per-sale breakdown of every price a yield rule moved, use the yielded sales report.
Query parameters
The site to return yield insights for.
The reporting period to calculate results over, ending now. Defaults to
last_30_days. Shared by the yield insights endpoints so a dashboard can request every panel over the same window.Possible values:last_30_dayslast_60_dayslast_90_days
Responses
- 200
The yield insights were successfully retrieved.
- 401
The user is unauthenticated
- 403
The authenticated user does not have permission.
- 422
The request didn't pass validation