Actions100
- Billing Actions
- DNS Actions
- Domain Actions
- Domain Forwarding Actions
- Domain WHOIS Actions
- Reach Actions
- VPS Actions
- VPS Actions Actions
- VPS Backups Actions
- VPS Data Centers Actions
- VPS Docker Manager Actions
- VPS Firewall Actions
- VPS Malware Scanner Actions
- VPS Post Install Scripts Actions
- VPS PTR Actions
- VPS Public Keys Actions
- VPS Snapshots Actions
- VPS Templates Actions
Domain → Purchase Domain
AI-generatedOverview
This node operation allows users to purchase a domain through the Hostinger API. It is useful for automating domain registration workflows, such as buying new domains programmatically as part of a larger automation process. For example, a user can input domain details, contact information, payment method, and optional coupon codes to complete the domain purchase without manual intervention.
Use Case Examples
- Automatically purchase a new domain with specified WHOIS contact details and payment method.
- Apply a discount coupon code during domain registration.
- Include additional registration data in JSON format depending on the TLD requirements.
Properties
| Name | Meaning |
|---|---|
| Domain | Full domain name including the top-level domain (TLD) to be purchased. |
| Item ID | Catalog price item ID representing the domain pricing and registration period. |
| Owner Contact ID | WHOIS record ID for the domain owner contact. |
| Admin Contact ID | WHOIS record ID for the administrative contact. |
| Billing Contact ID | WHOIS record ID for the billing contact. |
| Tech Contact ID | WHOIS record ID for the technical contact. |
| Additional Details (JSON) | Additional registration data as JSON, which may vary depending on the TLD. |
| Coupon Code | Discount coupon code to apply during the domain purchase. |
| Payment Method ID | ID of the payment method to be used for the domain purchase. |
Output
JSON
response- The JSON response from the Hostinger API after attempting to purchase the domain, containing details about the purchase result.
Dependencies
- Hostinger API authentication credential
Troubleshooting
- Ensure all required contact IDs and payment method ID are valid and exist in the Hostinger account to avoid errors.
- Verify the domain name is correctly formatted and available for purchase.
- If additionalDetails JSON is provided, ensure it is valid JSON to prevent parsing errors.
- Coupon codes must be valid and applicable to the domain purchase to avoid rejection.
Links
- Hostinger Domains API - Purchase Domain - Official API documentation for purchasing domains via Hostinger API.