Documentation
POST /api/domains/checkout
Start payment for a domain.
| Request | POST /api/domains/checkout |
|---|---|
| Authentication | Session cookie required |
| Handler | backend/domain_market.py |
What it does
Opens a payment session with the provider and returns its URL. Nothing is charged here and no domain is registered here; the callback confirms the payment with the provider before anything is credited.
Authentication
Session cookie required. Send the ff_session cookie. Without one the engine treats the caller as a new visitor with no holds and no claims, and returns a new cookie to use from then on.
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
ff_session | cookie | string | Optional | The session identifier. Omit it on the first call and store the value the response sets; every later call must send the same one or the engine treats the caller as a new visitor with no holds and no claims. |
domain | body | string | Required | The domain to buy. |
product_id | body | string | Required | The product it is being bought for. |
Request
The cookie jar carries the session between calls. Angle-bracketed values are the parameter types from the table above.
curl -s -b cookies.txt -c cookies.txt \
-X POST -H 'Content-Type: application/json' \
-d '{"domain":"<string>","product_id":"<string>"}' \
"https://flowfinds.ai/api/domains/checkout"const res = await fetch("https://flowfinds.ai/api/domains/checkout", {
method: "POST",
credentials: "include",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"domain": "<string>",
"product_id": "<string>"
}),
});
const data = await res.json();import requests
s = requests.Session()
r = s.post("https://flowfinds.ai/api/domains/checkout", json={
"domain": "<string>",
"product_id": "<string>"
})
data = r.json()Recorded example
curl -s -b cookies.txt -c cookies.txt \
-X POST -H 'Content-Type: application/json' \
-d '{"domain":"example.com","product_id":"…"}' \
"$FLOWFINDS_ORIGIN/api/domains/checkout"Responses
200 — A payment session opened.
| Field | Type | Description |
|---|---|---|
status | string | `checkout_started`. |
payment_url | string | Where to send the browser. |
domain | string | The domain. |
price_eur | number | The quoted price, markup included. |
Errors
| Status | Reason | When |
|---|---|---|
401 | — | The session has no account. |
409 | — | The domain is no longer available at the quoted price. |
503 | payment_unavailable | Payments are not configured on this machine. Stated, never hidden — a top-up control must not render as if it works. |
Related
GET /api/store— The state of the session's storefront.POST /api/store— Start generating the storefront for the session's product.POST /api/store/publish— Verify and publish the storefront, regenerating it if verification demands.POST /api/intent— Ask the engine what it would change on a surface, and why.POST /api/intent/apply— Apply a proposed intent, regenerating the store.POST /api/intent/order— Override the section the storefront leads with.POST /api/intent/revert— Undo the last applied intent.POST /api/ai/edit— Edit the storefront in natural language.
Back to the API reference index, or read the cookbook for recipes that compose this endpoint with others.