Create domain
Creates new order to register domain. It's mandatory to specify domain registrant. Admin, billing and tech contacts are
not mandatory at this point. Default value for period is 1 year. Nameservers can be specified only using
<hostAttr> element. ID of newly created order is returned as an extension.
Input fields
- name - full domain name (required)
- period - period of time to domain expiration, default is one year (required)
- ns-hostAttr - delegated nameservers for this domain, possibly with ipv4 and ipv6 addresses (glue record)
- registrant - contact handle of the owner of this domain (required)
- contact - contact handles of admin, tech and billing contacts, at most one for each category can be specified
- authInfo-pw - authorization code for some further requests on this domain
- param - any additional parameters valid for subreg.cz
Output fields
- order-id - number of the order (required)
Example
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <command> <create> <domain:create xmlns:domain="urn:ietf:params:xml:ns:domain-1.0"> <domain:name>yourdomain.cz</domain:name> <domain:period unit="y">2</domain:period> <domain:ns> <domain:hostAttr> <domain:hostName>ns.example.com</domain:hostName> </domain:hostAttr> <domain:hostAttr> <domain:hostName>ns.example.net</domain:hostName> </domain:hostAttr> </domain:ns> <domain:registrant>G-000249</domain:registrant> <domain:contact type="admin">G-000249</domain:contact> </domain:create> </create> <extension> <subreg:create xmlns:subreg="http://www.subreg.cz/epp/subreg-1.0"> <subreg:param name="trustee">1</subreg:param> </subreg:create> </extension> <clTRID>SUBREG20120218T014000Z487</clTRID> </command> </epp>
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <response> <result code="1001"> <msg lang="en">Command completed successfully; action pending</msg> </result> <resData> <order:creData xmlns:order="http://www.subreg.cz/epp/order-1.0"> <order:id>856271</order:id> </order:creData> </resData> <trID> <clTRID>SUBREG20120218T014000Z487</clTRID> <svTRID>SUBREG20120218T014000Z606</svTRID> </trID> </response> </epp>
Subreg EPP server documentation - version 1.0
|