Skip to main content
POST
/
cart
/
remove-item
Cart Remove Product
curl --request POST \
  --url https://api.henrylabs.ai/v1/cart/remove-item \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "cartId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "link": "https://www.nike.com/u/custom-nike-ja-3-by-you-10002205"
}
'
{
  "success": true,
  "status": "<string>",
  "message": "<string>",
  "data": {
    "cartId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "checkoutUrl": "<string>",
    "data": {
      "items": [
        {
          "link": "<string>",
          "quantity": 1,
          "variant": "select the black shoe (ID: 4639822147), size M 10",
          "shippingOption": {
            "id": "<string>",
            "value": "<string>"
          },
          "coupons": [
            "<string>"
          ],
          "metadata": {}
        }
      ],
      "settings": {
        "options": {
          "allowPartialPurchase": true,
          "collectBuyerEmail": "off",
          "collectBuyerAddress": "off",
          "collectBuyerPhone": "off"
        },
        "commissionFeeFixed": {
          "value": 1,
          "currency": "USD"
        },
        "commissionFeePercent": 50,
        "events": [
          {
            "type": "order",
            "data": [
              {
                "type": "<string>",
                "points": 123
              }
            ],
            "conditional": {
              "type": "<string>",
              "operator": "equals",
              "value": "<string>"
            }
          }
        ]
      }
    },
    "metadata": {}
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
cartId
string<uuid>
required

Unique identifier for the cart

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
Example:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

Direct product URL

Example:

"https://www.nike.com/u/custom-nike-ja-3-by-you-10002205"

Response

Cart product removed successfully

success
boolean
required
status
string
required
message
string
required
data
object
required