Users

Get carts for a user

get/users/{userId}/carts

Request

  • Base URL
    https://dummyjson.com
  • URL
    https://dummyjson.com/users/{userId}/carts
  • Auth
    none required

Path parameters

userIdinteger required

Query parameters

limitinteger

Items per page. Use 0 to return all items.

skipinteger

Number of items to skip.

delayinteger

Artificial response delay in milliseconds (0–5000).

Response

User carts

totalinteger
skipinteger
limitinteger

Example response

{
  "carts": [
    {
      "id": 1,
      "products": [
        {
          "id": 162,
          "title": "Blue Frock",
          "price": 29.99,
          "quantity": 4,
          "total": 119.96,
          "discountPercentage": 12.13,
          "discountedTotal": 105.41,
          "thumbnail": "https://cdn.dummyjson.com/product-images/tops/blue-frock/thumbnail.webp"
        }
      ],
      "total": 13037.88,
      "discountedTotal": 11510.81,
      "userId": 1,
      "totalProducts": 4,
      "totalQuantity": 12
    }
  ],
  "limit": 30
}

Changes

No recorded changes to this operation across all 1 revision of this API.