public

GET /v1/public/cart/{token}

Get an anonymous cart.

सबै public इन्डपइन्टहरू

प्रमाणीकरण

यो इन्डपइन्ट सार्वजनिक हो। यसले कुनै पनि प्रमाण पत्र र संस्था लिँदैन — यो हाम्रो आफ्नै मार्केटिङ साइट र AI उत्तर इन्जिनहरूले पढ्ने कुरा हो।

यो इन्डपोइन्टले कुनै संस्थाको आइडी लिँदैन। तपाईंको कुञ्जीले यस अन्तर्गत पर्ने संस्थालाई पहिल्यै पहिचान गर्छ, र प्रतिक्रिया त्यसैमा सीमित हुन्छ।

प्रयास गर्नुहोस्

कोणीय कोष्ठकभित्र भएका जुनसुकै कुरालाई आफ्नो मानहरूद्वारा बदल्नुहोस्, र मुख्य स्थानहोल्डरलाई तपाईंको ड्यासबोर्डको कुञ्जीद्वारा बदल्नुहोस्।

curl -X GET https://api.zinndigital.com/v1/public/cart/{token}

लगइन गर्नुभएको छ? तपाईंको ड्यासबोर्डमा रहेको API कन्सोलले तपाईंको वास्तविक संस्थाको आईडी र आफ्नै कुञ्जी भरिदिन्छ, र लाइभ API विरुद्ध अनुरोध चलाउँछ ताकि तपाईंले वास्तविक प्रतिक्रिया हेर्न सक्नुहोस्। यो एन्डपोइन्टलाई API कन्सोलमा खोल्नुहोस्

विवरणहरू

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

प्यारामिटरहरू

नामप्रकारआवश्यकयो के हो
token (path)stringहुन्छThe 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…

प्रतिक्रिया

नामप्रकारआवश्यकयो के हो
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.

यो इन्डपोइन्टले फर्काउन सक्ने त्रुटिहरू

404 · 422 · 429