read
promotions

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

Changed on

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
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopespromotions: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_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision