read
analytics

The Profit page as rows: profit per day or per ISO week (keyed on its Monday) for a date range, after ad spend, transact

Changed on

The Profit page as rows: profit per day or per ISO week (keyed on its Monday) for a date range, after ad spend, transaction costs, refunds and VAT, with ROAS against break-even ROAS. Defaults to the last 30 days; a range is at most 731 days. Amounts are in the store's currency (currency). The first page carries totals over the whole range (a total is null when any row in it is), the sum the page shows. markets is orders per market over the range. With market, every row is that market's share (market_scope: 'market'): ad spend has no market, so ad_spend, profit and roas are null, unallocated names ad_spend, profit_before_ad_spend is the market's and store_ad_spend the whole store's. A day whose ad spend could not be read names the sources in spend_unread_sources. Paged: pass page.next_cursor back as cursor while page.has_more is true.

post/api/v1/tools/performance_profit

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

Request body

object required
grain, 'day' | 'week'

Default day.

date_from, string date
date_to, string date
market, string

ISO country code; rows become that market's share and markets narrows to it.

cursor, string

The page.next_cursor of the previous page.

limit, integer

Page size, default 25.

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