Purchase new domain
domains_purchaseNewDomainV1Purchase and register a new domain name using your Hostinger account. Configure WHOIS contacts, apply coupons, and select payment method to complete the order.
Instructions
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 the response is 202 Accepted, the payment is still being processed and the domain was
not registered. Once the order completes, register the domain from
hPanel.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name | |
| coupons | No | Discount coupon codes | |
| item_id | Yes | Catalog price item ID | |
| domain_contacts | No | Domain contact information | |
| payment_method_id | No | Payment method ID, default will be used if not provided | |
| additional_details | No | Additional registration data, possible values depends on TLD |