Search Carts Info

로그인 한 구매자의 장바구니 내의 상품 ID, 상품명, 상품 카테고리를 기준으로 검색합니다.

GET /api/carts

Access Permissions

Role
Description
ADMIN

관리자

MANAGER

CS 담당자

CUSTOMER

구매자

Request Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Request Parameter

Name
Type
Description
Required

page

Integer

Page number

false

size

Integer

Page Size (10,30,50)

false

sort

String

Value of the 'orderby' (ex) createdAt)

false

direction

String

Direction of the sorting (DESC, ASC)

false

productId

String

keyword for cart search

false

cartId

String

keyword for cart search

false

productName

String

keyword for cart search

false

categoryCode

ENUM

keyword for cart search

false

Response

[
 {
  "status": 200,
  "data": {
    "cartId": 98765,
    "userId": 12345,
    "productId": 53632,
    "productName": "계산기",
    "quantity": 2, 
    "originalPrice": 30000,
    "discountedPrice": 19900,
    "totalPrice": 10100
    "productOption":" 분홍/ L",
    "categoryCode":11012",
    "state": "AVAILABLE"
  },
   "data": {
    "cartId": 31245,
    "userId": 16345,
    "productId": 12523,
    "productName": "가위",
    "quantity": 1, 
    "originalPrice": 5000,
    "discountedPrice": 0,
    "totalPrice": 5000
    "productOption":" 분홍",
    "categoryCode":11012",
    "state": "AVAILABLE"
  },
  "error": null,
  "timeStamp": "2024-09-27 12:00:00"
}
]

Last updated