public

GET /v1/public/cart/{token}

Get 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 GET https://api.zinndigital.com/v1/public/cart/{token}

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

Returns the cart with every item re-priced from the live catalog and its pre-tax totals. Tax is not computed here — it depends on the billing country, which a guest cart does not have until checkout. A token that is unknown, malformed, expired or already checked out all return the same `404`.

Mga Parameter

PangalanUriKailanganAno ito
token (path)stringOoThe anonymous cart's opaque bearer token (`zgc_…`), as returned by `createPublicCart`. **It is a credential** — anyone holding it can read and modify the cart — and it travels i…

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

404 · 422 · 429