Skip to main content
GET
Get Cart

Overview

Retrieves the complete shopping cart for a user, including all cart items and their associated product details.

Authentication

This endpoint requires authentication. Ensure the user has permission to access the specified cart.

Path Parameters

number
required
The unique identifier of the user whose cart you want to retrieve

Response

boolean
required
Indicates whether the request was successful
object
The cart object containing all cart details
number
Unique identifier for the cart
number
The ID of the user who owns this cart
boolean
Whether an abandoned cart email has been sent
array
Array of cart items
number
Unique identifier for the cart item
number
Reference to the parent cart
number
The product ID for this cart item
number
Quantity of the product in the cart
object
Complete product details including name, price, description, images, etc.
string
Error message if the request fails

Example Request

Example Response

Success Response

Error Response

Error Codes

Notes

  • If the user has no cart, the response will return null for the data field
  • Only non-deleted products are included in the cart items
  • Product details are fully populated in the response