SaltDns.Registrar.Openprovider (Salt v1.0.0)

The adapter for Openprovider (SaltDns.Registrar.Adapter), the first registrar Salt DNS ships. It is registered as "openprovider". The HTTP, login and token handling are in SaltDns.Registrar.Openprovider.Client; this module builds the requests and reads the answers.

Money

Openprovider answers prices as decimals with a currency per price. They are read with Decimal and kept as integer minor units. Reseller prices (what Salt pays), never the product (list) prices, are used as cost. The reseller account has no currency of its own; account/1 takes the currency from a price answer.

Names

A name is split at its first dot into the label and the extension (example.co.uk is example and co.uk). Names are lower case; names in Unicode must be given in A-label form (xn--...).

What was checked against the live API

Login, GET /resellers, POST /domains/check, GET /domains/prices, GET /tlds/{extension}, POST /customers, DELETE /customers/{handle} and the insufficient-funds answer of POST /domains (HTTP 500, code 920) follow what was seen on the live API. POST /domains/{id}/renew needs the domain object as well as the id and period (its description, confirmed live: the same call without it was refused with HTTP 500, code 318, and with it the renewal went through); renew/3 reads the name first and sends it. The rest (transfer, restore, domain, the PUT /domains/{id} changes, auth_code) is written from the public API description and not yet run against the registrar; run them in sandbox mode first.

Name servers and glue

A name server goes as Openprovider's domainNameserver object: name, the IPv4 address in ip and the IPv6 address in ip6 (the array's order gives the sequence; seq_nr is optional and is not sent). Those field names are from the public description (https://developer.openprovider.com/data/swagger.json, definitions domainNameserver and ns_groupNameServersSet). A read reports the same fields; the addresses are kept with the domain, so a later change of name servers keeps the glue of an in-bailiwick server.