[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcatalog-offers\u002Fcreate":3,"docs-tabs-entities\u002Fcatalog-offers\u002Fcreate":6},{"content":4,"lastmod":5},"\n## Create an offer\n\n`POST \u002Fv1\u002Fcatalog-offers`\n\nCreates a product offer in the offers catalog and links it to a parent product. Fields are passed flat at the JSON root.\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|------|-----|:-----:|---------|\n| `name` | string | yes | Offer name |\n| `iblockId` | number | yes | Offers catalog ID — the catalog that has `productIblockId` set. List: `GET \u002Fv1\u002Fcatalogs` |\n| `parentId` | object | no | Link to the parent product: `{ \"value\": \"\u003CID>\" }`, with the ID as a string. List: `GET \u002Fv1\u002Fcatalog-skus`. Without this field, a free offer with `type: 5` is created |\n| `active` | boolean | no | Whether the offer is active. Defaults to `true` |\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\nThe symbolic code, dimensions, texts, images and catalog properties `propertyNNN` are listed in [Offer fields](.\u002Ffields.md). The selling price is set separately — in [`POST \u002Fv1\u002Fcatalog-prices`](\u002Fdocs\u002Fentities\u002Fcatalog-prices\u002Fcreate) with the offer `id` in `productId`.\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-offers\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"name\": \"Basic T-shirt, size M\",\n    \"iblockId\": 27,\n    \"parentId\": { \"value\": \"7189\" },\n    \"measure\": 9,\n    \"purchasingPrice\": 450,\n    \"purchasingCurrency\": \"USD\"\n  }'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-offers\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"name\": \"Basic T-shirt, size M\",\n    \"iblockId\": 27,\n    \"parentId\": { \"value\": \"7189\" },\n    \"measure\": 9,\n    \"purchasingPrice\": 450,\n    \"purchasingCurrency\": \"USD\"\n  }'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-offers', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    name: 'Basic T-shirt, size M',\n    iblockId: 27,\n    parentId: { value: '7189' },\n    measure: 9,\n    purchasingPrice: 450,\n    purchasingCurrency: 'USD',\n  }),\n})\n\nconst { success, data } = await res.json()\nconsole.log('Offer ID:', data.id)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-offers', {\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({\n    name: 'Basic T-shirt, size M',\n    iblockId: 27,\n    parentId: { value: '7189' },\n    measure: 9,\n    purchasingPrice: 450,\n    purchasingCurrency: 'USD',\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 created 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    \"iblockSectionId\": null,\n    \"name\": \"Basic T-shirt, size M\",\n    \"parentId\": { \"value\": \"7189\", \"valueId\": \"3895\" },\n    \"type\": 4,\n    \"active\": true,\n    \"available\": true,\n    \"code\": null,\n    \"xmlId\": \"7191\",\n    \"measure\": 9,\n    \"purchasingPrice\": 450,\n    \"purchasingCurrency\": \"USD\",\n    \"quantity\": null,\n    \"quantityTrace\": true,\n    \"canBuyZero\": true,\n    \"vatIncluded\": false,\n    \"createdBy\": 1295,\n    \"dateCreate\": \"2026-10-08T18:41:55.000Z\",\n    \"timestampX\": \"2026-10-08T18:41:55.000Z\"\n  }\n}\n```\n\n## Error response example\n\n400 — a required field was not passed:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"MISSING_REQUIRED_FIELDS\",\n    \"message\": \"Body field \\\"name\\\" is required to create catalogOffer.\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|----------|\n| 400 | `MISSING_REQUIRED_FIELDS` | A required field was not passed — the message names it. An empty body is rejected with a message about `iblockId` |\n| 400 | `READONLY_FIELD` | The body contains a read-only field, for example `available` |\n| 422 | `BITRIX_ERROR` | No parent product with the ID from `parentId` exists (`Parent product not found.`) |\n| 422 | `BITRIX_ERROR` | `iblockId` holds the ID of a product catalog, not an offers catalog (`productType is not allowed for this catalog`) |\n| 422 | `BITRIX_ERROR` | No catalog with the specified `iblockId` exists (`iblock is not catalog`) |\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## See also\n\n- [List offers](\u002Fdocs\u002Fentities\u002Fcatalog-offers\u002Flist)\n- [Get an offer](\u002Fdocs\u002Fentities\u002Fcatalog-offers\u002Fget)\n- [Update an offer](\u002Fdocs\u002Fentities\u002Fcatalog-offers\u002Fupdate)\n- [Delete an offer](\u002Fdocs\u002Fentities\u002Fcatalog-offers\u002Fdelete)\n- [Catalog SKUs](\u002Fdocs\u002Fentities\u002Fcatalog-skus)\n- [Catalog prices](\u002Fdocs\u002Fentities\u002Fcatalog-prices)\n- [Batch](\u002Fdocs\u002Fbatch)\n- [Limits and optimization](\u002Fdocs\u002Foptimization)\n","2026-10-08",{},1795415192214]