Autentifikacija
Ova krajnja tačka je javna. Ona ne zahteva nikakve akreditive ni organizaciju — to je ono što čitaju naš sopstveni marketinški sajt i AI mašine za odgovore.
Ovaj krajnji tačka ne prihvata ID organizacije. Vaš ključ već identifikuje organizaciju kojoj pripada, a odgovor je ograničen na nju.
Isprobajte
Zamenite bilo šta u uglastim zagradama sopstvenim vrednostima, a ključni placeholder sa ključem sa vaše kontrolne table.
curl -X POST https://api.zinndigital.com/v1/public/cart \
-H "Content-Type: application/json" \
-d '{ }'Prijavljeni ste? API konzola na vašoj kontrolnoj tabli automatski popunjava ID vaše stvarne organizacije i vaš sopstveni ključ, i izvršava zahtev nad API-jem uživo tako da možete videti stvarni odgovor. Otvorite ovu krajnju tačku u API konzoli
Detalji
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).
Telo zahteva
| Naziv | Vrsta | Obavezno | Šta je ovo |
|---|---|---|---|
currency | CurrencyCode | Ne | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
product_line | string | Ne | — |
Odgovor
| Naziv | Vrsta | Obavezno | Šta je ovo |
|---|---|---|---|
id | Uuid | Da | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
token | string | Ne | The bearer token. Returned **only** from `createPublicCart` — it is absent on every subsequent read, because only its digest is stored. |
status | string<open, converted, expired> | Da | — |
currency | CurrencyCode | Da | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
product_line | string | Ne | — |
expires_at | string | Da | After this the cart is gone — reads 404 whether or not it has been purged. |
items | PublicCartItem[] | Da | — |
totals | PublicCartTotals | Da | Pre-tax totals. Tax appears on the order, once a billing country exists. |
Greške koje ovaj krajnji tačka može da vrati
422 · 429