PANDI · REFERENSI PENGEMBANG EPP
contact:create
Membuat ID Contact dengan postalInfo, voice, email, dan authInfo. Gunakan postalInfo type=int atau type=loc sesuai format dan kebijakan yang didukung.
Creates a Contact ID with postalInfo, voice, email, and authInfo. Use postalInfo type=int or type=loc according to supported formats and policy.
Cara kerja
Membuat ID Contact dengan postalInfo, voice, email, dan authInfo. Gunakan postalInfo type=int atau type=loc sesuai format dan kebijakan yang didukung.
- Gunakan ID Contact yang belum ada.
- Kirim nama, alamat, negara, dan email yang valid.
- Gunakan XML escaping untuk &, <, dan karakter XML lainnya.
How it works
Creates a Contact ID with postalInfo, voice, email, and authInfo. Use postalInfo type=int or type=loc according to supported formats and policy.
- Use an available Contact ID.
- Provide valid name, address, country, and email.
- XML-escape &, <, and other special characters.
Permintaan dan respons XML
Contoh XML bersifat ilustratif, menggunakan identitas dan domain contoh. Jangan kirim nilainya ke server produksi.
XML permintaan
XML · Permintaan
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0" xmlns:host="urn:ietf:params:xml:ns:host-1.0" xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1" xmlns:rgp="urn:ietf:params:xml:ns:rgp-1.0">
<command>
<create><contact:create><contact:id>CONTACT-EXAMPLE</contact:id>
<contact:postalInfo type="int"><contact:name>Example Person</contact:name><contact:org>Example Organization</contact:org><contact:addr><contact:street>Example Street 1</contact:street><contact:city>Jakarta</contact:city><contact:sp>DKI Jakarta</contact:sp><contact:pc>10110</contact:pc><contact:cc>ID</contact:cc></contact:addr></contact:postalInfo>
<contact:voice>+62.8123456789</contact:voice><contact:email>user@example.net</contact:email>
<contact:authInfo><contact:pw>EXAMPLE-CONTACT-PW</contact:pw></contact:authInfo>
</contact:create></create>
<clTRID>REG-EXAMPLE-0001</clTRID>
</command>
</epp>XML respons
XML · Respons
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0" xmlns:host="urn:ietf:params:xml:ns:host-1.0" xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1" xmlns:rgp="urn:ietf:params:xml:ns:rgp-1.0">
<response>
<result code="1000"><msg>Command completed successfully</msg></result>
<resData>
<contact:creData><contact:id>CONTACT-EXAMPLE</contact:id><contact:crDate>2030-01-01T00:00:00Z</contact:crDate></contact:creData>
</resData>
<trID><clTRID>REG-EXAMPLE-0001</clTRID><svTRID>SERVER-EXAMPLE-0001</svTRID></trID>
</response>
</epp>