Arsigo Builders

Ü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/:id
Bu işlem yazma yetkisi gerektirir. Anahtarınızın scope listesinde write olmalı; aksi halde 403 forbidden döner.

Yol Parametreleri

AlanTipAçıklama
id*uuidÜrün kimliği

Gövde Alanları

Content-Type: application/json ile gönderin. * işaretli alanlar zorunludur.

AlanTipAçıklama
namestringÜrün adı
descriptionstringAçıklama
statusstringdraft, active, archived
pricenumberTaban fiyat
compare_at_pricenumberEski fiyat
skustringStok kodu
barcodestringBarkod
tax_ratenumberKDV 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"
  }
}