-
Notifications
You must be signed in to change notification settings - Fork 2
Users
Methods related to the user and allowing to fetch the price for a given user, since after a number of purchases, the price can decrease.
Returns pricing information for a requested product type.
GetPricing: Options to get pricing info. https://www.namecheap.com/support/api/methods/users/get-pricing.aspx
| Name | Type | Description |
|---|---|---|
| type* | string | Product Type to get pricing information. One of DOMAIN, SSLCERTIFICATE, WHOISGUARD. |
| category | string | Specific category within a product type, e.g., DOMAINS, COMODO, WHOISGUARD. |
| promoCode | string | Promotional (coupon) code for the user. |
| action | string | Specific action within a product type. One of REGISTER, PURCHASE, RENEW, REACTIVATE, TRANSFER. |
| product | string | The name of the product within a product type, e.g., COM, INSTANTSSL, WHOISGUARD-PROTECT-ONE. |
The returned object will contain data according to requested types, categories, actions and products.
/**
* @param {NameCheap} client
*/
const GetPricing = async (client, options = {
type: 'DOMAIN',
action: 'REGISTER',
product: 'COM',
}) => {
const res = await client.users.getPricing(options)
return res
}Pricing: The pricing information returned as an object. The data is split into 3 types: Domain, SSL and Whois.
| Name | Type | Description |
|---|---|---|
| domains* | DomainPricing | The pricing of domains. |
| ssl* | SSLPricing | The pricing of certificates. |
| whoisguard* | WhoisPricing | The pricing of the Whois Guard. |
!Array<!Price> Product: A product consists of an array of prices for different durations.
Price: Price data for a product accoding to the duration of an action.
| Name | Type | Description |
|---|---|---|
| Duration* | number | The duration of the product, e.g., 1. |
| DurationType* | string | The duration type of the product, e.g., YEAR. |
| Price* | string | Indicates Final price (it can be from regular, userprice, special price,promo price, tier price), e.g., 20.88. |
| PricingType* | string | Either MULTIPLE or ABSOULTE. |
| AdditionalCost | string | Any additional costs, such as ICANN fee for a domain registration, e.g., 0.18. |
| RegularPrice* | string | Indicates regular price, e.g., 39.00. |
| RegularPriceType* | string | Either MULTIPLE or ABSOULTE. |
| RegularAdditionalCost | string | Any additional costs, such as ICANN fee for a domain registration, e.g., 0.18. |
| RegularAdditionalCostType | string | Either MULTIPLE or ABSOULTE. |
| YourPrice* | string | The user’s price for the product, e.g., 20.88. |
| YourPriceType* | string | Either MULTIPLE or ABSOULTE. |
| YourAdditonalCost | string | Any additional costs, such as ICANN fee for a domain registration, e.g., 0.18. |
| YourAdditonalCostType | string | Either MULTIPLE or ABSOULTE. |
| PromotionPrice* | string | Price with coupon enabled. |
| Currency* | string | Currency in which the price is listed, e.g., USD. |
DomainPricing: The pricing of domains as an object, where the requested zone is a key.
| Name | Type | Description |
|---|---|---|
| register* | Object<string, Product> | The pricing to register domains. |
| renew* | Object<string, Product> | The pricing to renew domains. |
| reactivate* | Object<string, Product> | The pricing to reactivate domains. |
| transfer* | Object<string, Product> | The pricing to transfer domains. |
SSLPricing: The pricing of certificates.
| Name | Type | Description |
|---|---|---|
| purchase* | SSLPurchase | The pricing to purchase certificates. |
| renew* | SSLRenew | The pricing to renew certificates. |
Show SSL Product Pricing
SSLPurchase: The pricing to purchase certificates.
| Name | Type & Description |
|---|---|
| instantssl* | Product |
InstantSSL https://www.namecheap.com/security/ssl-certificates/comodo/instantssl.aspx. 1-year purchase: 20.88 USD
|
|
| positivessl* | Product |
PositiveSSL https://www.namecheap.com/security/ssl-certificates/comodo/positivessl.aspx. 1-year purchase: 8.88 USD
|
|
| positivesslWildcard* | Product |
PositiveSSL Wildcard https://www.namecheap.com/security/ssl-certificates/comodo/positivessl-wildcard.aspx. 1-year purchase: 76.88 USD
|
|
| premiumssl* | Product |
PremiumSSL https://www.namecheap.com/security/ssl-certificates/comodo/premiumssl.aspx. 1-year purchase: 79.00 USD
|
|
| quicksslPremium* | Product |
1-year purchase: 56.88 USD
|
|
| rapidssl* | Product |
1-year purchase: 10.95 USD
|
|
| rapidsslWildcard* | Product |
1-year purchase: 148.88 USD
|
|
| secureSite* | Product |
1-year purchase: 285.88 USD
|
|
| secureSitePro* | Product |
1-year purchase: 675.88 USD
|
|
| secureSiteProWithEv* | Product |
1-year purchase: 961.88 USD
|
|
| secureSiteWithEv* | Product |
1-year purchase: 666.88 USD
|
|
| trueBusinessid* | Product |
1-year purchase: 98.00 USD
|
|
| trueBusinessidWildcard* | Product |
1-year purchase: 389.00 USD
|
|
| trueBusinessidWithEv* | Product |
1-year purchase: 179.00 USD
|
|
| premiumsslWildcard* | Product |
PremiumSSL Wildcard https://www.namecheap.com/security/ssl-certificates/comodo/premiumssl-wildcard.aspx. 1-year purchase: 169.00 USD
|
|
| essentialssl* | Product |
EssentialSSL https://www.namecheap.com/security/ssl-certificates/comodo/essentialssl.aspx. 1-year purchase: 18.88 USD
|
|
| essentialsslWildcard* | Product |
EssentialSSL Wildcard https://www.namecheap.com/security/ssl-certificates/comodo/essentialssl-wildcard.aspx. 1-year purchase: 74.88 USD
|
|
| evSsl* | Product |
EV SSL https://www.namecheap.com/security/ssl-certificates/comodo/ev.aspx. 1-year purchase: 78.88 USD
|
|
| instantsslPro* | Product |
InstantSSL Pro https://www.namecheap.com/security/ssl-certificates/comodo/instantssl-pro.aspx. 1-year purchase: 38.88 USD
|
|
| ssl123* | Product |
1-year purchase: 39.00 USD
|
|
| sslWebServer* | Product |
1-year purchase: 88.88 USD
|
|
| sslWebserverEv* | Product |
1-year purchase: 163.88 USD
|
|
| comodossl* | Product |
1-year purchase: 35.00 USD
|
|
| comodosslWildcard* | Product |
1-year purchase: 170.00 USD
|
|
| comodosslMultiDomainSsl* | Product |
Multi-Domain SSL https://www.namecheap.com/security/ssl-certificates/comodo/multi-domain-ssl.aspx. 1-year purchase: 89.88 USD
|
|
| comodosslMultiDomainSslMoresans* | Product |
1-year purchase: 0.00 USD
|
|
| comodosslEvMultiDomainSsl* | Product |
EV Multi-Domain SSL https://www.namecheap.com/security/ssl-certificates/comodo/ev-multi-domain-ssl.aspx. 1-year purchase: 168.88 USD
|
|
| comodosslEvMultiDomainSslMoresans* | Product |
1-year purchase: 0.00 USD
|
|
| positivesslMultiDomain* | Product |
PositiveSSL Multi-Domain https://www.namecheap.com/security/ssl-certificates/comodo/positivessl-multi-domain.aspx. 1-year purchase: 29.88 USD
|
|
| positivesslMultiDomainMoresans* | Product |
1-year purchase: 0.00 USD
|
|
| trueBusinessidMultiDomain* | Product |
1-year purchase: 179.88 USD
|
|
| trueBusinessidMultiDomainMoresans* | Product |
1-year purchase: 0.00 USD
|
|
| trueBusinessidWithEvMultiDomain* | Product |
1-year purchase: 237.88 USD
|
|
| trueBusinessidWithEvMultiDomainMoresans* | Product |
1-year purchase: 0.00 USD
|
|
| unifiedCommunications* | Product |
Unified Communications https://www.namecheap.com/security/ssl-certificates/comodo/unified-communications.aspx. 1-year purchase: 89.88 USD
|
|
| unifiedCommunicationsMoresans* | Product |
1-year purchase: 0.00 USD
|
|
| secureSiteMoresans* | Product |
1-year purchase: 0.00 USD
|
|
| quicksslPremiumMoresans* | Product |
1-year purchase: 0.00 USD
|
|
| secureSiteProMoresans* | Product |
1-year purchase: 0.00 USD
|
|
| secureSiteProWithEvMoresans* | Product |
1-year purchase: 0.00 USD
|
|
| secureSiteWithEvMoresans* | Product |
1-year purchase: 0.00 USD
|
|
| sgcSuperCertsMoresans* | Product |
1-year purchase: 0.00 USD
|
|
| sslWebServerMoresans* | Product |
1-year purchase: 0.00 USD
|
|
| sslWebserverEvMoresans* | Product |
1-year purchase: 0.00 USD
|
SSLRenew: The pricing to renew certificates.
| Name | Type & Description |
|---|---|
| instantssl* | Product |
InstantSSL https://www.namecheap.com/security/ssl-certificates/comodo/instantssl.aspx. 1-year renewal: 31.98 USD
|
|
| positivessl* | Product |
PositiveSSL https://www.namecheap.com/security/ssl-certificates/comodo/positivessl.aspx. 1-year renewal: 7.28 USD
|
|
| positivesslWildcard* | Product |
PositiveSSL Wildcard https://www.namecheap.com/security/ssl-certificates/comodo/positivessl-wildcard.aspx. 1-year renewal: 77.08 USD
|
|
| premiumssl* | Product |
PremiumSSL https://www.namecheap.com/security/ssl-certificates/comodo/premiumssl.aspx. 1-year renewal: 64.78 USD
|
|
| quicksslPremium* | Product |
1-year renewal: 46.64 USD
|
|
| rapidssl* | Product |
1-year renewal: 8.98 USD
|
|
| rapidsslWildcard* | Product |
1-year renewal: 122.08 USD
|
|
| secureSite* | Product |
1-year renewal: 234.42 USD
|
|
| secureSitePro* | Product |
1-year renewal: 554.22 USD
|
|
| secureSiteProWithEv* | Product |
1-year renewal: 788.74 USD
|
|
| secureSiteWithEv* | Product |
1-year renewal: 546.84 USD
|
|
| trueBusinessid* | Product |
1-year renewal: 80.36 USD
|
|
| trueBusinessidWildcard* | Product |
1-year renewal: 318.98 USD
|
|
| trueBusinessidWithEv* | Product |
1-year renewal: 146.78 USD
|
|
| ssl123* | Product |
1-year renewal: 31.98 USD
|
|
| sslWebServer* | Product |
1-year renewal: 72.88 USD
|
|
| sslWebserverEv* | Product |
1-year renewal: 134.38 USD
|
|
| essentialssl* | Product |
EssentialSSL https://www.namecheap.com/security/ssl-certificates/comodo/essentialssl.aspx. 1-year renewal: 18.88 USD
|
|
| essentialsslWildcard* | Product |
EssentialSSL Wildcard https://www.namecheap.com/security/ssl-certificates/comodo/essentialssl-wildcard.aspx. 1-year renewal: 74.88 USD
|
|
| evSsl* | Product |
EV SSL https://www.namecheap.com/security/ssl-certificates/comodo/ev.aspx. 1-year renewal: 118.90 USD
|
|
| instantsslPro* | Product |
InstantSSL Pro https://www.namecheap.com/security/ssl-certificates/comodo/instantssl-pro.aspx. 1-year renewal: 48.38 USD
|
|
| premiumsslWildcard* | Product |
PremiumSSL Wildcard https://www.namecheap.com/security/ssl-certificates/comodo/premiumssl-wildcard.aspx. 1-year renewal: 138.58 USD
|
|
| comodossl* | Product |
1-year renewal: 28.70 USD
|
|
| comodosslMultiDomainSsl* | Product |
Multi-Domain SSL https://www.namecheap.com/security/ssl-certificates/comodo/multi-domain-ssl.aspx. 1-year renewal: 73.70 USD
|
|
| comodosslEvMultiDomainSsl* | Product |
EV Multi-Domain SSL https://www.namecheap.com/security/ssl-certificates/comodo/ev-multi-domain-ssl.aspx. 1-year renewal: 203.26 USD
|
|
| positivesslMultiDomain* | Product |
PositiveSSL Multi-Domain https://www.namecheap.com/security/ssl-certificates/comodo/positivessl-multi-domain.aspx. 1-year renewal: 24.50 USD
|
|
| trueBusinessidMultiDomain* | Product |
1-year renewal: 147.50 USD
|
|
| trueBusinessidWithEvMultiDomain* | Product |
1-year renewal: 195.06 USD
|
|
| unifiedCommunications* | Product |
Unified Communications https://www.namecheap.com/security/ssl-certificates/comodo/unified-communications.aspx. 1-year renewal: 73.70 USD
|
WhoisPricing: The pricing of the Whois Guard.
| Name | Type | Description |
|---|---|---|
| purchase* | WhoisPurchase | The pricing to purchase WHOIS guards. |
| renew* | WhoisRenew | The pricing to renew WHOIS guards. |
Show Whois Product Pricing
WhoisPurchase: The pricing to purchase WHOIS guards.
| Name | Type & Description |
|---|---|
| whoisguard5Pack* | Product |
1-year purchase: 7.88 USD
|
|
| whoisguardDualPack* | Product |
1-year purchase: 4.88 USD
|
|
| whoisguardProtectOne* | Product |
1-year purchase: 0.00 USD
|
WhoisRenew: The pricing to renew WHOIS guards.
| Name | Type & Description |
|---|---|
| whoisguardProtectOne* | Product |
1-year renewal: 0.00 USD
|
Show Example COM Domain Registration Pricing Output
{
"domains": {
"register": {
"com": [
{
"Duration": 1,
"DurationType": "YEAR",
"Price": "8.88",
"PricingType": "MULTIPLE",
"AdditionalCost": "0.18",
"RegularPrice": "10.98",
"RegularPriceType": "MULTIPLE",
"RegularAdditionalCost": "0.18",
"RegularAdditionalCostType": "MULTIPLE",
"YourPrice": "8.88",
"YourPriceType": "MULTIPLE",
"YourAdditonalCost": "0.18",
"YourAdditonalCostType": "MULTIPLE",
"PromotionPrice": "0.0",
"Currency": "USD"
},
{
"Duration": 2,
"DurationType": "YEAR",
"Price": "10.88",
"PricingType": "MULTIPLE",
"AdditionalCost": "0.18",
"RegularPrice": "10.88",
"RegularPriceType": "MULTIPLE",
"RegularAdditionalCost": "0.18",
"RegularAdditionalCostType": "MULTIPLE",
"YourPrice": "10.88",
"YourPriceType": "MULTIPLE",
"YourAdditonalCost": "0.18",
"YourAdditonalCostType": "MULTIPLE",
"PromotionPrice": "0.0",
"Currency": "USD"
},
{
"Duration": 3,
"DurationType": "YEAR",
"Price": "10.78",
"PricingType": "MULTIPLE",
"AdditionalCost": "0.18",
"RegularPrice": "10.78",
"RegularPriceType": "MULTIPLE",
"RegularAdditionalCost": "0.18",
"RegularAdditionalCostType": "MULTIPLE",
"YourPrice": "10.78",
"YourPriceType": "MULTIPLE",
"YourAdditonalCost": "0.18",
"YourAdditonalCostType": "MULTIPLE",
"PromotionPrice": "0.0",
"Currency": "USD"
},
{
"Duration": 4,
"DurationType": "YEAR",
"Price": "10.68",
"PricingType": "MULTIPLE",
"AdditionalCost": "0.18",
"RegularPrice": "10.68",
"RegularPriceType": "MULTIPLE",
"RegularAdditionalCost": "0.18",
"RegularAdditionalCostType": "MULTIPLE",
"YourPrice": "10.68",
"YourPriceType": "MULTIPLE",
"YourAdditonalCost": "0.18",
"YourAdditonalCostType": "MULTIPLE",
"PromotionPrice": "0.0",
"Currency": "USD"
},
{
"Duration": 5,
"DurationType": "YEAR",
"Price": "10.58",
"PricingType": "MULTIPLE",
"AdditionalCost": "0.18",
"RegularPrice": "10.58",
"RegularPriceType": "MULTIPLE",
"RegularAdditionalCost": "0.18",
"RegularAdditionalCostType": "MULTIPLE",
"YourPrice": "10.58",
"YourPriceType": "MULTIPLE",
"YourAdditonalCost": "0.18",
"YourAdditonalCostType": "MULTIPLE",
"PromotionPrice": "0.0",
"Currency": "USD"
},
{
"Duration": 6,
"DurationType": "YEAR",
"Price": "10.58",
"PricingType": "MULTIPLE",
"AdditionalCost": "0.18",
"RegularPrice": "10.58",
"RegularPriceType": "MULTIPLE",
"RegularAdditionalCost": "0.18",
"RegularAdditionalCostType": "MULTIPLE",
"YourPrice": "10.58",
"YourPriceType": "MULTIPLE",
"YourAdditonalCost": "0.18",
"YourAdditonalCostType": "MULTIPLE",
"PromotionPrice": "0.0",
"Currency": "USD"
},
{
"Duration": 7,
"DurationType": "YEAR",
"Price": "10.58",
"PricingType": "MULTIPLE",
"AdditionalCost": "0.18",
"RegularPrice": "10.58",
"RegularPriceType": "MULTIPLE",
"RegularAdditionalCost": "0.18",
"RegularAdditionalCostType": "MULTIPLE",
"YourPrice": "10.58",
"YourPriceType": "MULTIPLE",
"YourAdditonalCost": "0.18",
"YourAdditonalCostType": "MULTIPLE",
"PromotionPrice": "0.0",
"Currency": "USD"
},
{
"Duration": 8,
"DurationType": "YEAR",
"Price": "10.58",
"PricingType": "MULTIPLE",
"AdditionalCost": "0.18",
"RegularPrice": "10.58",
"RegularPriceType": "MULTIPLE",
"RegularAdditionalCost": "0.18",
"RegularAdditionalCostType": "MULTIPLE",
"YourPrice": "10.58",
"YourPriceType": "MULTIPLE",
"YourAdditonalCost": "0.18",
"YourAdditonalCostType": "MULTIPLE",
"PromotionPrice": "0.0",
"Currency": "USD"
},
{
"Duration": 9,
"DurationType": "YEAR",
"Price": "10.58",
"PricingType": "MULTIPLE",
"AdditionalCost": "0.18",
"RegularPrice": "10.58",
"RegularPriceType": "MULTIPLE",
"RegularAdditionalCost": "0.18",
"RegularAdditionalCostType": "MULTIPLE",
"YourPrice": "10.58",
"YourPriceType": "MULTIPLE",
"YourAdditonalCost": "0.18",
"YourAdditonalCostType": "MULTIPLE",
"PromotionPrice": "0.0",
"Currency": "USD"
},
{
"Duration": 10,
"DurationType": "YEAR",
"Price": "10.58",
"PricingType": "MULTIPLE",
"AdditionalCost": "0.18",
"RegularPrice": "10.58",
"RegularPriceType": "MULTIPLE",
"RegularAdditionalCost": "0.18",
"RegularAdditionalCostType": "MULTIPLE",
"YourPrice": "10.58",
"YourPriceType": "MULTIPLE",
"YourAdditonalCost": "0.18",
"YourAdditonalCostType": "MULTIPLE",
"PromotionPrice": "0.0",
"Currency": "USD"
}
]
}
}
}