Skip to main content

Get Product Filter

Retrieves the details of a single product filter, including its display settings.

HTTP Request​

  • URL: /productFilter/{id}
  • Method: GET
  • Headers:
    • accessToken: Required. Your API access token.
  • Required scope: READ_PRODUCT or READ_WRITE_PRODUCT

Path Parameters​

ParameterTypeDescription
idStringRequired. The ID of the product filter to retrieve.

cURL Example​

curl --location '<BASE_URL>/productFilter/66d220c8f57178681728212e' \
--header 'accessToken: <ACCESS_TOKEN>'

Response​

  • 200 OK: The product filter was returned successfully.
  • 400 Bad Request: The access token is missing or invalid, or the product filter ID is not valid.

Sample JSON Response​

{
"success": true,
"data": {
"_id": "66d220c8f57178681728212e",
"id": "66d220c8f57178681728212e",
"name": "material",
"displayName": "Material",
"type": "filter",
"status": true,
"metaFieldId": "66d1f0c2a1b2c3d4e5f60718",
"displayProductCount": false,
"productCounts": 0,
"itemsToShow": 0,
"sortOrder": 3,
"sortBy": "item_count",
"collapsedDefault": false,
"createdAt": "2024-08-30T19:43:04.216Z",
"updatedAt": "2024-08-31T18:18:28.191Z"
}
}

Response Details​

Product Filter Data​

The fields are the same as in Get All Product Filters.

Notes​

  • If no product filter matches the ID, data is an empty object.