[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcatalog-offers\u002Fupdate":3,"docs-tabs-entities\u002Fcatalog-offers\u002Fupdate":6},{"content":4,"lastmod":5},"\n## Update an offer\n\n`PATCH \u002Fv1\u002Fcatalog-offers\u002F:id`\n\nUpdates an existing product offer. Fields are passed flat at the JSON root. Pass only the ones you change — the rest keep their current values.\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|----------|-----|:-----:|---------|\n| `id` (path) | number | yes | Offer identifier. List: [`GET \u002Fv1\u002Fcatalog-offers`](.\u002Flist.md) |\n\n## Request fields (body)\n\nThe main updatable fields are `name`, `active`, `purchasingPrice`, and `quantity`.\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|---------|\n| `name` | string | no | Offer name |\n| `active` | boolean | no | Whether the offer is active |\n| `iblockSectionId` | number | no | Catalog section ID. List: `GET \u002Fv1\u002Fcatalog-sections` |\n| `measure` | number | no | Unit of measure ID. List: `GET \u002Fv1\u002Fcatalog-measures` |\n| `weight` | number | no | Weight of one product unit |\n| `vatIncluded` | boolean | no | VAT included in the price |\n| `canBuyZero` | boolean | no | Allow purchase when stock is zero |\n| `quantityTrace` | boolean | no | Enable quantity tracking |\n| `subscribe` | boolean | no | Allow subscription to the product |\n| `barcodeMulti` | boolean | no | Separate barcodes for product units |\n| `withoutOrder` | boolean | no | Available for ordering without stock on hand |\n| `purchasingPrice` | number | no | Purchase price |\n| `purchasingCurrency` | string | no | Purchase price currency. List: `GET \u002Fv1\u002Fcurrencies` |\n| `quantity` | number | no | Stock on hand |\n| `quantityReserved` | number | no | Reserved quantity |\n| `code` | string | no | Symbolic code |\n| `xmlId` | string | no | External code |\n| `sort` | number | no | Sort order |\n| `vatId` | number | no | VAT rate ID. List: `GET \u002Fv1\u002Fcatalog-vat-rates` |\n| `height` | number | no | Height |\n| `length` | number | no | Length |\n| `width` | number | no | Width |\n| `dateActiveFrom` | datetime | no | Activity start |\n| `dateActiveTo` | datetime | no | Activity end |\n| `previewText` | string | no | Preview text |\n| `detailText` | string | no | Detailed description |\n| `previewTextType` | string | no | Preview text format: `text` or `html` |\n| `detailTextType` | string | no | Detailed description format: `text` or `html` |\n| `previewPicture` | object | no | Preview image |\n| `detailPicture` | object | no | Detailed image |\n| `iblockSection` | object | no | Array of IDs of the catalog sections the offer belongs to. List: `GET \u002Fv1\u002Fcatalog-sections` |\n| `recurSchemeLength` | number | no | Payment period length. Only for on-premise Bitrix24 when selling content |\n| `recurSchemeType` | string | no | Payment period unit: `H`, `D`, `W`, `M`, `Q`, `S`, `Y`. Only for on-premise Bitrix24 when selling content |\n| `trialPriceId` | number | no | ID of the trial payment product. Only for on-premise Bitrix24 when selling content |\n| `propertyNNN` | object\u002Farray | no | Catalog property value as an object `{ \"value\": … }`, where `NNN` is the property ID. Catalog properties are listed in [`GET \u002Fv1\u002Fcatalog-offers\u002Ffields?iblockId=\u003Cid>`](.\u002Ffields.md) |\n\n**The body must contain at least one writable field.** An empty `PATCH` is rejected with `400 EMPTY_UPDATE_BODY`, and a body with only unknown field names is rejected with `400 NO_RECOGNIZED_UPDATE_FIELDS`.\n\nThe `parentId`, `iblockId` and `type` fields are not accepted on update: the link to the parent product and the catalog are set at creation, and Bitrix24 computes the type. Fields with `readonly: true` in [Offer fields](.\u002Ffields.md), for example `available`, are filled by the system. A body with any of these fields is rejected with `400 READONLY_FIELD`.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X PATCH \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-offers\u002F7191\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"purchasingPrice\": 470\n  }'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X PATCH \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-offers\u002F7191\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"purchasingPrice\": 470\n  }'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-offers\u002F7191', {\n  method: 'PATCH',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    purchasingPrice: 470,\n  }),\n})\n\nconst { success, data } = await res.json()\nconsole.log('Purchase price:', data.purchasingPrice)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-offers\u002F7191', {\n  method: 'PATCH',\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({\n    purchasingPrice: 470,\n  }),\n})\n\nconst { success, data } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data` | object | Full object of the updated offer. The field set is the same as in [`GET \u002Fv1\u002Fcatalog-offers\u002F:id`](.\u002Fget.md) |\n\n## Response example\n\nThe main fields are shown.\n\n```json\n{\n  \"success\": true,\n  \"data\": {\n    \"id\": 7191,\n    \"iblockId\": 27,\n    \"name\": \"Basic T-shirt, size M\",\n    \"parentId\": { \"value\": \"7189\", \"valueId\": \"3895\" },\n    \"type\": 4,\n    \"active\": true,\n    \"available\": true,\n    \"measure\": 9,\n    \"purchasingPrice\": 470,\n    \"purchasingCurrency\": \"USD\",\n    \"quantity\": null,\n    \"dateCreate\": \"2026-10-08T18:41:55.000Z\",\n    \"timestampX\": \"2026-10-08T18:41:59.000Z\"\n  }\n}\n```\n\n## Error response example\n\n404 — no offer with the specified `id` exists:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"ENTITY_NOT_FOUND\",\n    \"message\": \"offer does not exist.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 404 | `ENTITY_NOT_FOUND` | No record with the specified `id` exists (`offer does not exist.`) |\n| 422 | `BITRIX_ERROR` | The `id` belongs to a regular product, not an offer (`productType is not allowed for this catalog`) |\n| 400 | `EMPTY_UPDATE_BODY` | The request body is empty — pass at least one field |\n| 400 | `NO_RECOGNIZED_UPDATE_FIELDS` | The body has no recognized writable field. The message lists the allowed ones |\n| 400 | `READONLY_FIELD` | The body contains a field that is not accepted on update: `parentId`, `iblockId`, `type` or a read-only field, for example `available` |\n| 403 | `SCOPE_DENIED` | The key lacks the `catalog` scope |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header was not passed |\n\nFull list of common API errors — [Errors](\u002Fdocs\u002Ferrors).\n\n## Known specifics\n\n**A catalog property is passed as an object.** A `PATCH` with a scalar property value — `\"property891\": \"B-200\"` — returns `200` but clears the value instead of writing it. String and list properties behave this way. Pass `{ \"value\": … }`, and for a list property pass the option ID as a string: `{ \"value\": \"1601\" }`. Option IDs are returned by [`GET \u002Fv1\u002Fcatalog-product-property-enums`](\u002Fdocs\u002Fentities\u002Fcatalog-product-property-enums\u002Flist) with `filter[propertyId]`. When you create an offer, a property also accepts a plain value.\n\n**An offer cannot be moved to another parent product.** `parentId` is set only at creation. To link the offer to another parent product, recreate it with the required `parentId` and delete the old one.\n\n## See also\n\n- [Create an offer](\u002Fdocs\u002Fentities\u002Fcatalog-offers\u002Fcreate)\n- [List offers](\u002Fdocs\u002Fentities\u002Fcatalog-offers\u002Flist)\n- [Get an offer](\u002Fdocs\u002Fentities\u002Fcatalog-offers\u002Fget)\n- [Delete an offer](\u002Fdocs\u002Fentities\u002Fcatalog-offers\u002Fdelete)\n- [Offer fields](\u002Fdocs\u002Fentities\u002Fcatalog-offers\u002Ffields)\n- [Catalog prices](\u002Fdocs\u002Fentities\u002Fcatalog-prices)\n- [Batch](\u002Fdocs\u002Fbatch)\n- [Limits and optimization](\u002Fdocs\u002Foptimization)\n","2026-10-12",{},1795415193311]