> For the complete documentation index, see [llms.txt](https://fastbnb.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://fastbnb.gitbook.io/project/undefined-6-1.md).

# 예약 요청하기

## Booking

<mark style="color:green;">`POST`</mark> `https://backends.xyz/api/home/booking/`

.

#### Headers

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

#### Request Body

| Name             | Type    | Description                      |
| ---------------- | ------- | -------------------------------- |
| check\_in\_date  | string  | "check\_in\_date": "2018-12-20"  |
| check\_out\_date | string  | "check\_out\_date": "2018-12-30" |
| num\_guest       | integer | "num\_guest": 2                  |
| room             | integer | "room": 12                       |

{% tabs %}
{% tab title="200 .정상적으로 예약이 된 경우에 리턴하는 예" %}

```javascript
{
    "id": 47,
    "room": 12,
    "guest": 3,
    "num_guest": 2,
    "check_in_date": "2018-12-12",
    "check_out_date": "2018-12-15",
    "reserved_dates": [
        {
            "reserved_date": "2018-12-13"
        },
        {
            "reserved_date": "2018-12-14"
        }
    ]
}
```

{% endtab %}

{% tab title="400 " %}

```
{
    "room": [
        "이 필드는 필수 항목입니다."
    ],
    "num_guest": [
        "이 필드는 필수 항목입니다."
    ],
    "check_in_date": [
        "이 필드는 필수 항목입니다."
    ],
    "check_out_date": [
        "이 필드는 필수 항목입니다."
    ]
}
```

{% endtab %}
{% endtabs %}
