Create a product
/ admin/ v1/ stores/ {store_id}/ products- products:write
- Idempotency-Key supported
Creates a product with its variants. Without variants you get one per option combination, priced at zero, so send prices whenever you know them.
Path parameters
store_idstringrequiredThe store, as
store_01k9w2…. Apps get it from the install.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
titlestringrequiredThe name customers see.
handlestring · or nullIts address,
/products/{handle}. Made from the title when omitted.statusenum · or nullDefaults to draft, which storefronts never show.
- draft
- active
- archived
description_htmlstring · or nullFormatted text. Unsafe markup is removed on save.
variantsarray of objects · or nullPrices are Money in minor units:
{ "amount": 45000, "currency": "EGP" }is EGP 450.optionsarray of objects · or nullWhat varies, like weight or size, with its values.
media_idsarray of strings · or nullThe gallery in order, from files you uploaded.
launch_attimestamp · or nullWhen a draft goes live, within a year. Needs status draft.
Returns
201 with the product object. The ETag header carries its version, for If-Match on later updates.
Errors
- 403
forbiddenThe key or app lacksproducts:write. - 409
handle_takenAnother product in this store already uses the handle. - 409
sku_takenAnother product in this store already uses one of the SKUs. - 422
validation_failedField errors are listed inerrors[], each with its field.