--- title: "Manage products through the api" slug: "manage-products-through-the-api" updated: 2026-10-29T16:45:26Z published: 2026-10-29T16:45:26Z canonical: "support.ordercentral.io/manage-products-through-the-api" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.ordercentral.io/llms.txt > Use this file to discover all available pages before exploring further. # Manage products through the api This guide explains how to create **Simple**, **Configurable**, and **Grouped** products through the OrderCentral API, with a focus on request structure and endpoint usage. Scope of this guide: - Product creation and product structure management only - No authentication details ## 1. Product model essentials All product creation uses: - `POST /product` - Body schema discriminated by `productType` Supported `productType` values: - `Simple` - `Configurable` - `Grouped` Common useful fields: - `title` (required): localized text object - `description`, `features` - `active` - `categories` (optional on create) - `images` (optional on create) - `addons` (optional on create) Key reusable objects: - `sku`: SKU reference (`skuId` or `externalSkuCode`) - `prices[]`: price entries (schema requires at least `type` and `unitPrice`; include `currencyIsoCode` as needed) - `optionTypes[]`: option dimensions (for example `color`, `size`) - `options[]`: variant or grouping rows - `optionItems[]`: component items inside grouped options ## 2. Create a Simple product Use a single product-level SKU and product-level prices. Endpoint: - `POST /product` Minimal payload: ``` { "productType": "Simple", "title": { "value": "Atlas Standard Shingle" }, "active": true, "sku": { "externalSkuCode": "SHINGLE-STD-001" }, "prices": [ { "type": "Gold", "unitPrice": 19.99, "currencyIsoCode": "USD" } ] } ``` Notes: - `sku` is required for `Simple`. - At least one `prices` entry is required for `Simple`. - Use `externalSkuCode` consistently to reduce duplicate creation risk across retries. ## 3. Create a Configurable product Use product-level `optionTypes` and per-option SKU + price. Endpoint: - `POST /product` Minimal payload: ``` { "productType": "Configurable", "title": { "value": "Atlas Roof Vent" }, "active": true, "optionTypes": [ { "key": "color", "label": { "value": "Color" } }, { "key": "size", "label": { "value": "Size" } } ], "options": [ { "label": { "value": "Black / Small" }, "optionValues": [ { "typeKey": "color", "value": { "value": "Black" } }, { "typeKey": "size", "value": { "value": "Small" } } ], "sku": { "externalSkuCode": "VENT-BLK-S" }, "prices": [ { "type": "Gold", "unitPrice": 24.0, "currencyIsoCode": "USD" } ] }, { "label": { "value": "White / Large" }, "optionValues": [ { "typeKey": "color", "value": { "value": "White" } }, { "typeKey": "size", "value": { "value": "Large" } } ], "sku": { "externalSkuCode": "VENT-WHT-L" }, "prices": [ { "type": "Gold", "unitPrice": 29.0, "currencyIsoCode": "USD" } ] } ] } ``` Rules to respect: - `optionTypes` should be defined for configurable products. - Every `options[i].optionValues[].typeKey` must match an `optionTypes[].key`. - Every option row needs its own `sku` and at least one price. ## 4. Create a Grouped product Use options that contain `optionItems` (bundle/component rows), each with SKU and quantity. Endpoint: - `POST /product` Minimal payload: ``` { "productType": "Grouped", "title": { "value": "Starter Roofing Kit" }, "active": true, "optionTypes": [ { "key": "bundle", "label": { "value": "Bundle" } } ], "options": [ { "label": { "value": "Base Kit" }, "optionValues": [ { "typeKey": "bundle", "value": { "value": "Base" } } ], "optionItems": [ { "sku": { "externalSkuCode": "KIT-ITEM-UNDERLAY" }, "quantity": 1, "prices": [ { "type": "Gold", "unitPrice": 10.0, "currencyIsoCode": "USD" } ] }, { "sku": { "externalSkuCode": "KIT-ITEM-NAILS" }, "quantity": 2, "prices": [ { "type": "Gold", "unitPrice": 5.5, "currencyIsoCode": "USD" } ] } ] } ] } ``` Rules to respect: - Grouped product requires `options`. - Each option requires at least one `optionItems` row. - Each `optionItems[j]` requires `sku` and `quantity` (`>= 1`). ## 5. Typical response and next step Successful create response: ``` { "id": "a0Bxx0000000003" } ``` Use returned `id` as `productId` in follow-up operations. ## 6. Follow-up endpoints for incremental updates After initial creation, you can evolve structure incrementally: - Update top-level product fields: - `PATCH /product/{productId}` - Add a new variant/group option row: - `POST /product/{productId}/options` - Update an option row: - `PATCH /product/{productId}/options/{optionId}` - Add grouped option item: - `POST /product/{productId}/options/{optionId}/items` - Update grouped option item: - `PATCH /product/{productId}/options/{optionId}/items/{itemId}` - Replace categories: - `PUT /product/{productId}/categories` - Upsert a product-level price: - `PUT /product/{productId}/prices` - Update translations: - `PATCH /product/{productId}/translations` - Add/replace addons: - `POST /product/{productId}/addons` or `PUT /product/{productId}/addons` ## 7. Recommended creation patterns Pattern A: One-shot create (fastest) 1. Build a complete `POST /product` payload including options/items/prices. 2. Create product once. 3. Save returned `productId` in your source system. Pattern B: Progressive build (safer for complex catalogs) 1. Create base product with minimum required fields. 2. Add options/items in smaller calls. 3. Upsert prices/categories/translations in dedicated endpoints. Pattern C: Retry-safe integration behavior 1. Use stable vendor keys (`externalSkuCode`) in all SKU references. 2. On retry, first `GET /product/{productId}` if you already have an internal mapping. 3. Use update/upsert endpoints instead of recreating where possible. ## 8. Validation and error behavior to plan for Common failure responses: - `400` validation errors (missing required fields, invalid references, bad shape) - `404` referenced record or product not found - `403` permission errors Practical checks before sending: - `productType` matches payload structure - Option `typeKey` values map to defined `optionTypes` - Grouped item quantities are positive integers - SKU references exist and are resolvable ## 9. Quick endpoint map by product type - Simple: - Create with `sku` + `prices` at product level - Maintain with `PATCH /product/{productId}` and `PUT /product/{productId}/prices` - Configurable: - Create with `optionTypes` + `options[]` (each option has `sku` + `prices`) - Maintain with options endpoints - Grouped: - Create with `options[]` containing `optionItems[]` - Maintain with option item endpoints