Need to get Product Stock Status
in products details using Rest API.
Method: GET
Using API URL: http://testwebsite/rest/en/V1/products/sku
Above api returns products details but need also products stock status.
Any help would be appreciated. Thanks!
UPDATE
Magento ver. 2.3.0
API Response :
{
"id": 1075,
"sku": "ACREATSGRACJ5050",
"name": "Brow Set",
"attribute_set_id": 14,
"price": 10.5,
"status": 1,
"visibility": 4,
"type_id": "simple",
"created_at": "2019-04-06 08:39:24",
"updated_at": "2019-08-28 06:10:01",
"extension_attributes": {
"website_ids": [
1
],
"category_links": [
{
"position": 0,
"category_id": "7"
},
{
"position": 0,
"category_id": "77"
},
{
"position": 0,
"category_id": "78"
},
{
"position": 0,
"category_id": "83"
}
]
},
"product_links": [],
"options": [],
"media_gallery_entries": [],
"tier_prices": [],
"custom_attributes": [
{
"attribute_code": "url_key",
"value": "brow-set"
},
{
"attribute_code": "gift_message_available",
"value": "0"
},
{
"attribute_code": "rma_allowed",
"value": "1"
},
{
"attribute_code": "acce_brand",
"value": "208"
},
{
"attribute_code": "options_container",
"value": "container2"
},
{
"attribute_code": "acce_type",
"value": "223"
},
{
"attribute_code": "acce_item",
"value": "209"
},
{
"attribute_code": "supplier_sku",
"value": "RT-1468"
},
{
"attribute_code": "in_html_sitemap",
"value": "1"
},
{
"attribute_code": "msrp_display_actual_price_type",
"value": "0"
},
{
"attribute_code": "retail_price",
"value": "10.5000"
},
{
"attribute_code": "tax_class_id",
"value": "2"
},
{
"attribute_code": "use_in_crosslinking",
"value": "1"
},
{
"attribute_code": "in_xml_sitemap",
"value": "1"
},
{
"attribute_code": "required_options",
"value": "0"
},
{
"attribute_code": "has_options",
"value": "0"
},
{
"attribute_code": "category_ids",
"value": [
"7",
"77",
"78",
"83"
]
},
{
"attribute_code": "country_of_manufacture",
"value": "US"
},
{
"attribute_code": "color",
"value": "4"
},
{
"attribute_code": "upc_ean",
"value": "79625014686"
},
{
"attribute_code": "as_featured",
"value": "0"
}
]
}