Skip to content

REST API order info -> "parent" products sku inconsistency with product_id  #21231

Open
@tsoftp

Description

@tsoftp

Preconditions (*)

1.Magento 2.4-develop
2.Using Luma test sample data
3.Using Postman for REST API calls.

Steps to reproduce (*)

1.Simply create an order with a configurable product (i.e. a shirt size M color grey or something like that)
2.Make a REST API call to return that order/list of orders.

Expected result (*)

  1. Receive the API response for the order.
  2. The product I ordered is listed in the "Items" array and its "parent_item" attribute shows the original configurable product's data.

Actual result (*)

  1. The product I ordered is listed in the "Items" array and its "parent_item" attribute shows the child's "sku" attribute instead of the sku of the parent_item.

In other words it says that the parent's Sku is the same as the simple product sku which is simply not true, despite it having the correct "name" and "item_id" attribute values.

  1. Example info attached with what I am describing happening. File has comments on the lines I'm talking about.
    bug.txt

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: APIsComponent: CatalogIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P3May be fixed according to the position in the backlog.Progress: PR in progressReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions