public

POST /v1/public/cart

Open an anonymous cart.

Барлық public соңғы нүктелері

Аутентификация

Бұл соңғы нүкте жалпыға қолжетімді. Ол ешқандай тіркелгі деректерін және ешқандай ұйымды қажет етпейді — оны біздің өзіміздің маркетингтік сайтымыз бен жасанды интеллект жауап беретін жүйелеріміз оқиды.

Бұл соңғы нүкте ұйым идентификаторын қабылдамайды. Сіздің кілтіңіз оның қай ұйымға тиесілі екенін өзі анықтайды және жауап соған шектеледі.

Әрекет етіп көру

Бұрыштық жақшалардағы кез келген нәрсені өз мәндеріңізбен, ал кілт орналастырушысын басқару тақтасынан алынған кілтпен алмастырыңыз.

curl -X POST https://api.zinndigital.com/v1/public/cart \
  -H "Content-Type: application/json" \
  -d '{  }'

Жүйеге кіргенсіз бе? Бақылау тақтасындағы API консолі ұйымыңыздың нақты идентификаторы мен жеке кілтіңізді автоматты түрде толтырады да, нақты жауапты көре алуыңыз үшін сұрауды тікелей жұмыс істеп тұрған API арқылы орындайды. Бұл соңғы нүктені API консолінде ашыңыз

Мәліметтер

Creates an empty cart with **no organization and no user** and returns its opaque bearer `token`. The token is returned **only here** — nothing can re-derive it from the cart afterwards, so a client that loses it has lost the cart. It is a credential: treat it like one. The cart expires at `expires_at` (24 hours).

Сұрау денесі

АтыTүріМіндеттіМазмұны
currencyCurrencyCodeЖоқISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
product_linestringЖоқ

Жауап

АтыTүріМіндеттіМазмұны
idUuidИәUUIDv7 identifier — sortable by creation time (docs/02 §8).
tokenstringЖоқThe bearer token. Returned **only** from `createPublicCart` — it is absent on every subsequent read, because only its digest is stored.
statusstring<open, converted, expired>Иә
currencyCurrencyCodeИәISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
product_linestringЖоқ
expires_atstringИәAfter this the cart is gone — reads 404 whether or not it has been purged.
itemsPublicCartItem[]Иә
totalsPublicCartTotalsИәPre-tax totals. Tax appears on the order, once a billing country exists.

Бұл соңғы нүкте қайтара алатын қателер

422 · 429