# V2
```javascript
WXAPI.shippingCarInfoAddItemV2({
token: '000'
})
```
+ token current user login credentials
+ goodsId commodity id
+ number Add to cart quantity
+ sku sku array object of product specifications and sizes
+ addition array object of product optional accessories
+ type This parameter can be omitted to distinguish multiple shopping carts; it is used in business scenarios where shopping carts need to be distinguished.
+ wholesaleId ID of wholesale setting
+ goodsTimesDay The date of period pricing: Pass value such as: 2021-06-12
+ goodsTimesItem time period name for time period pricing
+ extJsonStr attribute information, JSON format
sku example:
```json
[
{
"optionId": 30899,
"optionValueId": 320215
},
{
"optionId": 30900,
"optionValueId": 320217
}
]
```
+ optionId specification ID, for example 30899 represents color
+ optionValueId The ID of the specification sub-property, for example 320215 represents red
+ You can store any fields you need in it. When reading the shopping cart, it will be returned as it is.
addition example:
```json
[
{
"id": 39,
"pid": 23
}
]
```
+ id is the sub-attribute id of optional accessories, for example: 39 means slightly spicy
+ pid is the id of the optional accessory, for example, 23 represents whether it is spicy or not
+ Other optional fields remark, remark1, remark2 are returned as they are when reading the shopping cart to save special business scenario context data