younifyd
Menu

Get Top Sellers Report

Retrieve top sellers report

GET/reports/top_sellers

Use it in a workflow

  1. Add a step and choose the WooCommerce connector.
  2. Pick the Get Top Sellers Report action (under Reports).
  3. Fill in the fields below, then reference the result from later steps as {{getTopSellersReport.response.data}}.

Request

Query parameters

contextstring

Scope under which the request is made; determines fields present in response. Default is view.

Default "view"

periodstring

Report period. Default is week. Options: week, month, last_month, year

One ofweekmonthlast_monthyear

date_minstring

Return sales for a specific start date (YYYY-MM-DD)

date_maxstring

Return sales for a specific end date (YYYY-MM-DD)

Response

Returns 200 with a array<object>. Read it in later steps with {{getTopSellersReport.response.data.<field>}}.

Need more? See the WooCommerce guide for connection setup and behaviour shared by every action.