E-Ticaret

license-keys

2 uç · /api/shop/v1/license-keys

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

POST/api/shop/v1/admin/license-keys/{id}/revoke

Anahtarı iptal et (status→revoked; iade/kötüye-kullanım). Yoksa 404.

OturumYol parametresi: id
İstek
curl -X POST "https://{slug}.shop.blesyum.app/api/shop/v1/admin/license-keys/<id>/revoke" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
GET/api/shop/v1/storefront/license-keys/{token}

Müşteri grant-token'ı ile tahsis-edilen (revoke-edilmemiş) lisans-anahtarını görür. Yoksa/revoked → 404.

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