Create a product
create_productCreates one catalog product with its SKU, name, barcode, cost, price, weight and supplier links. Returns the product id, SKU and sku_url.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | ||
| name | No | ||
| type | Yes | standard, bundle, kit, matrix, blemished or manufactured. | |
| images | No | [{url, download: true}]. | |
| weight | No | ||
| barcode | No | UPC, EAN or GTIN. | |
| dry_run | No | Validate only; saves nothing. | |
| suppliers | No | [{supplier_id or supplier_name, supplier_sku, is_default}]. | |
| unit_cost | No | ||
| attributes | No | Attribute values: [{name, value}]. | |
| brand_name | No | ||
| weight_unit | No | lb, g, kg or oz. | |
| default_price | No | Default selling price. | |
| idempotency_key | No | A repeat with this key replays the first result. | |
| default_supplier_price | No |