magento / magento/community-features

Magento 2 does not have a api call to add multiple product cart in a single call

Open
#31 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

API devguild moved from magento2 Priority: P2
Dominant language
No language data
Stars
46
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Preconditions
  1. use api call guest-carts/27f7f91cf4344bb9bda7d30b076216f3/items
Steps to reproduce
  1. use api call guest-carts/27f7f91cf4344bb9bda7d30b076216f3/items
  2. post data sku qty
Expected result
  1. There should be a way to add multiple product to cartt, why this functionality is not provided.
Actual result
  1. Can only add 1 product in 1 call to cart

Original Report: https://github.com/magento/magento2/issues/8501 by @umang-ranium

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the guest-carts/{cartId}/items endpoint and its current request format. Define the intended batch behavior and identify the relevant API entry points and tests; done means one call can add multiple products while preserving the existing cart behavior.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.