read

Returns recent discount campaigns and their measured outcomes. Shows which products were discounted, the discount percen

Returns recent discount campaigns and their measured outcomes. Shows which products were discounted, the discount percentage, conversion lift, and whether the discount is still active. Use when the user asks about discounts, promotions, pricing experiments, or their results.

post/api/v1/tools/get_discount_history

Request

  • Base URL: https://app.magistry.io
  • URL: https://app.magistry.io/api/v1/tools/get_discount_history
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://app.magistry.io/api/oauth/authorize, token URL https://app.magistry.io/api/oauth/token, scopes: promotions:read)

Request body

window_daysinteger

How many days back to look (default 30, max 90).

active_onlyboolean

When true, only return currently active discounts (ended_at is null). Default false.

Response

Tool result

okboolean required
resultunknown required

Changes

No recorded changes to this operation across all 3 revisions of this API.