Purchase new domain
Purchase and register a new domain name.
If registration fails, login to hPanel and check domain registration status.
If no payment method is provided, your default payment method will be used automatically.
If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account.
Some TLDs require additional_details to be provided and these will be validated before completing purchase.
Use this endpoint to register new domains for users.
hostinger domains portfolio purchase [flags]
--additional-details string Additional registration data, possible values depends on TLD (JSON)
--coupons string Discount coupon codes (JSON)
--domain string Domain name
--domain-contacts string Domain contact information (JSON)
-h, --help help for purchase
--item-id string Catalog price item ID
--payment-method-id int Payment method ID, default will be used if not provided
--config string Config file (default is $HOME/.hostinger.yaml)
--format string Output format type (json|table|tree), default: table
- hostinger domains portfolio - Portfolio commands