Skip to content

REST API Bundle Product Details Price Issue #28431

Closed
@mack4hack

Description

@mack4hack

Description

Bundle products have a price in the store and admin interface, but not in the Products Details REST API.

Preconditions

  1. Magento 2.3.3

Steps to reproduce

  1. Create a bundle product and assign simple products to it.
    image

  2. Enable 'Allow Anonymous Guest Access' from Store -> Configuration -> Services -> Magento Web API

  3. GET /rest/V1/products/{sku} to get a details of bundle product.

Expected result

  1. Children products must have price in response

Actual result

  1. Price is 'null' of children products.
{
  "id": 1203,
  "sku": "Bundle Product",
  "name": "Bundle Product",
  "attribute_set_id": 4,
  "price": 0,
  "status": 1,
  "visibility": 4,
  "type_id": "bundle",
  "created_at": "2020-05-27 11:02:38",
  "updated_at": "2020-05-27 11:02:38",
  "weight": 0,
  "extension_attributes": {
    "website_ids": [
      1
    ],
    "bundle_product_options": [
      {
        "option_id": 1,
        "title": "option 1",
        "required": true,
        "type": "select",
        "position": 1,
        "sku": "Bundle Product",
        "product_links": [
          {
            "id": "1",
            "sku": "product_dynamic_3",
            "option_id": 1,
            "qty": 1,
            "position": 1,
            "is_default": false,
            "price": null, // Price is null
            "price_type": null,
            "can_change_quantity": 0
          },
          {
            "id": "2",
            "sku": "product_dynamic_4",
            "option_id": 1,
            "qty": 1,
            "position": 2,
            "is_default": false,
            "price": null, // Price is null
            "price_type": null,
            "can_change_quantity": 0
          }
        ]
      }
    ]
  },
  "product_links": [],
  "options": [],
  "media_gallery_entries": [],
  "tier_prices": [],
  ....
}

  • Severity: S0

Metadata

Metadata

Assignees

Labels

Component: ApiUse with concrete module component label E.g. "Component: Api" + "Catalog"Fixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: 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: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.3.3Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions