Purchase an available (pre-purchased) domain
Changed onPurchase an available domain from the pre-purchased domain pool. Uses the bonus balance when quota and funds allow, otherwise the real balance. The response chargedBalance field identifies the balance actually charged. bonusFallbackReason and paymentMessage explain fallback to the real balance. Insufficient real funds return DOMAIN_PURCHASE_INSUFFICIENT_FUNDS with the fallback reason.
Request
- Base URLhttps://api.pwapps.com (the document declares no server; this is the origin it was published from)
- AuthOAuth 2PasswordToken URLhttps://api.pwapps.com/api/v1/user/login
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"domainId": 1
}Response
Successful Response
Example response
{
"chargedBalance": "real",
"domain": "example.com",
"expirationDate": "2027-02-05T00:00:00Z",
"id": "123e4567-e89b-12d3-a456-426614174000",
"pricePaid": 12.49,
"status": "registered"
}Changes
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status
- info
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
the
response's property pattern^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$was added for the status
- info