E-Ticaret

checkout-session

4 endpoints · /api/shop/v1/checkout-session

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.

POST/api/shop/v1/storefront/checkout-session

Yeni asistan oturumu (unguessable token). Storefront.

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

Slot güncelle. capacity, mevcut booked'ın altına inemez (pre-check → 409).

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

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/storefront/checkout-session/<id>" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
POST/api/shop/v1/storefront/checkout-session/{id}/place

Place

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