Table of Contents

Function

The CertificateContactCreate task creates a new contact for use in a certificate.

Description

Route: POST /sslcontact

Request
{
   "fname": "John",
   "lname": "Doe",
   "phone": "+49-123-12345",
   "fax": "+49-123-12345",
   "email": "j.doe@example.com",
   "title": "Dr.",
   "organization": "Company",
   "address": [
      "address"
   ],
   "pcode": "12345",
   "city": "example town",
   "country": "DE",
   "state": "BY"
}
Response
{
   "stid": "20190702-app2-dev-24374",
   "status": {
      "code": "S400201",
      "text": "Contact was created successfully.",
      "type": "SUCCESS"
   },
   "object": {
      "type": "SslContact",
      "value": "2058"
   },
   "data": [
      {
         "created": "2019-07-02T13:12:58.000+0200",
         "updated": "2019-07-02T13:12:58.000+0200",
         "fname": "john",
         "lname": "doe",
         "phone": "+49-123-12345",
         "fax": "+49-123-12345",
         "email": "john.doe@example.com",
         "title": "Dr.",
         "organization": "Company",
         "address": [
            "address"
         ],
         "pcode": "12345",
         "city": "example city",
         "country": "DE",
         "state": "BY",
         "owner": {
            "context": 9,
            "user": "customer"
         },
         "updater": {
            "context": 9,
            "user": "customer"
         },
         "id": 2058
      }
   ]
}

Task number: 400201
Uses SSLContact object

Request
<request>
    <auth>
        <user>USER</user>
        <password>PASSWORD</password>
        <context>CONTEXT</context>
    </auth>
    <task>
        <contact>
            <title>Admin]]></title>
            <first>John</first>
            <last>Doe</last>
            <organization>example company</organization>
            <address>example address</address>
            <postal_code>12345</postal_code>
            <city>example city</city>
            <country>US</country>
            <state></state>
            <phone>+1-0-0</phone>
            <fax>+1-0-0</fax>
            <email>john.doe@domain.com</email>
        </contact>
        <code>400201</code>
    </task>
</request>
Response
<response>
  <result>
    <data />
    <status>
      <code>S400201</code>
      <text>Contact was created successfully.</text>
      <type>success</type>
      <object>
        <type>contact</type>
        <value>882</value>
      </object>
    </status>
  </result>
</response>