Documentation

POST /api/domains/checkout

Start payment for a domain.

RequestPOST /api/domains/checkout
AuthenticationSession cookie required
Handlerbackend/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

ParameterInTypeRequiredDescription
ff_sessioncookiestringOptionalThe 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.
domainbodystringRequiredThe domain to buy.
product_idbodystringRequiredThe 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

200A payment session opened.

FieldTypeDescription
statusstring`checkout_started`.
payment_urlstringWhere to send the browser.
domainstringThe domain.
price_eurnumberThe quoted price, markup included.

Errors

StatusReasonWhen
401The session has no account.
409The domain is no longer available at the quoted price.
503payment_unavailablePayments are not configured on this machine. Stated, never hidden — a top-up control must not render as if it works.

Related

Back to the API reference index, or read the cookbook for recipes that compose this endpoint with others.