Help Center
Login Sign up
  1. Home
  2. API reference
  3. General API basics
  4. AutoDNS messages
  5. Notification examples

Domain contact job notifications

API reference (XML/JSON) · Updated 2025-01-02

Contact created successfully

{
    "stid": "20220405-app2-dev-82599",
    "status": {
        "code": "S0301",
        "text": "Domain-Kontakt wurde erfolgreich angelegt.",
        "type": "SUCCESS"
    },
    "object": {
        "type": "Contact",
        "value": "23377983"
    },
    "data": [
        {
            "created": "2022-04-05T10:57:17.000+0200",
            "updated": "2022-04-05T10:57:17.000+0200",
            "id": 23377983,
            "owner": {
                "context": 4,
                "user": "exampleuser"
            },
            "updater": {
                "context": 4,
                "user": "exampleuser"
            },
            "alias": "John-Doe-12xx5678",
            "type": "PERSON",
            "organization": "CompanyExample",
            "title": "Dr.",
            "city": "Anytown",
            "country": "DE",
            "state": "BY",
            "email": "john.doe@domain.com",
            "protection": "SHOW_NONE",
            "remarks": [
                "example remark"
            ],
            "domainsafe": false,
            "lname": "Examplelastname",
            "address": [
                "2500 Example Street"
            ],
            "pcode": "12345"
        }
    ]
}

Creating contact failed

{
    "stid": "20220405-app3-dev-6802",
    "messages": [
        {
            "text": "A domain contact with this name already exists.",
            "objects": [
                {
                    "type": "alias",
                    "value": "John-Doe-12xx5678"
                }
            ],
            "code": "EF03027",
            "status": "ERROR"
        }
    ],
    "status": {
        "code": "E0301",
        "text": "Domain contact could not be created.",
        "type": "ERROR"
    }
}

Contact updated successfully

{
    "stid": "20220405-app3-dev-6872",
    "status": {
        "code": "S0302",
        "text": "Domain contact has been updated successfully.",
        "type": "SUCCESS"
    },
    "object": {
        "type": "Contact",
        "value": "23377983"
    }
}

Contact update failed

{
    "stid": "20220405-app2-dev-84784",
    "messages": [
        {
            "text": "Last name may not be changed by an update.",
            "objects": [
                {
                    "type": "string",
                    "value": "Examplelastname"
                }
            ],
            "code": "EF00559",
            "status": "ERROR"
        }
    ],
    "status": {
        "code": "E0302",
        "text": "Domain contact could not be updated.",
        "type": "ERROR"
    },
    "object": {
        "type": "Contact",
        "value": "23377983"
    }
}

Contact deleted successfully

Domain contacts that have not been used for 12 months are automatically deleted by a cronjob.

The sending of notifications must be set up in AutoDNS. To do this, the Purge Notifications checkbox must be enabled in the user profile. (User Management → User Profile → API Settings → System Notifications ).

The contact must not be in use for a domain or in a running job.

In case of failure, no notification is sent, because in this case the order is rejected by the backend and thus not processed.

Example for push notifications

{
  "stid": "20220610-app4-226953",
  "status": {
    "code": "S0905",
    "text": "The notification was polled successfully.",
    "type": "SUCCESS"
  },
  "object": {
    "type": "Message",
    "value": "64774886",
    "summary": 1
  },
  "data": [
    {
      "id": 64774886,
      "notify": {
        "type": "contact_deleted",
        "object": {
          "type": "Contact",
          "data": {
            "id": 12345
          }
        }
      }
    }
  ]
}