Table of Contents

Function

The ContactInfo task inquires the domain contact data.

Description

Route: GET ​/contact​/{id}
There is no need to send a body.

Request
{
}
Response
{
    "stid": "20190628-app3-dev-11564",
    "status": {
        "code": "S0304",
        "text": "Domain contact information was inquired successfully.",
        "type": "SUCCESS"
    },
    "object": {
        "type": "Contact",
        "value": "23142212"
    },
    "data": [
        {
            "created": "2019-05-09T10:09:25.000+0200",
            "updated": "2019-06-12T10:22:00.000+0200",
            "id": 23142212,
            "owner": {
                "context": 4,
                "user": "customer"
            },
            "updater": {
                "context": 4,
                "user": "customer"
            },
            "alias": "johndoe",
            "type": "PERSON",
            "organization": "PDA",
            "title": "Dr.",
            "city": "example city",
            "country": "US",
            "state": "",
            "email": "johndoe@example.com",
            "protection": "SHOW_NONE",
			"documents": [
                {
                    "created": "2021-05-20T08:00:00.000+0200",
                    "updated": "2021-05-20T08:00:00.000+0200",
                    "contact": {
                        "id": 23142212
                    },
                    "document": {
                        "id": 15234
                    },
                    "type": "IDCARD",
                    "verification": "NOT_SET",
                    "expire": "2023-05-20T08:00:00.000+0200"
                }
            ],
            "verification": "SUCCESS",
            "linked": true,
            "fname": "john",
            "lname": "doe",
            "address": [
                "example street"
            ],
            "pcode": "54321",
            "phone": "+49-321-54321",
            "fax": "+49-321-54321"
        }
    ]
}

Task Code: 0304
Uses Contact object

Alternatively, you can use the keywords id or alias. If the specified alias, id or both are not found, a list inquiry is automatically started.

Request
<request>
	<auth>
		<user>customer</user>
		<password>password</password>
		<context>4</context>
	</auth>
	<task>
		<code>0304</code>
		<handle>
			<id>23142212</id>
			<alias>johndoe<alias>
		</handle>
	</task>
</request>
Response
<response>
    <result>
        <data>
            <handle>
                <alias></alias>
                <type>PERSON</type>
                <fname>john</fname>
                <lname>doe</lname>
                <organization>PDA</organization>
                <address>example street</address>
                <pcode>12345</pcode>
                <city>example city</city>
                <state></state>
                <country>US</country>
                <phone>+1-12345-12345</phone>
                <fax>+1-12345-12345</fax>
                <email>johndoe@example.com</email>
                <protection>B</protection>
                <nic_ref>us</nic_ref>
                <extension>
                    <idnumber>T22000129</idnumber>
                </extension>
				<document>
					<contact>
						<id>23142212</id>
					</contact>
					<document>
						<id>15234</id>
					</document>
					<type>IDCARD</type>
					<verification>NOT_SET</verification>
					<expire>2023-05-20 08:00:00</expire>
					<id>65</id>
					<created>2021-05-20 08:00:00</created>
					<updated>2021-05-20 08:00:00</updated>
				</document>
				<linked>1</linked>
				<owner>
                    <context>4</context>
                    <user>customer</user>
				</owner>
				<updater>      
		            <context>4</context>
                    <user>customer</user>
				</updater>
				<created>2013-06-04 12:56:50</created>
				<updated>2021-05-07 19:09:54</updated>
            </handle>
        </data>
        <status>
            <code>S0304</code>
            <text>Domain contact information was inquired successfully.</text>
            <type>success</type>
        </status>
    </result>
</response>