ERP

shipments

15 uç · /api/erp/v1/shipments

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

GET/api/erp/v1/shipments

List shipments

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

Create shipment

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

Sevkiyat kargo gönderimini iptal et (CargoProvider seam; stub, canlı EF15).

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

Carrier quotes

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

Shipment desi

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

Sevkiyatı kargo firmasına ver (none→dispatched, CargoProvider seam; stub, canlı EF15).

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

Sevkiyatın kargo dispatch/takip denetim olaylarını listele (keyset).

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

Apply shipment freight

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

Invoice cargo cost

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

List shipment labels

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

Etiketi elle yükle/kaydet (canlı sürücü yokken kargo firmasının portalından indirilen PDF).

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

**Etiketi indir** — güncel sürümün gövdesini döner (yoksa referansı).

OturumYol parametresi: id

⭐ Gövde base64 olarak döner: bu uç JSON zarfı kullanan ERP API sözleşmesinin içindedir ve ham `application/pdf` döndürmek zarf sözleşmesini (data/trace_id) kırardı. İstemci base64'ü çözüp yazıcıya verir.

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

Reprint shipment label

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

Set shipment status

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

Sevkiyat kargo durumunu takip et (CargoProvider seam; stub no-op, canlı EF15).

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