Add

Add To Cart

post

/V2/guest/cart/add

Authorizations
Header parameters
Content-Typestring

Content Type

Example: application/json
guestQuoteIdstring

Guest Quote Id

Example: {{guestToken}}
Body
object
Example: {"cartItem":{"sku":"MJ12","qty":1,"quote_id":"{{guestToken}}","product_option":{"extension_attributes":{"configurable_item_options":[{"option_id":"142","option_value":167},{"option_id":"93","option_value":50}]}}}}
Responses
curl -L \
  --request POST \
  --url 'https://beta.magento.pixiedia.com/V2/guest/cart/add' \
  --header 'Authorization: noauth YOUR_SECRET_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "cartItem": {
      "sku": "MJ12",
      "qty": 1,
      "quote_id": "{{guestToken}}",
      "product_option": {
        "extension_attributes": {
          "configurable_item_options": [
            {
              "option_id": "142",
              "option_value": 167
            },
            {
              "option_id": "93",
              "option_value": 50
            }
          ]
        }
      }
    }
  }'

No body

Update Cart Item

put

/V2/guest/cart/add

Authorizations
Header parameters
Content-Typestring

Content Type

Example: application/json
guestQuoteIdstring

Guest Quote Id

Example: {{guestToken}}
Body
object
Example: {"cartItem":{"sku":"MJ12","qty":1,"quote_id":"{{guestToken}}","product_option":{"extension_attributes":{"configurable_item_options":[{"option_id":"142","option_value":167},{"option_id":"93","option_value":56}]}}}}
Responses
curl -L \
  --request PUT \
  --url 'https://beta.magento.pixiedia.com/V2/guest/cart/add' \
  --header 'Authorization: noauth YOUR_SECRET_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "cartItem": {
      "sku": "MJ12",
      "qty": 1,
      "quote_id": "{{guestToken}}",
      "product_option": {
        "extension_attributes": {
          "configurable_item_options": [
            {
              "option_id": "142",
              "option_value": 167
            },
            {
              "option_id": "93",
              "option_value": 56
            }
          ]
        }
      }
    }
  }'

No body