List billing contacts

GET
https://www.digicert.com/services/v2/finance/billing-contact

Use this endpoint to list billing contacts that have been saved to your account.

cURL
curl -X GET \
  https://www.digicert.com/services/v2/finance/billing-contact \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}'
Python
import requests

url = "https://www.digicert.com/services/v2/finance/billing-contact"

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

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

print(response.text)
Go
package main

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

func main() {

	url := "https://www.digicert.com/services/v2/finance/billing-contact"

	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))

}
NodeJS
var request = require("request");

var options = { method: 'GET',
  url: 'https://www.digicert.com/services/v2/finance/billing-contact',
  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
{
  "billing_contacts": [
    {
      "name": "Jimmy Smith",
      "address": "123 Fake Street",
      "city": "Lehi",
      "state": "ut",
      "zip": "84043",
      "country": "us",
      "email": "jimmy.smith@digicert.com",
      "phone": "8017019601",
      "container_id": 112233
    },
    {
      "name": "Janna Roe",
      "address": "126 Fake Street",
      "city": "Orem",
      "state": "Utah",
      "zip": "84043",
      "country": "us",
      "email": "janna.roe@digicert.com",
      "phone": "8017019601",
      "is_default_contact": true
    }
  ]
}

URL query strings

Name Req/Opt Type Description
container_id optional int Filter results to the specified container.

Response parameters

Name Type Description
billing_contacts array List of returned billing contacts.
.. name string Name of the billing contact.
.. address string Address of the billing contact.
.. city string City of the billing contact.
.. state string State of the billing contact.
.. zip string Zip code of the billing contact.
.. country string Country of the billing contact.
.. email string Email address of the billing contact.
.. phone string Telephone number of the billing contact.
.. container_id int Container that the billing contact is associated with.
This parameter is omitted for the default billing contact.
.. is_default_contact bool Specifies if the contact is the default billing contact for the account.
Only one default billing contact is allowed.