Describe the bug
As per Bagisto’s default behavior, a product created using the Admin → Create Product API is set to Inactive by default.
However, when fetching the same product using the Get Product API, the API response incorrectly returns:
To Reproduce
Steps to Reproduce:
- Create a product using the Admin Create Product API.
- Verify in the Admin panel that the product status is Inactive.
- Fetch the product using the Get Product API.
- Check the status field in the API response.
Expected behavior
- The Get Product API should return:
status: false
for products that are inactive.
- API response should accurately reflect the product’s actual status.
Screenshots
Check the database as well.