public

POST /v1/public/cart/{token}/items

Add a domain to an anonymous cart.

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

प्रमाणीकरण

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

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

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

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

curl -X POST https://api.zinndigital.com/v1/public/cart/{token}/items \
  -H "Content-Type: application/json" \
  -d '{ "kind": <string<domain_register>>, "domain": <string>, "tld": <string>, "years": <integer>, "availability_token": <string> }'

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

विवरणहरू

Adds one `domain_register` item and returns the updated cart. `availability_token` is the `token` from a search result for **this exact name** and is required: it is what proves the item came out of a real, rate-limited search rather than being invented, so a name that search would not sell cannot be added here either. A stale, forged or now-taken name is a `409`. A cart holds at most 20 items, and one name may appear only once. The price is computed by the server; anything sent by the client is ignored.

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

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

अनुरोध बडी

नामप्रकारआवश्यकयो के हो
kindstring<domain_register>हुन्छ
domainstringहुन्छThe full FQDN (`acme.com`) or just the second-level label (`acme`) alongside `tld`. Both resolve to the same name; a sub-domain is rejected.
tldstringहुन्छ
yearsintegerहुन्छ
availability_tokenstringहुन्छThe `token` from a search result **for this exact name**. Required — it is what proves the item came from a real search, so nothing that search declines to sell can be added by…
privacybooleanहैन

प्रतिक्रिया

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