Subaccount info

GET https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}
Use this endpoint to get information about a subaccount.

Example requests and responses

curl -X GET \
  'https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}' \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}'
import requests

url = "https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}"

payload = ""
headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json"
    }

response = requests.request("GET", url, data=payload, headers=headers)

print(response.text)
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}"

	req, _ := http.NewRequest("GET", url, nil)

	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: 'GET',
  url: 'https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}',
  headers: 
   { 'Content-Type': 'application/json',
     'X-DC-DEVKEY': '{{api_key}}' } };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});

200 OK

{
  "account_id": 1122339,
  "account_type": "reseller",
  "organization_name": "Real Organization",
  "date_created": "2018-11-29 18:25:04",
  "parent_account_id": "1122331",
  "billing_account_name": "Billing Account, Inc.",
  "billing_account_id": 1122328,
  "account_manager": "Jim James",
  "bill_parent": false,
  "master_user": {
    "first_name": "Alan",
    "last_name": "Allen",
    "email": "alan.allen@example.com",
    "job_title": "subreseller",
    "telephone": "801-701-9600",
    "i18n_language_id": "1",
    "container_id": "11223"
  },
  "organization": {
    "id": 121212,
    "status": "active",
    "name": "Real Organization",
    "address": "123 Fake Street",
    "zip": "84043",
    "city": "Lehi",
    "state": "Utah",
    "country": "us",
    "telephone": "801-701-9600",
    "is_active": true,
    "container": {
      "id": 11223,
      "parent_id": 0,
      "name": "Real Organization",
      "is_active": true
    }
  },
  "billing_contact": {
    "name": "Alan Allen",
    "address": "123 Fake Street",
    "city": "Lehi",
    "state": "ut",
    "zip": "84043",
    "country": "us",
    "email": "alan.allen@example.com",
    "phone": "801-701-9600"
  },
  "allow_parent_order_renewal": false
}

Response parameters

NameTypeDescription
account_idintegerSubaccount ID.
account_typestringDefines the subaccount type. See Glossary – Subaccount types.
organization_namestringLegal name of the subaccount’s primary organization.
child_namestringFriendly name to help identify subaccounts with identical or similar names. Only returned if the subaccount has a child_name.
date_createdstringTimestamp of when the subaccount was created.
Format:
YYYY-MM-DD hh:mm:ss
parent_account_idstringAccount ID of the subaccount’s parent.
billing_account_namestringName of the parent account used for billing.
billing_account_idintegerAccount ID of the parent account used for billing.
account_managerstringName of the subaccount’s account representative.
bill_parentbooleanIf true, DigiCert bills the parent account for orders from the subaccount. If false, DigiCert bills the subaccount directly.
enforce_bill_parentbooleanIf true, the subaccount can only create bill-to-parent child accounts. If false or not returned, the subaccount can create subaccounts with either billing configuration: bill self or bill-to-parent.
master_userobjectDetails about the subaccount administrator.
.. first_namestringFirst name of the subaccount administrator.
.. last_namestringLast name of the subaccount administrator.
.. emailstringEmail address of the subaccount administrator.
.. job_titlestringJob title of the subaccount administrator.
.. telephonestringTelephone number of the subaccount administrator.
.. i18n_language_idstringPreferred language for the subaccount administrator.
.. container_idstringContainer ID the subaccount administrator is assigned to.
organizationobjectDetails about the subaccount’s primary organization.
.. idintegerOrganization ID.
.. statusstringOrganization status.
Possible values: active, inactive
.. namestringLegal name of the organization.
.. addressstringAddress of the organization.
.. zipstringPostal code of the organization.
.. citystringCity where the organization is located.
.. statestringState where the organization is located.
.. countrystringCountry where the organization is located.
.. telephonestringOrganization telephone number.
.. is_activebooleanActive status of the organization.
.. containerobjectPrimary container the organization is attached to.
.. .. idintegerContainer ID.
.. .. parent_idintegerID of the container’s parent.
.. .. namestringName of the container.
.. .. is_activebooleanActive status of the container.
billing_contactobjectDetails about the subaccount’s billing contact.
.. namestringName of the billing contact.
.. addressstringAddress of the billing contact.
.. citystringCity of the billing contact.
.. statestringState of the billing contact.
.. zipstringPostal code of the billing contact.
.. countrystringCountry of the billing contact.
.. emailstringEmail address of the billing contact.
.. phonestringTelephone number of the billing contact.
max_allowed_multi_year_plan_lengthintegerMaximum Multi-year Plan length (in years) for orders the subaccount creates.
allow_parent_order_renewalbooleanIf true, subaccount can renew orders created by the parent account. Otherwise, false.