# Создание заказа

## Формат запроса

```
POST https://api.oasiscatalog.com/v4/orders
```

Тело запроса передается в формате `JSON`

## Пример запроса

```
{
    "order": {
        "name": "Иван Иванович",
        "phone": "+70000000000",
        "email": "order@example.com",
        "comment": "Test Order",
        "params": {},
        "products": [
            {
                "id": "1-000006979",
                "quantity_europe": 10
            },
            {
                "id": "1-000023066",
                "quantity": 100,
                "brandings": [
                    {
                        "placeId": "000000337",
                        "typeId": "1-000005194",
                        "substrate": false,
                        "price": 228735,
                        "logo": base64,
                        "comment": "комментарий"
                    },
                    {
                        "placeId": "000000337",
                        "typeId": "1-000005201",
                        "substrate": false,
                        "price": 147900
                    }
                ]
            }
        ]
    }
}
```

* **order** - название объекта который мы создаем (заказ)
  * **name** - имя пользователя, на которого регистрируется заказ
  * **phone** - телефон
  * **email** - электронная почта
  * **comment** - комментарий к заказу
  * **params** - доп. информация для заказа
  * **products** - список продуктов в заказе
  * * **id** - ID продукта согласно каталогу Oasis
    * **quantity** - количество для заказа с московского склада
    * **quantity\_europe** - количество для заказа с удаленного (европейского) склада
    * **branding** - список нанесений для текущего товара
      * **placeId** - ID места нанесения
      * **typeId** - ID вида нанесения
      * **substrate** - необходимость подложки для нанесения
      * **price** - стоимость нанесения
      * **logo** - base64 файла логотипа
      * **comment** - комментарий

## Пример ответа

```
{
    "id": 4
}
```

* **id** - ID заказа в системе API


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://oasiscatalog.gitbook.io/api-oasis/overview/api-documentation-v.4/zakazy-razdel-ne-zavershen/sozdanie-zakaza.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
