Skip to content

[Issue] magento/magento2#8171: Price not saved when creating product via REST API #29504

@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #24606: magento/magento2#8171: Price not saved when creating product via REST API


Description (*)

The change covers adding a default typeId set to simple for new products created if no other is sent in post request.

Fixed Issues (if relevant)

  1. magento/magento2#8171: Price not saved when creating product via REST API

Manual testing scenarios (*)

Preconditions (*)

  1. Magento 2.4 CE

Steps to reproduce (*)

  1. Do a POST request to rest/V1/products? with a minimum payload to create a product.

{
"product": {
"sku": "test",
"name": "test",
"price": 12.5,
"attribute_set_id": 4
}
}

Expected result (*)

1.Created product should have visible and set price.

Actual result (*)

  1. [Screenshots, logs or description]
    image

image

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

Metadata

Metadata

Assignees

Labels

Component: CatalogIssue: 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.4.0Indicates 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.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions