Skip to content

Remove Existing Images from Cart

API Information

  • Request Path: /market/shoppingCart/removeProduct
  • Request Method: POST
  • Content-Type: application/json

Request Headers

ParameterTypeRequiredDescription
AuthorizationStringYesUser authentication token
Content-TypeStringYesMust be set to application/json

Request Body Structure

FieldTypeRequiredDescriptionConstraints
productIdsList<String>YesList of products to remove-

Request Body Example

json
{
  "productIds": [
    "product_123"
  ]
}

Response Body Structure

CommonResponse Object

FieldTypeDescription
codeIntegerResponse status code
messageStringResponse message
dataBooleanResponse data

Boolean Object

FieldTypeDescription
valueBooleanSuccess 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 CodeDescription
200Success
400Request parameter error
401Unauthorized
500Server internal error

Usage Instructions

  1. This API is used to remove products from the shopping cart
  2. User authentication is required
  3. Provide a list of product items to remove

Notes

  • Only specified products will be removed