commerce

POST /v1/carts/{cartId}/checkout

Check out a cart — place and charge an order.

सर्व commerce एंडपॉइंट्स

प्रमाणीकरण

बेरर टोकन म्हणून API की पाठवा. की मध्ये billing.payment.manage परवानगी असणे आवश्यक आहे; ती नसलेली की 404 ऐवजी 403 सह नाकारली जाते.

या एंडपॉइंटला कोणतीही संस्था आयडी (organisation id) लागत नाही. तुमची की (key) आधीच ती कोणत्या संस्थेशी संबंधित आहे हे ओळखते आणि प्रतिसाद त्यानुसार मर्यादित केला जातो.

प्रयत्न करा

कोनसांस्कृतिक कंसात (<>) असलेली कोणतीही गोष्ट तुमच्या स्वतःच्या मूल्यांनी बदला आणि key प्लेसहोल्डरला तुमच्या डॅशबोर्डवरील किने बदला.

curl -X POST https://api.zinndigital.com/v1/carts/{cartId}/checkout \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

साइन इन केलेले आहे? तुमच्या डॅशबोर्डमधील API कन्सोल तुमची खरी संस्था आयडी आणि तुमची स्वतःची की आपोआप भरतो आणि लाइव्ह API विरुद्ध विनंती कार्यान्वित करतो जेणेकरून तुम्हाला वास्तविक प्रतिसाद पाहता येईल. एपी कन्सोलमध्ये हा एंडपॉइंट उघडा

तपशील

Converts the cart to an **immutable order**: re-prices every line, re-verifies each domain availability token (a stale/taken one is a `409`, with no charge), computes tax, places the order and charges it **wallet-first**. Fulfilment (provisioning/registration) then runs asynchronously as a Temporal workflow — this call never blocks on it (§2.9); poll the order `status` or the resource it produces. An **`Idempotency-Key` header is required**: a retried checkout returns the same order and never charges twice. Requires `billing.payment.manage`.

पॅरामीटर्स

नावप्रकारआवश्यकहे काय आहे
cartId (path)UuidहोयThe cart's id.
Idempotency-Key (header)stringनाहीClient-generated key that makes an unsafe request replay-safe: the server stores the first response and returns it verbatim for repeats.

विनंती मुख्य भाग

नावप्रकारआवश्यकहे काय आहे
billing_countryobjectनाहीISO 3166-1 alpha-2 country for the tax jurisdiction.
availability_tokensobjectनाही`domain_name` → the availability token issued by the domain search endpoint. Required for every `domain_register` line; each is re-verified at checkout and a stale one is a `409`.

प्रतिसाद

नावप्रकारआवश्यकहे काय आहे
idUuidहोयUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidहोयUUIDv7 identifier — sortable by creation time (docs/02 §8).
human_refstringहोयHuman-friendly order reference.
statusOrderStatusहोयAn order's lifecycle state (docs/31 §4.3).
currencyCurrencyCodeहोयISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
subtotal_minorintegerहोय
tax_minorintegerहोय
discount_minorintegerहोय
total_minorintegerहोय
billing_countryobjectनाही
placed_atobjectनाही
created_atstringहोय
updated_atstringनाही
linesOrderLine[]होय
paymentsPayment[]होय

ही एंडपॉइंट परत करू शकेल अशा त्रुटी

401 · 403 · 404 · 409 · 422 · 429