Use this endpoint to create a new organization.
When you use this endpoint, we check the organizations that already exist in your account to avoid creating a duplicate organization. If the details you provide in the request match the details of an existing organization, we associate the order with the existing organization instead of creating a new one. To override this behavior and force the request to create a new organization, set the organization.skip_duplicate_org_check
parameter to true
in the body of your request.
Submitted organization information will be validated by DigiCert and may appear on certificates.
curl -X POST \
https://www.digicert.com/services/v2/organization \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}' \
-d '{
"name": "Epigyne Unwieldiness llc",
"assumed_name": "Epigyne Unwieldiness",
"country": "us",
"address": "932 Prospect Street",
"address2": "Floor 08",
"city": "Minneapolis",
"state": "mn",
"zip": "40849",
"telephone": "666-186-6450",
"organization_contact": {
"first_name": "Gia",
"last_name": "Booth",
"job_title": "Clinical Laboratory Technician",
"email": "gia.booth@inbox.com",
"telephone": "666-186-6450",
"telephone_extension": "736"
}
}'
import requests
url = "https://www.digicert.com/services/v2/organization"
payload = "{\n \"name\": \"Epigyne Unwieldiness llc\",\n \"assumed_name\": \"Epigyne Unwieldiness\",\n \"country\": \"us\",\n \"address\": \"932 Prospect Street\",\n \"address2\": \"Floor 08\",\n \"city\": \"Minneapolis\",\n \"state\": \"mn\",\n \"zip\": \"40849\",\n \"telephone\": \"666-186-6450\",\n \"organization_contact\": {\n \"first_name\": \"Gia\",\n \"last_name\": \"Booth\",\n \"job_title\": \"Clinical Laboratory Technician\",\n \"email\": \"gia.booth@inbox.com\",\n \"telephone\": \"666-186-6450\",\n \"telephone_extension\": \"736\"\n }\n}"
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/organization"
payload := strings.NewReader("{\n \"name\": \"Epigyne Unwieldiness llc\",\n \"assumed_name\": \"Epigyne Unwieldiness\",\n \"country\": \"us\",\n \"address\": \"932 Prospect Street\",\n \"address2\": \"Floor 08\",\n \"city\": \"Minneapolis\",\n \"state\": \"mn\",\n \"zip\": \"40849\",\n \"telephone\": \"666-186-6450\",\n
\"organization_contact\": {\n \"first_name\": \"Gia\",\n \"last_name\": \"Booth\",\n \"job_title\": \"Clinical Laboratory Technician\",\n \"email\": \"gia.booth@inbox.com\",\n \"telephone\": \"666-186-6450\",\n \"telephone_extension\": \"736\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-DC-DEVKEY", "{{api_key}}")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
var request = require("request");
var options = { method: 'POST',
url: 'https://www.digicert.com/services/v2/organization',
headers:
{ 'Content-Type': 'application/json',
'X-DC-DEVKEY': '{{api_key}}' },
body:
{ name: 'Epigyne Unwieldiness llc',
assumed_name: 'Epigyne Unwieldiness',
country: 'us',
address: '932 Prospect Street',
address2: 'Floor 08',
city: 'Minneapolis',
state: 'mn',
zip: '40849',
telephone: '666-186-6450',
organization_contact:
{ first_name: 'Gia',
last_name: 'Booth',
job_title: 'Clinical Laboratory Technician',
email: 'gia.booth@inbox.com',
telephone: '666-186-6450',
telephone_extension: '736' } },
json: true };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
{
"id": 112236
}
Name | Req/Opt | Type | Description |
---|---|---|---|
name | required | string | Legal name of the organization. |
assumed_name | optional | string |
Public name of the organization. Also called DBA name. |
country | required | string | Country where the organization is located. |
address | required | string | Address of the organization. |
address2 | optional | string | |
city | required | string | City where the organization is located. |
state | required | string | State where the organization is located. |
zip | required | string | Postal code of the organization. |
telephone | required | string | Organization telephone number. |
organization_contact | required | object | Organization contact information. |
.. first_name | required | string | First name of the contact. |
.. last_name | required | string | Last name of the contact. |
.. job_title | optional | string |
Job title of the contact. Required for contact to be an EV approver. |
required | string | Email address that can be used to reach contact. | |
.. telephone | required | string |
Telephone number that can be used to reach the contact. Required for contact to be an EV approver. |
.. telephone_extension | optional | string | Phone extension of the contact. |
skip_duplicate_org_check | optional | bool |
Use true to skip the check for duplicate organizations in your account. When you skip this check, you force the request to create a new organization, regardless of whether the details you provide in the request match the details of an organization that already exists in your account. Default: false
|
Name | Type | Description |
---|---|---|
id | int | ID of the new organization. |