read
promotions
Returns recent discount campaigns and their measured outcomes. Shows which products were discounted, the discount percen
Changed onReturns 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 URLhttps://app.magistry.io
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://app.magistry.io/api/oauth/authorizeToken URLhttps://app.magistry.io/api/oauth/tokenScopespromotions:read
Request body
object required
window_days, integer
How many days back to look (default 30, max 90).
active_only, boolean
When true, only return currently active discounts (ended_at is null). Default false.
Response
Tool result
object required
ok, boolean required
result, unknown required
Changes
- warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status - warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status - warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status
11 more changes in this revision
- warning