Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

1
Namecheap API Dev question
Post Body

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

)

)

)

Author
Account Strength
100%
Account Age
9 years
Verified Email
Yes
Verified Flair
No
Total Karma
671
Link Karma
48
Comment Karma
623
Profile updated: 1 week ago
Posts updated: 2 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago