Skip to content

Inactive product created via Admin Create Product API and returns status: true in Get Product API #584

@harshit-webkul

Description

@harshit-webkul

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:

  1. Create a product using the Admin Create Product API.
  2. Verify in the Admin panel that the product status is Inactive.
  3. Fetch the product using the Get Product API.
  4. 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

Image Image

Check the database as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions