DomainRecommendations
Get a URL to purchase a domain
This function returns a URL for the configured domain store's checkout page. This URL allows the user to complete the purchase of a domain name.
Note:
This function requires the domain_recommendation feature.
get/DomainRecommendations/purchase_domain
Query parameters
domainstring required
Example:mybusiness.com
The fully-qualified domain name (FQDN) to purchase.
Note:
This value must include the TLD (for example, mybusiness.com).
periodinteger required
Example:1
The registration period in years.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "purchase_domain",
"module": "DomainRecommendations",
"result": {
"data": {
"purchase_url": "https://store.example.com/cart.php?a=add&domain=register&sld=mybusiness&tld=.com®period=1"
},
"metadata": {
"transformed": 1
},
"status": 1
}
}