Müşteri (Customer)
Müşteri Güncelle
Müşteri bilgilerini günceller. Yalnız gönderilen alanlar değişir.
Uç Nokta
İstek yöntemi: PATCH · Yetki: write (yazma)
PATCH
/api/commerce/v1/customers/: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 | Müşteri kimliği |
Gövde Alanları
Content-Type: application/json ile gönderin. * işaretli alanlar zorunludur.
| Alan | Tip | Açıklama |
|---|---|---|
| string | E-posta | |
| phone | string | Telefon |
| first_name | string | Ad |
| last_name | string | Soyad |
| accepts_marketing | boolean | Pazarlama izni |
| tags | string[] | Etiketler (tamamını değiştirir) |
| note | string | Dahili not |
İstek (cURL)
cURL
curl -X PATCH "https://www.arsigo.com/api/commerce/v1/customers/c12…" \
-H "Authorization: Bearer ark_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "accepts_marketing": false }'Yanıt
200 OK · application/json
{
"data": {
"id": "c12…",
"email": "ayse@example.com",
"firstName": "Ayşe",
"lastName": "Yılmaz",
"acceptsMarketing": false,
"tags": ["vip"],
"updatedAt": "2026-06-21T12:30:00Z"
}
}