List products
Retrieve a paginated list of products with optional filtering and searching.
Authorization
applicationPassword AuthorizationBasic <token>
WordPress Application Password authentication. Generate one at wp-admin > Users > Application Passwords. Use as Basic Auth with username:application_password (base64-encoded).
In: header
Query Parameters
page?integer
Page number
Default
1per_page?integer
Number of results per page
Default
10filter_type?string
Filter by product variation type
Value in
"simple" | "variable" | "subscription"sort_by?string
Field to sort by
Default
"ID"sort_type?string
Sort direction
Default
"DESC"Value in
"ASC" | "DESC"search?string
Search products by name
active_view?string
Filter by product status
Value in
"all" | "published" | "draft" | "trashed"Response Body
application/json
application/json
curl -X GET "https://your-site.com/wp-json/fluent-cart/v2/products"{
"products": {
"current_page": 0,
"data": [
{
"id": 0,
"title": "string",
"slug": "string",
"status": "string",
"type": "string",
"price": 0,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
],
"first_page_url": "string",
"from": 0,
"last_page": 0,
"last_page_url": "string",
"links": [
{
"url": "string",
"label": "string",
"active": true
}
],
"next_page_url": "string",
"path": "string",
"per_page": 0,
"prev_page_url": "string",
"to": 0,
"total": 0
}
}{
"code": "rest_forbidden",
"message": "Sorry, you are not allowed to do that.",
"data": {
"status": 401
}
}