GET
/
cart
/
items
curl -X GET 'https://api.henrylabs.ai/v0/cart/items' \
  -H 'x-api-key: YOUR_API_KEY' \
  -H 'x-user-id: user123'
{
  "success": true,
  "status": "success",
  "message": "Cart items retrieved successfully",
  "data": {
    "products": [
      {
        "name": "Nike Air Max 270",
        "price": "150.00",
        "quantity": 1,
        "productLink": "https://nike.com/air-max-270",
        "productImageLink": "https://nike.com/images/air-max-270.jpg",
        "metadata": {
          "size": "10",
          "color": "Black"
        }
      },
      {
        "name": "Adidas Ultraboost 22",
        "price": "190.00",
        "quantity": 2,
        "productLink": "https://adidas.com/ultraboost-22",
        "metadata": {
          "size": "9.5",
          "color": "White"
        }
      }
    ]
  }
}

Overview

This endpoint retrieves all items currently in a user’s cart, including product details, quantities, and metadata.

Authentication

x-api-key
string
required
Your API key for authentication
x-user-id
string
required
Unique identifier for the user

Response

success
boolean
Indicates if the request was successful
status
string
Status of the request
message
string
Descriptive message about the operation
data
object
Response data containing cart items
curl -X GET 'https://api.henrylabs.ai/v0/cart/items' \
  -H 'x-api-key: YOUR_API_KEY' \
  -H 'x-user-id: user123'
{
  "success": true,
  "status": "success",
  "message": "Cart items retrieved successfully",
  "data": {
    "products": [
      {
        "name": "Nike Air Max 270",
        "price": "150.00",
        "quantity": 1,
        "productLink": "https://nike.com/air-max-270",
        "productImageLink": "https://nike.com/images/air-max-270.jpg",
        "metadata": {
          "size": "10",
          "color": "Black"
        }
      },
      {
        "name": "Adidas Ultraboost 22",
        "price": "190.00",
        "quantity": 2,
        "productLink": "https://adidas.com/ultraboost-22",
        "metadata": {
          "size": "9.5",
          "color": "White"
        }
      }
    ]
  }
}

Authorizations

x-api-key
string
header
required

Headers

x-user-id
string
required

Response

200
application/json

Cart items fetched successfully

The response is of type object.