I tested with postman as suggested. I’m still having issues with the inventory not showing even though manage stock is enabled at the store level. Any help would be appreciated.
I ran this:
{
"name": "Premium Quality",
"type": "simple",
"regular_price": "21.99",
"description": "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",
"short_description": "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.",
"stock_quantity": "100",
"categories": [
{
"id": 9
},
{
"id": 14
}
],
"images": [
{
"src": "https://demo.woothemes.com/woocommerce/wp-content/uploads/sites/56/2013/06/T_2_front.jpg"
},
{
"src": "https://demo.woothemes.com/woocommerce/wp-content/uploads/sites/56/2013/06/T_2_back.jpg"
}
]
}
And received this response:
{
"id": 6154,
"name": "Premium Quality",
"slug": "premium-quality",
"permalink": "https://www.hpjind.com/product/premium-quality/",
"date_created": "2021-12-14T13:00:02",
"date_created_gmt": "2021-12-14T18:00:02",
"date_modified": "2021-12-14T13:00:02",
"date_modified_gmt": "2021-12-14T18:00:02",
"type": "simple",
"status": "publish",
"featured": false,
"catalog_visibility": "visible",
"description": "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",
"short_description": "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.",
"sku": "",
"price": "21.99",
"regular_price": "21.99",
"sale_price": "",
"date_on_sale_from": null,
"date_on_sale_from_gmt": null,
"date_on_sale_to": null,
"date_on_sale_to_gmt": null,
"on_sale": false,
"purchasable": false,
"total_sales": 0,
"virtual": false,
"downloadable": false,
"downloads": [],
"download_limit": -1,
"download_expiry": -1,
"external_url": "",
"button_text": "",
"tax_status": "taxable",
"tax_class": "",
"manage_stock": false,
"stock_quantity": null,
"backorders": "no",
"backorders_allowed": false,
"backordered": false,
"low_stock_amount": null,
"sold_individually": false,
"weight": "",
"dimensions": {
"length": "",
"width": "",
"height": ""
},
"shipping_required": true,
"shipping_taxable": true,
"shipping_class": "",
"shipping_class_id": 0,
"reviews_allowed": true,
"average_rating": "0",
"rating_count": 0,
"upsell_ids": [],
"cross_sell_ids": [],
"parent_id": 0,
"purchase_note": "",
"categories": [
{
"id": 325,
"name": "Products",
"slug": "products"
}
],
"tags": [],
"images": [
{
"id": 6152,
"date_created": "2021-12-14T07:59:59",
"date_created_gmt": "2021-12-14T17:59:59",
"date_modified": "2021-12-14T07:59:59",
"date_modified_gmt": "2021-12-14T17:59:59",
"src": "https://www.hpjind.com/wp-content/uploads/2021/12/T_2_front-1.jpg",
"name": "T_2_front-1.jpg",
"alt": ""
},
{
"id": 6153,
"date_created": "2021-12-14T08:00:00",
"date_created_gmt": "2021-12-14T18:00:00",
"date_modified": "2021-12-14T08:00:00",
"date_modified_gmt": "2021-12-14T18:00:00",
"src": "https://www.hpjind.com/wp-content/uploads/2021/12/T_2_back-1.jpg",
"name": "T_2_back-1.jpg",
"alt": ""
}
],
"attributes": [],
"default_attributes": [],
"variations": [],
"grouped_products": [],
"menu_order": 0,
"price_html": "",
"related_ids": [
6108,
6146,
6145,
6066,
6082
],
"meta_data": [],
"stock_status": "instock",
"_links": {
"self": [
{
"href": "https://www.hpjind.com/wp-json/wc/v3/products/6154"
}
],
"collection": [
{
"href": "https://www.hpjind.com/wp-json/wc/v3/products"
}
]
}
}