collections
22 uç · /api/shop/v1/collections
İstek örnekleri ucun GERÇEK metodu ve yolundan üretilir. 22 ucun elle doğrulanmış gövde örneği henüz yok; o uçlarda iskelet gövdesizdir — uydurma bir alan yazmıyoruz.
VPOS tanımı ekle/güncelle (upsert bank). bank 1-32 char, threed_mode 3d|non3d. config_ref saklanır
Oturum
ama response'ta dönmez.
İstek
curl -X POST "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Collection update
OturumYol parametresi:
collection_idİstek
curl -X PATCH "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections/<collection_id>" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Collection delete
OturumYol parametresi:
collection_idİstek
curl -X DELETE "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections/<collection_id>" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Matches
OturumYol parametresi:
collection_idİstek
curl -X GET "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections/<collection_id>/matches" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Credential-listesi + kaldırma (müşteri-oturumu).
OturumYol parametresi:
collection_idİstek
curl -X GET "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections/<collection_id>/merchandising" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Ürün gümrük alanlarını ayarla (HS-code rakam ≤12; menşei ISO-2/3 harf). Yoksa 404.
OturumYol parametresi:
collection_idİstek
curl -X POST "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections/<collection_id>/merchandising" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}BLE-5057 · storefront kupon-önizleme (DRY-RUN): sepet-özeti verilen kodla hesaplanır —
OturumYol parametresi:
collection_idused_count/per-customer sayaçları TÜKETİLMEZ, sipariş oluşmaz (cart_summary reuse).
İstek
curl -X GET "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections/<collection_id>/merchandising/preview" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Products list
OturumYol parametresi:
collection_idİstek
curl -X GET "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections/<collection_id>/products" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Products add
OturumYol parametresi:
collection_idİstek
curl -X POST "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections/<collection_id>/products" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Product remove
OturumYol parametresi:
collection_idproduct_idİstek
curl -X DELETE "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections/<collection_id>/products/<product_id>" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Reevaluate
OturumYol parametresi:
collection_idİstek
curl -X POST "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections/<collection_id>/reevaluate" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Reorder
OturumYol parametresi:
collection_idİstek
curl -X POST "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections/<collection_id>/reorder" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Koleksiyonun kurallarını listele (BLE-5430 · kural-yapıcı ekranı).
OturumYol parametresi:
collection_idKural ekleme/silme uçları vardı ama OKUMA yoktu: panel kural yapıcısı mevcut kuralları
gösteremezdi (yalnız kör ekleme). Storefront'un kullandığı [collection_rules] REUSE edilir —
ikinci bir sorgu yok, yani admin gördüğü kural ile vitrinin uyguladığı kural ayrışamaz.
İstek
curl -X GET "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections/<collection_id>/rules" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Rule add
OturumYol parametresi:
collection_idİstek
curl -X POST "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections/<collection_id>/rules" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Rule delete
OturumYol parametresi:
collection_idrule_idİstek
curl -X DELETE "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections/<collection_id>/rules/<rule_id>" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Admin: retention config oku (gün eşikleri; null = o tablo için kapalı).
OturumYol parametresi:
collection_idİstek
curl -X GET "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections/<collection_id>/sort-rule" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Ürün gümrük alanlarını ayarla (HS-code rakam ≤12; menşei ISO-2/3 harf). Yoksa 404.
OturumYol parametresi:
collection_idİstek
curl -X PUT "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections/<collection_id>/sort-rule" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Recompute
OturumYol parametresi:
collection_idİstek
curl -X POST "https://{slug}.shop.blesyum.app/api/shop/v1/admin/collections/<collection_id>/sort-rule/recompute" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Koleksiyonlar (read_collections). Public list_collections_nav'ı REUSE eder (title+slug).
Oturum
İstek
curl -X GET "https://{slug}.shop.blesyum.app/api/shop/v1/headless/collections" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Bu sayfa işine yaradı mı?