Hostinger API icon

Hostinger API

Interact with the Hostinger API

Actions100

Domain → Purchase Domain

AI-generated

Overview

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

  1. Automatically purchase a new domain with specified WHOIS contact details and payment method.
  2. Apply a discount coupon code during domain registration.
  3. 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

Discussion