Arsigo Builders

Müşteri (Customer)

Müşteri Oluştur

Yeni müşteri kaydı oluşturur. En az email veya phone gereklidir.

Uç Nokta

İstek yöntemi: POST · Yetki: write (yazma)

POST/api/commerce/v1/customers
Bu 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.

AlanTipAçıklama
emailstringE-posta (mağaza içinde benzersiz)
phonestringTelefon
first_namestringAd
last_namestringSoyad
accepts_marketingbooleanPazarlama izni
tagsstring[]Etiketler
notestringDahili not

İstek (cURL)

cURL
curl -X POST "https://www.arsigo.com/api/commerce/v1/customers" \
  -H "Authorization: Bearer ark_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{ "email": "yeni@example.com", "first_name": "Mehmet", "tags": ["toptan"] }'

Yanıt

200 OK · application/json
{
  "data": {
    "id": "c99…",
    "email": "yeni@example.com",
    "phone": null,
    "firstName": "Mehmet",
    "lastName": null,
    "acceptsMarketing": false,
    "tags": ["toptan"],
    "createdAt": "2026-06-21T12:00:00Z"
  }
}