Products
Create a product
Codes: SLUG_TAKEN, SKU_TAKEN, PLAN_LIMIT_REACHED (plan’s product limit), PHYSICAL_GOODS_NOT_ENABLED.
Permission: products:write
POST
Create a product
Yetkilendirmeler
Your Store API key (pk_live_...). Create it in Developers › API keys.
The ID of the store the request is for. Shown in Developers › API keys.
Başlıklar
Unique key (for example a UUID) that makes retries safe. The first response is stored for 24 hours and replayed for retries with the same key and body.
Maximum string length:
255Gövde
application/json
Maximum string length:
255Generated from the name when omitted.
Mevcut seçenekler:
file, serial, subscription, donation, contact, physical Mevcut seçenekler:
single, variants, donation Mevcut seçenekler:
draft, active, archived Mevcut seçenekler:
public, unlisted, private Gerekli aralık:
x >= 0Gerekli aralık:
0 <= x <= 100Gerekli aralık:
x >= -1Image URLs (http/https), max 50.
Physical only.
Physical only.
Physical only.
Required when product_kind is variants. Same fields as POST /products/{id}/variants.