public

POST /v1/public/checkout

Check out as a guest — create the account and place the order.

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

सर्व डेव्हलपर कागदपत्रे

प्रमाणीकरण

हा एंडपॉइंट सार्वजनिक आहे. याला कोणतीही क्रेडेन्शियल आणि कोणतेही ऑर्गनायझेशन लागत नाही — हे तेच आहे जे आमची स्वतःची मार्केटिंग साइट आणि AI आन्सर इंजिने वाचतात.

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

प्रयत्न करा

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

curl -X POST https://api.zinndigital.com/v1/public/checkout \
  -H "Content-Type: application/json" \
  -d '{ "cart_token": <string>, "email": <string>, "billing": <PublicBilling> }'

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

तपशील

Converts an anonymous cart into a real tenant: it creates the organization and the user at this point, captures the billing details, and places an immutable order. Availability is re-verified live against the registrar first, so a name taken while the customer was typing aborts the whole call (409) with nothing created. Tax is computed against billing.country (§2.8). It never takes a card, and what it does next depends entirely on the total. The response is {order_id, org_id, next} plus the order's own currency, subtotal_minor, tax_minor and total_minor: - "payment" — the order has something to pay and is left pending_payment. Taking payment is the authenticated step that follows, because a brand-new organization has no payment mandate on file. - "done" — the total is zero (a free trial, a zero-priced plan, a 100% discount), so the order is settled and provisioned inside this call: a zero Payment is recorded, the order becomes paid, and the fulfilment workflow starts. No gateway is contacted — a brand-new organization has none to resolve, and there is nothing to charge. Owner ruling 2026-08-09: a free trial takes no card and starts immediately. ⛔ Between that ruling and 2026-08-12 this endpoint answered "done" and performed none of it — the order stayed pending_payment with no payment, no fulfilment and no workflow, so the customer was told their trial had started and no site was ever built. Anything that keys off next should key off it alone; the order state now follows it. Idempotent on the cart. A double-submit — concurrent or an hour later — produces one organization, one user and one order; the repeat returns the same ids. There is no Idempotency-Key header to send: the cart token is the key. If the email already has an account the call is refused with 409 and nothing is created: the purchase must be completed signed in, so that an unauthenticated request can never attach an order to somebody else's tenant. The cart stays open.

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

नावप्रकारआवश्यकहे काय आहे
cart_tokenstringहोय
emailstringहोय
passwordstringनाहीOptional. Omit it and the account is created without a credential, so the customer sets one through the identity provider's own verified flow — which is the safer default, because…
namestringनाही
localestringनाही
billingPublicBillingहोयThe buyer block. Only country is required, because tax is country- and currency-aware and an order with no jurisdiction has no determinable tax; the rest can be completed later…
attributionobjectनाही

प्रतिसाद

नावप्रकारआवश्यकहे काय आहे
order_idUuidहोयUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidहोयThe organization created by this call — the customer's new tenant.
nextstring<payment, done>होयWhat the client should do next. payment — the order exists and is pending_payment; nothing has been charged. done — the order totals zero and there is nothing to charge,…
currencystringहोयISO 4217 code of the placed order.
subtotal_minorintegerहोयThe order's net amount, in minor units.
tax_minorintegerहोयThe tax computed for billing.country, in minor units. A guest basket has no country, so this is the first moment the tax exists — show it.
total_minorintegerहोयWhat the order owes, tax included, in minor units. ⛔ Display THIS, never the basket total, which is pre-tax (D25043).

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

404 · 409 · 422 · 429 · 503