This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I need some help to get the API call right to get up to date pricing information for our account when registering domains via API.
At the moment I tried this and it pulls data:
curl_setopt($ch, CURLOPT_URL, $api_url . '?' . http_build_query([
'ApiUser' => $api_user, 'ApiKey' => $api_key, 'UserName' => $api_username,
'Command' => 'namecheap.users.getPricing', 'ClientIp' => $client_ip, 'ProductType' => 'DOMAIN'
]));
however, the pricing seems to be way off.
lets take a .click domain for example: it says in the XML response that its 13.98/year. However, when we register right now via API our price is $1.80 plus 0.18 fee == $1.98
on Namecheap website, .click is $1.8 -> https://www.namecheap.com/domains/registration/gtld/click/
so my question is, what is the correct API call, to display the right price that you have for the domain?
thank you
[258] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Name] => click
)
[Price] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Duration] => 1
[DurationType] => YEAR
[Price] => 13.98
[PricingType] => MULTIPLE
[AdditionalCost] => 0.18
[RegularPrice] => 13.98
[RegularPriceType] => MULTIPLE
[RegularAdditionalCost] => 0.18
[RegularAdditionalCostType] => MULTIPLE
[YourPrice] => 13.98
[YourPriceType] => MULTIPLE
[YourAdditonalCost] => 0.18
[YourAdditonalCostType] => MULTIPLE
[PromotionPrice] => 0.0
[Currency] => USD
)
)
)
Subreddit
Post Details
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/NameCheap/c...