প্রমাণীকরণ

একটি বিয়ারার টোকেন হিসেবে একটি এপিআই কি পাঠান। কি-টির অবশ্যই billing.payment.manage অনুমতি থাকতে হবে; এটি ছাড়া কোনো কি ৪০৪ নয়, বরং ৪০৩ ত্রুটি দিয়ে প্রত্যাখ্যাত হবে।

এই এন্ডপয়েন্টটি কোনো অর্গানাইজেশন আইডি নেয় না। আপনার কীটি ইতিমধ্যে এটি যে অর্গানাইজেশনের অন্তর্গত তা শনাক্ত করে এবং প্রতিক্রিয়াটি সেই অনুযায়ী নির্ধারিত হয়।

চেষ্টা করুন

কোণ বন্ধনীতে থাকা যেকোনো কিছু আপনার নিজস্ব মান দিয়ে এবং কী প্লেসহোল্ডারটি আপনার ড্যাশবোর্ডের একটি কী দিয়ে প্রতিস্থাপন করুন।

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.
gatewayobjectনাThe payment rail the customer chose at checkout — one of the codes getPaymentOptions returned for this organization and currency. Omit it and the order is charged wallet-first…
expected_total_minorobjectনাThe order total the checkout page displayed to the customer, in minor units. Send it and checkout refuses with 422 when the basket no longer comes to that figure; omit it…

প্রতিক্রিয়া

নামধরনআবশ্যকএটি কী
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