Skip to content

Product Add to Cart issue in Rest API #40029

Open
@hiren-gujarati

Description

@hiren-gujarati

Preconditions and environment

  • Magento version: 2.4.8-p1
  • Multi website setup with MSI

Steps to reproduce

  1. Create Product and assigned it to any 1 website and multiple sources
  2. Create empty cart using rest API in website where above product is not assined
  3. Add above product in cart using rest API
  4. Place order using rest API

Image

Expected result

It should be throw "Product that you are trying to add is not available." error.

Image

Actual result

Able to add to cart product and place order even if it's not assigned to specific website.

Image

Additional information

Graphql add to cart mutation is throwing error so, only rest API have issue.

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: APIsComponent: ApiUse with concrete module component label E.g. "Component: Api" + "Catalog"Issue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Reported on 2.4.8-p1Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    Status

    Ready for Development

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions