Contact Info Command
====================
Requests detailed information about a contact person, owned by the client.
This command follows standard EPP Contact mapping, `RFC-5733`_ with a simple extension in the server response.
Client request
--------------
Request should contain a single ``client:id`` element, containing a client handle.
Even if a ``contact:authInfo`` element is given, the server ignores it because
only a *"sponsoring"* client is allowed to access details of the contact object.
Example:
.. code-block:: xml
namesu1105-12345
uJkhAlqyjSb90AgLexEl
Server response
---------------
Response for sponsoring client
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Example of response for sponsoring client, owning the contact:
.. code-block:: xml
namesu1105-12345
CNT-10011-LVNIC
testuser
+371.12345678
+371.87654321
somewhere@snailmail.lv
Name Surname
Longstreet 33-3
Rīga
LV-1122
LV
testuser
2011-05-10T15:18:17+03:00
2011-05-10T15:18:17+03:00
Command completed successfully
uJkhAlqyjSb90AgLexEl
LVNIC-20110511-5cab0f580d50a346dd2480b2bcd6c3be-2
Please, note that some differences from RFC-5733 takes place:
* only a single ``contact:postalInfo`` element (having ``type="loc"`` attribute),
corresponding to contact address for private persons and legal address for
enterprises and other legal entities.
+ ``contact:org``: present only for legal entities containing their registered name (its presence distinguishes contact object as a legal person)
+ ``contact:name``: for private persons contains name and surname of the person itself,
for legal persons - the name and surname of a contact person, working for that organization.
* ``contact:authInfo`` is not used with NIC.LV so a ```` element is returned to satisfy schema.
For contacts whose residence country is Latvia and for contacts - legal persons from EU countries,
response may include :ref:`extension ` with following elements
under ```` tag:
* ``lvcontact:regNr``, containing:
- Latvian person code for private persons which are residents of Latvia
- Registration number, issued by the `Latvian Register of Enterprises `_ if contact corresponds to a legal entity registered in Latvia
* ``lvcontact:vatNr``, containing VAT number for legal entities, registered in
European Union countries (optionally, may be present also for enterprises based in other countries)
.. note ::
For contact objects, created before launching of the EPP service:
* ``crID`` will contain ``__SERVER__``
* ``contact:voice`` and ``contact:fax`` elements may contain phone numbers
in a more relaxed format than required by the standard EPP schema
(e.g. "(371) 22-34-56-78", instead of "+371.22345678").
So, if a client validates the response XML against EPP schema, it may fail.
Response for other registrars
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If contact object with requested ``contact:id`` is not owned by the caller,
only it's ``contact:id``, ``contact:roid`` and ``contact:clID`` (EPP client ID of registrar, owning the contact object), are returned.
Example:
.. code-block:: xml
namesu1105-12334
CNT-10011-LVNIC
testuser
Command completed successfully
uJkhAlqyjSb90AgLexEl
LVNIC-20110511-5cab0f580d50a346dd2480b2bcd6c3be-2
.. *** include external reference links: ***
.. include:: /ref_links.rst