> For the complete documentation index, see [llms.txt](https://foodfly-status404.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://foodfly-status404.gitbook.io/project/cartitem-add.md).

# CartItem Add

<mark style="color:green;">`POST`</mark> `https://foodfly.shop/cart/items/`

This endpoint allows you to get free cakes.

#### Headers

| Name           | Type   | Description                                                    |
| -------------- | ------ | -------------------------------------------------------------- |
| Authentication | string | Authentication token to track down who is emptying our stocks. |

#### Request Body

| Name             | Type    | Description                           |
| ---------------- | ------- | ------------------------------------- |
| side\_dishes\_pk | integer | <p> 리스트형태로<br>Example: \[1, 2, 3]</p> |
| quantity         | integer |                                       |
| food\_pk         | integer |                                       |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```javascript
{
    "cart": cart,
    "food": {
        "pk": pk,
        "name": name,
        "img_profile": img_profile,
        "price": price,
        "stock": stock,
        "store": store,
        "set_menu": set_menu,
        "food_info": food_info
    },
    "quantity": quantity,
    "is_ordered": is_ordered
}
```

{% endtab %}

{% tab title="400 Could not find a cake matching this query." %}

```javascript
{
    "detail": "이미 존재하는 아이템입니다."
}
```

{% endtab %}
{% endtabs %}
