POST
Create a draft product

Authorizations

Authorization
string
header
required

A secret API key. Publishable keys cannot reach this API. A key may carry an expiry, and an expired key is refused exactly like an unknown one, with a 401 that names no reason; check the key's expires_at in the dashboard rather than inferring it from a response. When a merchant rolls a key's secret they choose a grace window of up to 3 days, and for its duration BOTH the new secret and the one it replaced authenticate, so an integration moves over on its own deploy schedule instead of at the instant the button is pressed. Move before the window closes: after it, the old secret is refused. Nothing else about this contract moves with a roll. The key keeps its id and its scopes, so the only thing an integration updates is the credential itself.

Headers

Idempotency-Key
string
required

A unique key per logical write. Replaying a request with the same key returns the first response byte for byte instead of applying the write twice.

Body

application/json

Creates the product as a DRAFT. Status is not settable here: a product goes live through POST /products/{productId}/publish, which is the only shape that carries the free-variant acknowledgement and a scheduled publish_at.

title
string
required
handle
string
required

Required on create, unlike the dashboard. Without it a retry outside the idempotency window mints a SECOND product at a suffixed handle; with it the retry collides and returns 409 handle_taken.

subtitle
string
description
string
thumbnail
string
meta_title
string
meta_description
string
attributes
object

Merchant-defined JSON, stored unchanged and unvalidated.

discountable
boolean

Defaults to true when omitted.

unpublish_at
string<date-time>
material
string
weight
string

A decimal string, not a number, matching the column and the read shape.

length
string
height
string
width
string
hs_code
string
mid_code
string
origin_country
string
options
object[]

Variant axes, fixed at creation. There is no route to change an option afterwards: every variant's selection is a foreign key into these values, so editing an axis would orphan them.

variants
object[]

Variants nest ONLY here. On a patch an array is a data-loss shape either way it is read, so edits go through the variant routes.

images
object[]

Response

Created

data
object