Magento 2 REST API: add item to cart with additional info_buyRequest attributes

by fritzmg   Last Updated September 11, 2019 15:09 PM

Adding a product to a customer's cart via the REST API is easy enough. However, in our case we also want to add additional info_buyRequest options. But the documentation isn't really clear on how to add more buy request attributes for such a request.

We tried with

    "cartItem": {
        "sku": "243612",
        "qty": 1.0,
        "quote_id": "23627",
        "product_option": {
            "info_buyRequest": {
                "foo": "foobar"

but had no luck with that. Is there any way to do that?

Magento Version: 2.3.2

Related Questions

Magento 2 Rest auth for different website ids

Updated June 14, 2018 14:09 PM

how to add cutom price via rest api - Magento 2

Updated November 15, 2017 11:09 AM