0

This is the screenshot

when i am calling API through Postman. Only sku, position and category id is coming but How i want more detail like product name price and other details

1 Answer 1

2

Try with below

GET <host>/rest/<store_code>/V1/products/"sku_here"?fields=name,sku,price,extension_attributes[category_links,stock_item[item_id,qty]]

To get all attributes of product = http://localhost.com/index.php/V1/products/{sku}

1
  • First of all I thank you so much. I am new here and sorry for any wrong discussion. But I want to know - <host>/rest/<store_code>/V1/products/"sku_here" by this i can fetch detailed data for one product but i have to fetch product list by category id. So How can I do this? Thanks in advance
    – Alok Kumar
    Commented Mar 22, 2021 at 5:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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