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/customersBu 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 |
|---|---|---|
| string | E-posta (mağaza içinde benzersiz) | |
| phone | string | Telefon |
| first_name | string | Ad |
| last_name | string | Soyad |
| accepts_marketing | boolean | Pazarlama izni |
| tags | string[] | Etiketler |
| note | string | Dahili 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"
}
}