> 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/order-create.md).

# Order Create

## Get Cakes

<mark style="color:blue;">`GET`</mark> `https://foodfly.shop/order/`

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 |
| --------------- | ------ | ----------- |
| shipping        | string |             |
| comment         | string |             |
| phone           | string |             |
| payment\_option | string |             |

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

```javascript
 {  
    "count": ,
    "next": null,
    "previous": null,
    "results": [
        {
            "pk": ,
            "user": ,
            "phone": ,
            "shipping": ,
            "comment": ,
            "payment_option": ,
            "payment_status": ,
            "store": [
                {
                    "store": ,
                    "total_price":
                }
            ],
            "payment":
        }
}
```

{% endtab %}

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

```javascript
{
    "detail": "잘못된 요청입니다."
}
```

{% endtab %}
{% endtabs %}
