commerce

POST /v1/carts/{cartId}/checkout

Check out a cart — place and charge an order.

அனைத்து commerce இறுதிப்புள்ளிகளும்

அங்கீகாரம்

பியரர் டோக்கனாக (bearer token) ஒரு API விசையை அனுப்பவும். அந்த விசை billing.payment.manage அனுமதியைக் கொண்டிருக்க வேண்டும்; அது இல்லாத விசை 404 அல்ல, 403 குறியீட்டுடன் மறுக்கப்படும்.

இந்த எண்ட்பாயிண்டிற்கு எந்த அமைப்பு ஐடியும் (organisation id) தேவையில்லை. உங்கள் விசை (key) அது எந்த அமைப்புக்குரியது என்பதை ஏற்கனவே அடையாளம் காட்டுகிறது, மேலும் பதிலானது அதற்கேற்ப வரம்பிடப்பட்டுள்ளது.

முயன்று பார்

கோண அடைப்புக்குறிகளில் உள்ள எதையும் உங்கள் சொந்த மதிப்புகளுடன் மாற்றவும், மேலும் விசை பிளேஸ்ஹோல்டரை உங்கள் டாஷ்போர்டில் உள்ள விசையுடன் மாற்றவும்.

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

உள்நுழைந்துள்ளீர்களா? உங்கள் டேஷ்போர்டில் உள்ள ஏபிஐ கன்சோல் உங்கள் உண்மையான நிறுவன ஐடி மற்றும் உங்கள் சொந்த சாவியை நிரப்புகிறது, மேலும் நேரலை ஏபிஐக்கு எதிராக கோரிக்கையை இயக்குகிறது, இதனால் நீங்கள் உண்மையான பதிலைக் காண முடியும். இந்த எண்ட்மார்க்கை ஏபிஐ கன்சோலில் திறக்கவும்

விவரங்கள்

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