ReDoc documentation
Add/update the specified cart item.
200 Success.
400 Bad Request
401 Unauthorized
Unexpected error
{- "cartItem": {
- "item_id": 0,
- "sku": "string",
- "qty": 0,
- "name": "string",
- "price": 0,
- "product_type": "string",
- "quote_id": "string",
- "product_option": {
- "extension_attributes": {
- "custom_options": [
- {
- "option_id": "string",
- "option_value": "string",
- "extension_attributes": {
- "file_info": {
- "base64_encoded_data": null,
- "type": null,
- "name": null
}
}
}
], - "bundle_options": [
- {
- "option_id": 0,
- "option_qty": 0,
- "option_selections": [
- 0
], - "extension_attributes": { }
}
], - "downloadable_option": {
- "downloadable_links": [
- 0
]
}, - "giftcard_item_option": {
- "giftcard_amount": "string",
- "custom_giftcard_amount": 0,
- "giftcard_sender_name": "string",
- "giftcard_recipient_name": "string",
- "giftcard_sender_email": "string",
- "giftcard_recipient_email": "string",
- "giftcard_message": "string",
- "extension_attributes": {
- "giftcard_created_codes": [
- "string"
]
}
}, - "configurable_item_options": [
- {
- "option_id": "string",
- "option_value": 0,
- "extension_attributes": { }
}
], - "grouped_options": [
- {
- "id": 0,
- "qty": 0,
- "extension_attributes": { }
}
]
}
}, - "extension_attributes": {
- "discounts": [
- {
- "discount_data": {
- "amount": 0,
- "base_amount": 0,
- "original_amount": 0,
- "base_original_amount": 0
}, - "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": [
- {
- "note_id": 0,
- "negotiable_quote_item_id": 0,
- "creator_type": 0,
- "creator_id": 0,
- "note": "string",
- "created_at": "string",
- "extension_attributes": { }
}
], - "is_discounting_locked": true,
- "min_qty": 0,
- "max_qty": 0
}
}
}
}
}
{- "item_id": 0,
- "sku": "string",
- "qty": 0,
- "name": "string",
- "price": 0,
- "product_type": "string",
- "quote_id": "string",
- "product_option": {
- "extension_attributes": {
- "custom_options": [
- {
- "option_id": "string",
- "option_value": "string",
- "extension_attributes": {
- "file_info": {
- "base64_encoded_data": "string",
- "type": "string",
- "name": "string"
}
}
}
], - "bundle_options": [
- {
- "option_id": 0,
- "option_qty": 0,
- "option_selections": [
- 0
], - "extension_attributes": { }
}
], - "downloadable_option": {
- "downloadable_links": [
- 0
]
}, - "giftcard_item_option": {
- "giftcard_amount": "string",
- "custom_giftcard_amount": 0,
- "giftcard_sender_name": "string",
- "giftcard_recipient_name": "string",
- "giftcard_sender_email": "string",
- "giftcard_recipient_email": "string",
- "giftcard_message": "string",
- "extension_attributes": {
- "giftcard_created_codes": [
- "string"
]
}
}, - "configurable_item_options": [
- {
- "option_id": "string",
- "option_value": 0,
- "extension_attributes": { }
}
], - "grouped_options": [
- {
- "id": 0,
- "qty": 0,
- "extension_attributes": { }
}
]
}
}, - "extension_attributes": {
- "discounts": [
- {
- "discount_data": {
- "amount": 0,
- "base_amount": 0,
- "original_amount": 0,
- "base_original_amount": 0
}, - "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": [
- {
- "note_id": 0,
- "negotiable_quote_item_id": 0,
- "creator_type": 0,
- "creator_id": 0,
- "note": "string",
- "created_at": "string",
- "extension_attributes": { }
}
], - "is_discounting_locked": true,
- "min_qty": 0,
- "max_qty": 0
}
}
}
}