B2B

ext

8 uç · /api/b2b/v1/ext

İstek örnekleri ucun GERÇEK metodu ve yolundan üretilir. 8 ucun elle doğrulanmış gövde örneği henüz yok; o uçlarda iskelet gövdesizdir — uydurma bir alan yazmıyoruz.

GET/api/b2b/v1/ext/dealers

Tenant'ın bayilerini listele (staff salt-okunur; principal='staff' → hepsi).

Oturum
İstek
curl -X GET "https://{slug}.b2b.blesyum.app/api/b2b/v1/ext/dealers" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
GET/api/b2b/v1/ext/dealers/{id}

Tek bayiyi getir (staff salt-okunur; RLS + tenant_id → cross-tenant güvenli).

OturumYol parametresi: id
İstek
curl -X GET "https://{slug}.b2b.blesyum.app/api/b2b/v1/ext/dealers/<id>" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
GET/api/b2b/v1/ext/installation

GET /api/b2b/v1/ext/installation — anahtarın KENDİ install'ı (metadata; config/secret DÖNMEZ).

Oturum

Scope: `b2b:installation.read`.

İstek
curl -X GET "https://{slug}.b2b.blesyum.app/api/b2b/v1/ext/installation" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
GET/api/b2b/v1/ext/marketplace/apps

GET /api/b2b/v1/ext/marketplace/apps — B2B-scoped katalog (marketplace.rs REUSE). Scope: `b2b:marketplace.read`.

Oturum
İstek
curl -X GET "https://{slug}.b2b.blesyum.app/api/b2b/v1/ext/marketplace/apps" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
GET/api/b2b/v1/ext/orders

GET /api/b2b/v1/ext/orders — sipariş başlıkları. Scope: `b2b:orders.read`.

Oturum
İstek
curl -X GET "https://{slug}.b2b.blesyum.app/api/b2b/v1/ext/orders" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
GET/api/b2b/v1/ext/orders/{id}

GET /api/b2b/v1/ext/orders/{id} — başlık + satırlar + teslim adresi. Scope: `b2b:orders.read`.

OturumYol parametresi: id

Teslim adresi burada döner, listede DÖNMEZ: kargo eklentisinin ihtiyacı tek siparişte olur ve adres bir kişisel veridir — toplu listede dağıtmak veri asgariliğine aykırı olurdu.

İstek
curl -X GET "https://{slug}.b2b.blesyum.app/api/b2b/v1/ext/orders/<id>" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
GET/api/b2b/v1/ext/products

GET /api/b2b/v1/ext/products — ürün künyeleri. Scope: `b2b:products.read`.

Oturum
İstek
curl -X GET "https://{slug}.b2b.blesyum.app/api/b2b/v1/ext/products" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
GET/api/b2b/v1/ext/products/{id}

GET /api/b2b/v1/ext/products/{id}. Scope: `b2b:products.read`.

OturumYol parametresi: id
İstek
curl -X GET "https://{slug}.b2b.blesyum.app/api/b2b/v1/ext/products/<id>" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
Bu sayfa işine yaradı mı?