operationId: createOrder
summary: Create order
tags:
  - orders
parameters:
  - $ref: ../../components/header-parameters/tenant-subdomain.yml
requestBody:
  content:
    application/json:
      schema:
        type: object
        properties:
          fields:
            type: array
            items:
              type: object
              properties:
                value:
                  type: string
                id:
                  type: string
              required:
                - value
                - id
        required:
          - fields
responses:
  201:
    description: Success
    content:
      application/json:
        schema:
          allOf:
            - $ref: ../../components/schemas/entities/order/properties.yml
            - $ref: ../../components/schemas/entities/order/relations.yml
  400:
    $ref: ../../components/responses/400-bad-request.yml
