Appearance
Remove Existing Images from Cart
API Information
- Request Path:
/market/shoppingCart/removeProduct - Request Method:
POST - Content-Type:
application/json
Request Headers
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Yes | User authentication token |
| Content-Type | String | Yes | Must be set to application/json |
Request Body Structure
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
| productIds | List<String> | Yes | List of products to remove | - |
Request Body Example
json
{
"productIds": [
"product_123"
]
}Response Body Structure
CommonResponse Object
| Field | Type | Description |
|---|---|---|
| code | Integer | Response status code |
| message | String | Response message |
| data | Boolean | Response data |
Boolean Object
| Field | Type | Description |
|---|---|---|
| value | Boolean | Success status |
Response Examples
Success Response
json
{
"code": 200,
"message": "success",
"data": true
}Failure Response
json
{
"code": 400,
"message": "Product not found in cart",
"data": false
}Error Code Description
| Error Code | Description |
|---|---|
| 200 | Success |
| 400 | Request parameter error |
| 401 | Unauthorized |
| 500 | Server internal error |
Usage Instructions
- This API is used to remove products from the shopping cart
- User authentication is required
- Provide a list of product items to remove
Notes
- Only specified products will be removed