read
orders

Returns a summary of recent orders aggregated from performance data. Includes total orders, total revenue, average order

Changed on

Returns a summary of recent orders aggregated from performance data. Includes total orders, total revenue, average order value, refund amount, the store's ad spend over the window (the whole ad bill, every platform and campaign, shop currency) with blended ROAS (revenue / ad spend of the same days; null when spend_withheld, with spend_note saying why; when the bill has not reported the window's last days, roas_from/roas_to name the days it covers and roas_note says so), and the top 5 products by order count. Use when the user asks about sales volume, order trends, or top-selling products.

post/api/v1/tools/get_orders_summary

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
      Scopesorders:read

Request body

object required
window_days, integer

Number of days to look back (default 14, max 90).

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