Ürün (Product)
Temel Ürün Oluştur
Varyantsız temel bir ürün oluşturur. slug otomatik üretilir (çakışırsa benzersiz sonek eklenir).
Uç Nokta
İstek yöntemi: POST · Yetki: write (yazma)
POST
/api/commerce/v1/productsBu işlem yazma yetkisi gerektirir. Anahtarınızın scope listesinde
write olmalı; aksi halde 403 forbidden döner.Gövde Alanları
Content-Type: application/json ile gönderin. * işaretli alanlar zorunludur.
| Alan | Tip | Açıklama |
|---|---|---|
| name* | string | Ürün adı |
| description | string | Açıklama |
| status | string | draft (varsayılan), active, archived |
| price | number | Taban fiyat |
| compare_at_price | number | Eski/üstü çizili fiyat |
| sku | string | Stok kodu |
| barcode | string | Barkod |
| tax_rate | number | KDV oranı (%) |
İstek (cURL)
cURL
curl -X POST "https://www.arsigo.com/api/commerce/v1/products" \
-H "Authorization: Bearer ark_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "name": "Pamuklu Tişört", "price": 199.90, "status": "active" }'Yanıt
200 OK · application/json
{
"data": {
"id": "p55…",
"name": "Pamuklu Tişört",
"slug": "pamuklu-tisort",
"status": "active",
"price": 199.90,
"compareAtPrice": null,
"sku": null,
"createdAt": "2026-06-21T12:45:00Z"
}
}