EPP Examples

Create Contact Command

Request sent by client:

01 xml version="1.0" encoding="UTF-8" standalone="no"?>
02 <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
03   <command>
04     <create>
05       <contact:create
06        xmlns:contact="urn:ietf:params:xml:ns:contact-1.0">
07         <contact:id>ote-sh8018contact:id>
08         <contact:postalInfo type="int">
09           <contact:name>John Doecontact:name>
10           <contact:org>Example Inc.contact:org>
11           <contact:addr>
12             <contact:street>123 Example Dr.contact:street>
13             <contact:street>Suite 100contact:street>
14             <contact:city>Dullescontact:city>
15             <contact:sp>VAcontact:sp>
16             <contact:pc>20166-6503contact:pc>
17             <contact:cc>UScontact:cc>
18           contact:addr>
19         contact:postalInfo>
20         <contact:voice x="1234">+1.7035555555contact:voice>
21         <contact:fax>+1.7035555556contact:fax>
22         <contact:email>jdoe @ example.comcontact:email>
23         <contact:authInfo>
24           <contact:pw>2fooBARcontact:pw>
25         contact:authInfo>
26       contact:create>
27     create>
28     <clTRID>ABC-12345clTRID>
29   command>
30 epp>

 

Response returned from server:

01 xml version="1.0" encoding="UTF-8"?>
02 <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
03   <response>
04     <result code="1000">
05       <msg>Command completed successfullymsg>
06     result>
07     <resData>
08       <contact:creData xmlns:contact="urn:ietf:params:xml:ns:contact-1.0">
09         <contact:id>ote-sh8018contact:id>
10         <contact:crDate>2012-05-04T12:32:39.369Zcontact:crDate>
11       contact:creData>
12     resData>
13     <trID>
14       <clTRID>ABC-12345clTRID>
15       <svTRID>SANDBOX-sx-3333svTRID>
16     trID>
17   response>
18 epp><br> <br>

Special attention for:

NIC-HANDLE (contact:id): a unique identifier in the database that you can choose yourself.
For your convenience stick to a particular prefix or suffix that matches the registrar. E.g. the contacts created for the registry itself all start with "sxm-".
Syntax requirements: only letters, digits and the dash ("-") are allowed. The handle needs to be not less than 3 and not more than 16 long.

Upcoming Events

12/31/1969