NOTE: We strongly recommend that you cache this API response to avoid repeated calls.
namecheap.users.getPricing
Returns pricing information for a requested product type.
Request Parameters
Global parameters are not shown here for clarity, but should be present in all requests
| Name | Type | MaxLength | Required? | Default | Description |
| ProductType | String | 20 | Yes | | Product Type to get pricing information |
| ProductCategory | String | 20 | No | | Specific category within a product type |
| PromotionCode | String | 20 | No | | Promotional (coupon) code for the user |
Possible values for ProductType and Product Category
parameters:
| ProductType | Product Category |
| DOMAIN | REGISTER,RENEW,REACTIVATE,TRANSFER,WBL |
| SSLCERTIFICATE | COMODO,GEOTRUST |
| WHOISGUARD | WHOISGUARD |
Example Request
https://api.namecheap.com/xml.response?ApiUser=apiexample&ApiKey=56b4c87ef4fd49cb96d915c0db68194&
UserName=apiexample&Command=namecheap.users.getPricing&ProductType=DOMAIN
Example Response
<?xml version="1.0" encoding="utf-8"?>
<ApiResponse Status="OK" xmlns="http://api.namecheap.com/xml.response">
<Errors />
<RequestedCommand>namecheap.users.getPricing</RequestedCommand>
<CommandResponse Type="namecheap.users.getPricing">
<UserGetPricingResult>
<ProductType Name="DOMAIN">
<ProductCategory Name="REACTIVATE">
<Product Name="biz">
<Price Duration="1" DurationType="YEAR" Price="8.55"
RegularPrice="8.55" YourPrice="8.55" CouponPrice="" Currency="USD" />
<Price Duration="2" DurationType="YEAR" Price="8.87"
RegularPrice="8.87" YourPrice="8.87" CouponPrice="" Currency="USD" />
</Product>
<Product Name="bz">
<Price Duration="1" DurationType="YEAR" Price="8.88"
RegularPrice="8.88" YourPrice="8.88" CouponPrice="" Currency="USD" />
</Product>
</ProductCategory>
<ProductCategory Name="REGISTER">
<Product Name="biz">
<Price Duration="1" DurationType="YEAR" Price="6.00"
RegularPrice="6.00" YourPrice="6.00" CouponPrice="" Currency="USD" />
<Price Duration="2" DurationType="YEAR" Price="8.87"
RegularPrice="8.87" YourPrice="8.87" CouponPrice="" Currency="USD" />
</Product>
</ProductCategory>
</ProductType>
</UserGetPricingResult>
</CommandResponse>
<Server>IMWS-A06</Server>
<GMTTimeDifference>+5:30</GMTTimeDifference>
<ExecutionTime>1.109</ExecutionTime>
</ApiResponse>
Error Codes
Specifies the error codes that might be returned from this method
| Number | Description |
| 2011170 | PromotionCode is invalid |
| 2011298 | ProductType is invalid |