E-Ticaret

vendor

4 endpoints · /api/shop/v1/vendor

Request examples are generated from each endpoint's REAL method and path. 4 endpoints have no hand-verified body example yet; their skeleton has no body — we do not invent field names.

GET/api/shop/v1/vendor/earnings

Satıcı kazanç-özeti: brüt/komisyon/net/iade/ödenebilir-net toplamları (RLS-hapisli).

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

Satıcı kendi profili. RLS: marketplace_vendors vendor_col='id' → yalnız kendi satırı.

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

Satıcının sipariş-split defteri (vendor_orders). RLS-hapisli (kendi vendor_id'si).

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

Yayınlı ürünler (read_products). Public storefront list_products'ı REUSE eder (active+published).

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