[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fquotes\u002Fproducts-add":3,"docs-tabs-entities\u002Fquotes\u002Fproducts-add":6},{"content":4,"lastmod":5},"\n> A field name that is not in the writable set is no longer dropped silently — the request is rejected with `400 INVALID_PARAMS` and the error text lists the writable names. Read-only fields that appear in product-row responses (`priceAccount`, `ownerId`, `storeId` and others) are still accepted and ignored, so an object read via GET can be sent back as is.\n\n## Add a product to a quote\n\n`POST \u002Fv1\u002Fquotes\u002F:id\u002Fproducts`\n\nAdds a single product row to a quote. Unlike `PUT \u002Fv1\u002Fquotes\u002F:id\u002Fproducts`, it does not replace existing rows.\n\n## Request fields (body)\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `id` (path) | number | yes | Quote ID |\n| `productId` | number | no | Catalog product ID. If set without `productName`, the name is taken from the catalog. Catalog: `GET \u002Fv1\u002Fproducts` |\n| `productName` | string | no | Product row name — for a free-form row without a catalog product. Provide at least one of `productId` \u002F `productName`. |\n| `price` | number | no | Unit price |\n| `quantity` | number | no | Quantity |\n| `discountTypeId` | number | no | How the discount is set: `1` — as an amount in `discount`, `2` — as a percentage in `discountRate`. Defaults to `2` |\n| `discount` | number | no | Discount amount. Applied only when `discountTypeId` is `1` |\n| `discountRate` | number | no | Discount percentage. Applied only when `discountTypeId` is `2` |\n| `taxRate` | number | no | Tax rate (%) |\n| `taxIncluded` | boolean | no | Tax included in price |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fquotes\u002F52\u002Fproducts\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"productId\": 1, \"price\": 25000, \"quantity\": 2 }'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fquotes\u002F52\u002Fproducts\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{ \"productId\": 1, \"price\": 25000, \"quantity\": 2 }'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fquotes\u002F52\u002Fproducts', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({ productId: 1, price: 25000, quantity: 2 }),\n})\n\nconst { success, data } = await res.json()\nconsole.log('Row ID:', data.id)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fquotes\u002F52\u002Fproducts', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({ productId: 1, price: 25000, quantity: 2 }),\n})\n\nconst { success, data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `data` | object | The created product row in full, HTTP status `201`. Field set — [Product fields](\u002Fdocs\u002Fentities\u002Fquotes\u002Fproducts-fields) |\n\n## Response example\n\nKey fields shown. Full list — [Product fields](\u002Fdocs\u002Fentities\u002Fquotes\u002Fproducts-fields).\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 1465,\n    \"productId\": 1,\n    \"productName\": \"Server equipment\",\n    \"price\": 25000,\n    \"quantity\": 2,\n    \"discount\": 0,\n    \"discountTypeId\": 2,\n    \"taxIncluded\": false\n  }\n}\n```\n\n## Error response example\n\n404 — quote not found:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"Item not found\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `INVALID_PARAMS` | The body contains a field name that is not among the writable fields — see [Product fields](\u002Fdocs\u002Fentities\u002Fquotes\u002Fproducts-fields) |\n| 404 | `ENTITY_NOT_FOUND` | Quote not found |\n| 403 | `SCOPE_DENIED` | The API key does not have the `crm` scope |\n| 401 | `TOKEN_MISSING` | The API key has no configured tokens |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [Product rows](\u002Fdocs\u002Fentities\u002Fquotes\u002Fproducts-get)\n- [Set products](\u002Fdocs\u002Fentities\u002Fquotes\u002Fproducts-set)\n- [Delete a product](\u002Fdocs\u002Fentities\u002Fquotes\u002Fproducts-delete)\n- [CRM products](\u002Fdocs\u002Fentities\u002Fproducts)\n","2026-09-22",{},1794739406987]