Ürün (Product)
Ürün Güncelle
Ürün alanlarını günceller. Yalnız gönderilen alanlar değişir.
Uç Nokta
İstek yöntemi: PATCH · Yetki: write (yazma)
PATCH
/api/commerce/v1/products/:idBu işlem yazma yetkisi gerektirir. Anahtarınızın scope listesinde
write olmalı; aksi halde 403 forbidden döner.Yol Parametreleri
| Alan | Tip | Açıklama |
|---|---|---|
| id* | uuid | Ürün kimliği |
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, active, archived |
| price | number | Taban fiyat |
| compare_at_price | number | Eski fiyat |
| sku | string | Stok kodu |
| barcode | string | Barkod |
| tax_rate | number | KDV oranı (%) |
İstek (cURL)
cURL
curl -X PATCH "https://www.arsigo.com/api/commerce/v1/products/p55…" \
-H "Authorization: Bearer ark_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "price": 179.90, "status": "active" }'Yanıt
200 OK · application/json
{
"data": {
"id": "p55…",
"name": "Pamuklu Tişört",
"slug": "pamuklu-tisort",
"status": "active",
"price": 179.90,
"updatedAt": "2026-06-21T13:00:00Z"
}
}