---
updatedAt: 2026-11-06T08:14:40.000Z
agentTools:
  projectIndex: https://roappua.readme.io/llms.txt
---

# Додати позицію до кошторису

Додайте нову позицію (послугу або товар) до кошторису.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "ro-app-public-api-v2_1",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://api.roapp.io/v2"
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "api_key": []
    }
  ],
  "paths": {
    "/estimates/{estimate_id}/items": {
      "post": {
        "summary": "Додати позицію до кошторису",
        "description": "Додайте нову позицію (послугу або товар) до кошторису.",
        "operationId": "add-estimate-item",
        "parameters": [
          {
            "name": "estimate_id",
            "in": "path",
            "description": "ID кошторису",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "entity_id",
                  "assignee_id",
                  "quantity",
                  "price",
                  "cost",
                  "discount",
                  "warranty"
                ],
                "properties": {
                  "entity_id": {
                    "type": "integer",
                    "description": "ID послуги або товару",
                    "format": "int32"
                  },
                  "assignee_id": {
                    "type": "integer",
                    "description": "ID виконавця",
                    "format": "int32"
                  },
                  "quantity": {
                    "type": "number",
                    "description": "Кількість",
                    "format": "float"
                  },
                  "price": {
                    "type": "number",
                    "description": "Ціна за одиницю",
                    "format": "float"
                  },
                  "cost": {
                    "type": "number",
                    "description": "Собівартість одиниці",
                    "format": "float"
                  },
                  "discount": {
                    "type": "object",
                    "description": "Об'єкт знижки на позицію",
                    "required": [
                      "type",
                      "percentage",
                      "amount",
                      "sponsor"
                    ],
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "Discount type. \"percentage\" — percent, \"value\" — absolute value.",
                        "default": "percentage",
                        "enum": [
                          "percentage",
                          "value"
                        ]
                      },
                      "percentage": {
                        "type": "number",
                        "description": "Percentage value",
                        "default": 0,
                        "format": "float"
                      },
                      "amount": {
                        "type": "number",
                        "default": 0,
                        "format": "float"
                      },
                      "sponsor": {
                        "type": "string",
                        "description": "\"staff\" — Employee wages calculation is based on the amount after discount. This way the company discount decreases the piecework employee wages. \"company\" — Employee commissions will be calculated from amount before discount. This way the company discount won't affect the employee commissions.",
                        "default": "staff",
                        "enum": [
                          "staff",
                          "company"
                        ]
                      }
                    }
                  },
                  "warranty": {
                    "type": "object",
                    "description": "Об'єкт гарантії клієнту на позицію",
                    "required": [
                      "period",
                      "periodUnits"
                    ],
                    "properties": {
                      "period": {
                        "type": "integer",
                        "description": "Warranty period",
                        "default": 0,
                        "format": "int32"
                      },
                      "periodUnits": {
                        "type": "string",
                        "description": "Warranty unit of measure",
                        "default": "days",
                        "enum": [
                          "days",
                          "months"
                        ]
                      }
                    }
                  },
                  "tax_ids": {
                    "type": "array",
                    "description": "Масив ID податків",
                    "items": {
                      "type": "integer",
                      "format": "int32"
                    }
                  },
                  "comment": {
                    "type": "string",
                    "description": "Текст коментаря"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
```