Authorizations
- Authorization string required header
Generate a store API key from the store's Metorik API settings in Metorik, and choose the scopes needed for the endpoints you want to call.
Query Parameters
- end_date string required
End date in the store timezone using YYYY-MM-DD format. Example: 2026-02-28
- order_by string enum
Sort field. Example: variation_created_at
- order_dir string enum
Sort direction. Example: desc
- order_filters string
Optional JSON-encoded array of order-level filters applied before calculating variation sales. See Order Filters Reference. Example: [{"field":"billing_address_country","operator":"eq","value":"US"}]
- page integer
Page number for pagination. Example: 1
- per_page integer
Number of variations per page. Min 1, max 100. Example: 10
- search string
Search term to filter variations. Example: medium
- start_date string required
Start date in the store timezone using YYYY-MM-DD format. Example: 2026-02-01
Headers
- Accept string required
Response format header. Example: application/json
Response
application/json- data[] object array
+ - Show Child Attributes
- variation_id integer
- product_id integer
- sku string
- name string
- atts[] object array
+ - Show Child Attributes
- name string
- option string
- current_price integer
- regular_price integer
- sale_price integer
- stock_quantity integer
- in_stock boolean
- gross_items_sold integer
- items_refunded integer
- net_items_sold integer
- gross_sales integer
- total_tax number
- total_discounted integer
- total_refunds integer
- net_orders integer
- net_sales integer
- first_sold string
- last_sold string
- variation_created_at string
- variation_updated_at string
- pagination object
+ - Show Child Attributes
- current_page integer
- per_page integer
- has_more_pages boolean