settlements
4 endpoints · /api/shop/v1/settlements
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.
Admin: retention config oku (gün eşikleri; null = o tablo için kapalı).
OturumYol parametresi:
idİstek
curl -X GET "https://{slug}.shop.blesyum.app/api/shop/v1/admin/settlements/<id>" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Satıcı hakedişi (settlement): accrued tahakkukları payout'a topla.
OturumYol parametresi:
idİstek
curl -X POST "https://{slug}.shop.blesyum.app/api/shop/v1/admin/settlements/<id>/settle" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}BLE-5103/5116 · toplu kod-üretici: prefix + rastgele-sonek havuzu; çakışma önleme
Oturum
on-conflict-do-nothing + yeniden-deneme (deterministik olmayan sonek UUID'den türetilir — pratikte çakışma sıfıra yakın; teoride tükenirse 409). Üretilen kodlar yanıtta döner.
İstek
curl -X POST "https://{slug}.shop.blesyum.app/api/shop/v1/admin/settlements/generate" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Bu sayfa işine yaradı mı?