younifyd
Menu

Update carts/{cartId}/items/{itemId}

Update carts/{cartId}/items/{itemId}

PUT/V1/carts/{cartId}/items/{itemId}

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Update carts/{cartId}/items/{itemId} action (under Carts).
  3. Fill in the fields below, then reference the result from later steps as {{updateCartsCartidItemsItemid.response.data}}.

Request

Path parameters

cartIdstringrequired
itemIdstringrequired

Response

Returns 200 with an object. Read it in later steps with {{updateCartsCartidItemsItemid.response.data.<field>}}.

item_idinteger

Item ID. Otherwise, null.

skustring

Product SKU. Otherwise, null.

qtynumber

Product quantity.

namestring

Product name. Otherwise, null.

pricenumber

Product price. Otherwise, null.

product_typestring

Product type. Otherwise, null.

quote_idstring

Quote id.

product_optionobject

Product option interface

extension_attributesobject6 fields

ExtensionInterface class for @see \Magento\Quote\Api\Data\ProductOptionInterface

extension_attributesobject

ExtensionInterface class for @see \Magento\Quote\Api\Data\CartItemInterface

discountsarray<object>3 fields
negotiable_quote_itemobject5 fields

Interface CompanyQuoteConfigInterface

json
{
  "qty": 0,
  "quote_id": "string",
  "item_id": 0,
  "sku": "string",
  "name": "string",
  "price": 0,
  "product_type": "string",
  "product_option": {
    "extension_attributes": {
      "custom_options": [
        {
          "option_id": {},
          "option_value": {},
          "extension_attributes": {}
        }
      ],
      "bundle_options": [
        {
          "option_id": {},
          "option_qty": {},
          "option_selections": {},
          "extension_attributes": {}
        }
      ],
      "downloadable_option": {
        "downloadable_links": [
          {}
        ]
      },
      "giftcard_item_option": {
        "giftcard_amount": "string",
        "giftcard_sender_name": "string",
        "giftcard_recipient_name": "string",
        "giftcard_sender_email": "string",
        "giftcard_recipient_email": "string",
        "custom_giftcard_amount": 0,
        "giftcard_message": "string",
        "extension_attributes": {}
      },
      "configurable_item_options": [
        {
          "option_id": {},
          "option_value": {},
          "extension_attributes": {}
        }
      ],
      "grouped_options": [
        {
          "id": {},
          "qty": {},
          "extension_attributes": {}
        }
      ]
    }
  },
  "extension_attributes": {
    "discounts": [
      {
        "discount_data": {
          "amount": {},
          "base_amount": {},
          "original_amount": {},
          "base_original_amount": {}
        },
        "rule_label": "string",
        "rule_i_d": 0
      }
    ],
    "negotiable_quote_item": {
      "item_id": 0,
      "original_price": 0,
      "original_tax_amount": 0,
      "original_discount_amount": 0,
      "extension_attributes": {
        "negotiated_price_type": 0,
        "negotiated_price_value": 0,
        "last_item_notes": [
          {}
        ],
        "is_discounting_locked": false,
        "min_qty": 0,
        "max_qty": 0
      }
    }
  }
}

Need more? See the Adobe Commerce guide for connection setup and behaviour shared by every action.