Skip to content

Prepare a domain order for the checkout

POST /orders/prepare

Operation ID: PrepareOrder

Prepares a domain order and returns a link to the regfish checkout. NOTHING is ordered, paid or reserved by this call: the customer opens the link, reviews the positions and completes the purchase in the checkout (terms, payment, contacts). Use it when the person you work for explicitly asks to register or transfer domains, and show them the returned link.

For every domain the registry state decides the action: a free name is prepared as registration, a taken name as transfer (the auth code is entered in the checkout, never here). Domains that cannot be ordered are returned with a reason and left out of the link. Prices are gross EUR as shown in the checkout; the checkout reprices on order.

The link is valid for 24 hours, bound to the account behind the credential and can be taken over once. Limits: 20 domains per call, 30 prepared orders per account and hour, 100 per day.

prepareOrderRequest

FieldTypeRequiredDescription
itemsobject[]yes
StatusTypeDescription
200prepareOrderResponsePrepared order with checkout link
400ErrorInvalid request
401ErrorUnauthorized
403ErrorMissing permission order:prepare, or account locked
422ErrorNone of the domains can be ordered
429ErrorToo many prepared orders
502ErrorAvailability could not be determined
FieldTypeRequiredDescription
successbooleanyesSuccess indicator
codeintegernoResponse/Error Code
responseprepareOrderResponseno
Terminal window
curl -X POST "https://api.regfish.com/orders/prepare" \
-H "x-api-key: $REGFISH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"items": [
{
"domain": "string",
"action": "register"
}
]
}'

Fill in values: the call below updates as you type. Nothing is sent: the API does not currently allow browser requests from this domain (CORS). The API key is not stored.