Skip to content

[GET] 장바구니 조회

MyeongHui edited this page Jun 9, 2020 · 9 revisions
메소드 경로 설명
GET /shoppingbag/:uid 장바구니 조회

Request Query

key 설명 타입 비고
uid 유저 id String NOT-NULL, "iOS" 사용하세요~

Response

key 설명 타입 비고
basicDelivery 기본배송 배열
individualDelivery 개별배송 배열
productIdx 상품인덱스 Int NOT-NULL
image 상품이미지 Url String NOT-NULL
name 상품명 String NOT-NULL
delivery_charge 배송비 Int 무료배송(=0), NOT-NULL
savings 적립금 Int NOT-NULL
quantity 수량 Int NOT-NULL
price 가격 Int NOT-NULL
option 옵션 String NOT-NULL

< Success >

{
    "status": 200,
    "success": true,
    "message": "장바구니 조회 성공",
    "data":
        {
            "basicDelivery" : [
                {
                    "productIdx" : 0,
                    "image": "{url}",
                    "name" : "클리어런스 마켓비",
                    "delivery_charge" : 0,
                    "savings" : 1500,
                    "price" : 19900,
                    "quantity" : 2,
                    "option": [
			"KS1934T/1",
                        "KS1934T/2",
                        "KS1934T/3"
                    ]
                }	
            ],
            "individualDelivery":[
                {
                    "productIdx" : 1,
                    "image": "{url}",
                    "name" : "마켓비 NASRI 러그 시리즈",
                    "delivery_charge" : 0,
                    "savings" : 300,
                    "price" : 11900,
                    "quantity" : 1,
                    "option": [
			"50 X 90 미네랄",
                        "60 X 100 미네랄",
                        "70 X 120 미네랄"
                    ]
                },
                {
                    "productIdx" : 2,
                    "image": "{url}",
                    "name" : "EZBO HERO 캐비넷 시리즈",
                    "delivery_charge" : 0,
                    "savings" : 8000,
                    "price" : 269000,
                    "quantity" : 3,
                    "option": [
			"ezb001(+208,100)",
                        "ezb002(+228,100)",
                        "ezb003(+248,100)"
                    ]
                }
            ]
        }
}

< Fail >

  • uid가 올바르지 않은 경우
{
    "status": 400,
    "success": false,
    "message": "Id가 잘못되었습니다."
}
  • 서버 내부 에러
{
    "status": 500,
    "success": false,
    "message": "서버 내부 에러"
}