> For the complete documentation index, see [llms.txt](https://baeminchan-project.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://baeminchan-project.gitbook.io/project/undefined-1/untitled-1.md).

# 장바구니 조회

## 장바구니 조회

<mark style="color:blue;">`GET`</mark> `https://api.elegantsiblings.xyz/cart/`

#### Headers

| Name          | Type   | Description                                                        |
| ------------- | ------ | ------------------------------------------------------------------ |
| Authorization | string | <p>Token <토큰 번호><br>예) Token dajo337nf02fl'ajlku09u3rjq'efefe3</p> |

{% tabs %}
{% tab title="200 " %}

```javascript
[
    {
        "cart_item_pk": "11",
        "user": {
            "user_pk": "1",
            "username": "lee",
            "first_name": "test",
            "last_name": "",
            "email": "",
            "img_profile": null
        },
        "item": {
            "item_pk": "3",
            "company": "탐나는밥상",
            "item_name": "표고버섯 무나물 (1인분) 150g",
            "origin_price": 4500,
            "sale_price": 4050,
            "discount_rate": 0.1,
            "list_thumbnail": null
        },
        "amount": 2
    },
    {
        "cart_item_pk": "12",
        "user": {
            "user_pk": "1",
            "username": "lee",
            "first_name": "test",
            "last_name": "",
            "email": "",
            "img_profile": null
        },
        "item": {
            "item_pk": "2",
            "company": "집밥의완성",
            "item_name": "고깃집 그 참기름 묵은지무침 (1~2인분) 200g",
            "origin_price": 3300,
            "sale_price": 2450,
            "discount_rate": 0.25,
            "list_thumbnail": "https://wps-9th-chajeehyung-practice.s3.amazonaws.com/media/Item/cat7.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIG4DIK7WJ5QD5WAA%2F20181205%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20181205T140339Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=0479b2055864d6c845766fbecbdf5157d6ee25abbfa51f942d91875021525e7c"
        },
        "amount": 2
    }
]
```

{% endtab %}

{% tab title="401 token 문제" %}

```javascript
1. token이 없는 경
{
    "detail": "자격 인증데이터(authentication credentials)가 제공되지 않았습니다."
}
2. token이 이상한 경우
{
    "detail": "토큰이 유효하지 않습니다."
}
```

{% endtab %}
{% endtabs %}
