younifyd
Menu

List All Product Reviews

List all product reviews

GET/products/reviews

Use it in a workflow

  1. Add a step and choose the WooCommerce connector.
  2. Pick the List All Product Reviews action (under Product reviews).
  3. Fill in the fields below, then reference the result from later steps as {{listAllProductReviews.response.data}}.

Request

Query parameters

contextstring

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

One ofvieweditDefault "view"

pageinteger

Current page of the collection. Default is 1.

Default 1

per_pageinteger

Maximum number of items to be returned in result set. Default is 10.

Default 10

searchstring

Limit results to those matching a string.

afterstring (date-time)

Limit response to reviews published after a given ISO8601 compliant date.

beforestring (date-time)

Limit response to reviews published before a given ISO8601 compliant date.

excludearray<integer>

Ensure result set excludes specific IDs.

includearray<integer>

Limit result set to specific IDs.

offsetinteger

Offset the result set by a specific number of items.

orderstring

Order sort attribute ascending or descending. Options: asc and desc. Default is desc.

One ofascdescDefault "desc"

orderbystring

Sort collection by resource attribute. Options: date, date_gmt, id, slug, include and product. Default is date_gmt.

One ofdatedate_gmtidslugincludeproductDefault "date_gmt"

reviewerarray<integer>

Ensure result set excludes specific IDs.

reviewer_excludearray<integer>

Limit result set to specific IDs.

reviewer_emailarray<integer>

Limit result set to that from a specific author email.

productarray<integer>

Limit result set to reviews assigned to specific product IDs

statusstring

Limit result set to reviews assigned a specific status. Options: all, hold, approved, spam and trash. Default is approved.

One ofallholdapprovedspamtrashDefault "approved"

Response

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

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