ERP

service-contracts

6 endpoints · /api/erp/v1/service-contracts

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

GET/api/erp/v1/service-contracts

Servis sözleşmelerini listele (BLE2-12683: koleksiyon GET'i YOKTU).

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

Create service contract

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

Cancel contract

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

Sözleşmenin SLA olayları.

OturumYol parametresi: id

🔴 Bu uç 2026-08-25'te (14. tur) EKLENDİ: open_incident bir olay yazıyor, resolve_incident onu kapatmak için incident_id istiyor ve o kimliği veren hiçbir okuma ucu YOKTU — yani açılan olay bir daha görülemiyor, dolayısıyla çözülemiyordu.

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

Open incident

OturumYol parametresi: id
İstek
curl -X POST "https://{slug}.erp.blesyum.app/api/erp/v1/service-contracts/<id>/incidents" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
GET/api/erp/v1/service-contracts/{id}/sla-summary

Contract sla summary

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