Comments (3)
Thanks for working with our SDK. Prices are only returned in case of aftermarket domains / specific premium domains.
Reason: The price itself depends on given price by the aftermarket platform or the registry itself and can not calculated by using the price relations assigned to you.
In this API response you get CLASS "PREMIUM_DOMUTS_BB+" returned. That's the base to use for price estimation.
COMMAND = StatusUser
The above command returns your account balance + currency and further more the prices assigned to you. RELATIONTYPE and RELATIONVALUE are the keys and values identifying all your price.
In your case: Get all RELATIONTYPEs matching PRICE_CLASS_DOMAIN_PREMIUM_DONUTS_BB+_*
e.g.
PRICE_CLASS_DOMAIN_PREMIUM_DONUTS_BB+_SETUP
PRICE_CLASS_DOMAIN_PREMIUM_DONUTS_BB+_ANNUAL
PRICE_CLASS_DOMAIN_PREMIUM_DONUTS_BB+_CURRENCY
etc.
price = PRICE_CLASS_DOMAIN_PREMIUM_DONUTS_BB+_SETUP + ( x * PRICE_CLASS_DOMAIN_PREMIUM_DONUTS_BB+_ANNUAL)
where 'x' is the registration term. e.g. 1 = 1Y, 2 = 2Y etc.
NOTE: this just calculates the price using the currency provided in RELATIONVALUE at index of PRICE_CLASS_DOMAIN_PREMIUM_DONUTS_BB+_CURRENCY
You probably have to change it into you account currency given by statususer command.
Have an eye on command "QueryExchangeRates" to get latest ECB exchange rates for calculation.
COMMAND = QueryDomainOptions
WIDE = 1
DOMAIN0 = premium.guru
Might help you to identify allowed registration periods. You can identify it under ZONEREGISTRATIONPERIODS.
We know that a library helping to calculate prices would be very helpful, this is in discussion. But actually we cannot provide you an ETA for it nor if that module will ever be realized.
But your request shows us the need for this.
Let me know if I can further support you.
Thanks so much
Kai
from rtldev-middleware-python-sdk.
Thanks Kai
Yes, I think it is great demand for price query. As you know, new gtld hold different price tiers and they vary a lot, it is good to have this lib for some pre checks.
from rtldev-middleware-python-sdk.
No Problem, you're welcome. In general our price relation system is flexible enough. We just cannot expect a customer to know how to calculate prices as described above (and this wasn't the complete guide). Internally we already have a solution for our web platform that we provide to endcustomers and resellers. But having a solution for people who want to create their own frontend on top of our API, would also be a very good idea. This part is imo a blocker - I'll keep you posted on this topic.
As workaround (not sure if this is applicable for you):
COMMAND = AddDomain
DOMAIN = premium.guru
// ... additional parameters like nameservers and contacts etc.
PERIOD = 1Y
ORDER = CREATE
ORDER = CREATE
just add the domain to your shopping cart and returns an ORDERID in response.
Use ORDER = REPLACE
together with ORDERID = ...
and the updated command to get the order item updated with changes (e.g. if you want to change contacts or nameservers).
COMMAND = QueryOrderList
... returns the contents of your shopping cart including prices.
... and to execute one of your orders:
COMMAND = ExecuteOrder
ORDERID = ....
Let me know if I can further support you.
Thanks so much
Kai
from rtldev-middleware-python-sdk.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtldev-middleware-python-sdk.