public

POST /v1/public/cart

Open an anonymous cart.

Lahat ng public endpoint

Pagpapatotoo

Ang endpoint na ito ay pampubliko. Wala itong kinukuha na kredensyal at organisasyon — ito ang binabasa ng aming sariling marketing site at mga AI answer engine.

Ang endpoint na ito ay hindi nangangailangan ng id ng organisasyon. Natutukoy na ng iyong key ang organisasyong kinabibilangan nito, at nakatuon ang tugon dito.

Subukan ito

Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.

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

Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API

Mga Detalye

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).

Katawan ng kahilingan

PangalanUriKailanganAno ito
currencyCurrencyCodeHindiISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
product_linestringHindi

Tugon

PangalanUriKailanganAno ito
idUuidOoUUIDv7 identifier — sortable by creation time (docs/02 §8).
tokenstringHindiThe bearer token. Returned **only** from `createPublicCart` — it is absent on every subsequent read, because only its digest is stored.
statusstring<open, converted, expired>Oo
currencyCurrencyCodeOoISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
product_linestringHindi
expires_atstringOoAfter this the cart is gone — reads 404 whether or not it has been purged.
itemsPublicCartItem[]Oo
totalsPublicCartTotalsOoPre-tax totals. Tax appears on the order, once a billing country exists.

Mga error na maibabalik ng endpoint na ito

422 · 429