checkout
4 endpoints · /api/shop/v1/checkout
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.
"Hemen al": tek-variant için sepet+oturum oluştur (mode=express). Opsiyonel adres/email prefill →
Oturum
tek-tık-hazır. Varyant geçersiz/pasif → 404. qty≤0 → 400. Money-safe (totals sunucu-hesaplı).
İstek
curl -X POST "https://{slug}.shop.blesyum.app/api/shop/v1/storefront/checkout/express" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Express place: checkout_flow::place'e delege (money-safe + idempotent + TOCTOU exactly-once). Adres/
Oturum
email eksik → 400 missing_data (fallback: normal /checkout ile doldur). Aynı oturum tekrar → idempotent.
İstek
curl -X POST "https://{slug}.shop.blesyum.app/api/shop/v1/storefront/checkout/express/place" \
-H "Authorization: Bearer <oturum-token>" \
-H "Accept: application/json"Yanıt
{
"data": "…",
"trace_id": "01JC…"
}Bu sayfa işine yaradı mı?