ERP

audit

2 endpoints · /api/erp/v1/audit

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

GET/api/erp/v1/audit

GET /api/erp/v1/audit — bu kiracının ERP denetim izi (yeni→eski).

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

GET /api/erp/v1/audit/changes — kayıt düzeyinde önce/sonra diff (yeni→eski).

Oturum

⭐ RLS zaten kiracıyı ayırır; yine de tenant_id süzgeci AÇIKÇA yazılır — okuma yolu bir gün GUC'suz bir havuza taşınırsa sessizce her şeyi dönmesin (savunmada derinlik).

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