Create a product
Rate limit: 5 requests / minute per shop. See Rate limiting.
Creates a product from a design or a digital product.
offer_writeAPI keys have full access to this endpoint.Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
- Create Design Product Request
- Create Digital Product Request
- Create Customization Product Request
Create a product by running the design pipeline: renders each region's registered image into mockups and creates a purchasable product. The product is created hidden unless publishOnCreate is true.
Id of the product template to render the design onto, from GET /open-api/v1.0/product-templates.
"pro_k66ZW4fsRm6c2def3itltA"
Design regions to place on the product. Each region references a registered media image by id (register it via POST /open-api/v1.0/media/images and pass the returned id as imageId).
Product name
"My Awesome Design Tee"
Colors to render. Defaults to all available product colors when omitted. Values not offered by the product are ignored; the request is rejected with 400 if none of the supplied colors are available.
Sizes to include. Defaults to all available product sizes when omitted. Values not offered by the product are ignored; the request is rejected with 400 if none of the supplied sizes are available. When both colors and sizes are supplied, the request is also rejected with 400 if no requested color/size combination is an available variant.
Product description
"Limited edition design"
Profit margin in USD applied on top of the base cost.
10
Publish the product immediately on creation. Defaults to false (product stays hidden).