0

Trying to get product with id using rest api search criteria:

Request: http://magento_host/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=id&searchCriteria[filter_groups][0][filters][0][value]=3&searchCriteria[filter_groups][0][filters][0][condition_type]=eq

Getting response:

{
  "message": "Invalid attribute name: %1",
  "parameters": [
    "id"
  ]
}

WHY?

1

try with [filters][0][field]=entity_id instead of [filters][0][field]=id

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.