Set cart item
cart_set_itemSet the exact cart line quantity and wholesale selection. This overwrites the quantity and wholesale setting for the same itemId/configurationId; it does not add to the quantity. Omitting wholesale uses standard pricing. Appends a new line when that itemId/configurationId is not already in the cart. For a supplier preview, first call catalog_get_product and wait for full product details; use only a configuration and buyer offer actually returned there. Current pricing and availability are re-quoted. Returns the updated cart view. Requires cart:write scope. Use cart_remove_item to remove a line.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | SuperCheap product ID from full catalog_get_product details. Open supplier previews with catalog_get_product and wait for complete variants and buyer offers before adding. | |
| quantity | Yes | Exact line quantity. Replaces current quantity for this itemId/configurationId (not additive). | |
| wholesale | No | Enable wholesale pricing for this line. | |
| countryCode | Yes | ISO 3166-1 alpha-2 market country code. Choose from market_list output. | |
| currencyCode | Yes | ISO 4217 alpha-3 market currency code. Choose from market_list output. | |
| languageCode | Yes | Lowercase ISO 639-1 language code. Choose from market_list output. | |
| configurationId | No | Variant or option selection ID as returned by catalog_get_product. Omit for products without configurations. |