List purchase history

GET
https://www.digicert.com/services/v2/finance/purchase-history

Use this endpoint to list order purchase history for your account.

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

url = "https://www.digicert.com/services/v2/finance/purchase-history"

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/purchase-history"

	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/purchase-history',
  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
{
  "order_transactions": [
    {
      "id": "100003",
      "container": {
        "id": 11223,
        "name": "Example Division",
        "is_active": true
      },
      "order_id": "11223",
      "receipt_id": "11118",
      "acct_adjust_id": "0",
      "amount": "379.00",
      "payment_type": "card",
      "transaction_date": "2018-07-18 11:34:18",
      "transaction_type": "purchase",
      "product_name": "Secure Site SSL"
    },
    {
      "id": "100002",
      "container": {
        "id": 11223,
        "name": "Example Division",
        "is_active": true
      },
      "order_id": "11222",
      "receipt_id": "11117",
      "acct_adjust_id": "0",
      "amount": "198.00",
      "payment_type": "card",
      "transaction_date": "2018-10-11 10:03:45",
      "transaction_type": "purchase",
      "product_name": "Standard SSL"
    },
    {
      "id": "100001",
      "container": {
        "id": 11223,
        "name": "Example Division",
        "is_active": true
      },
      "order_id": "11221",
      "receipt_id": "11116",
      "acct_adjust_id": "0",
      "amount": "499.00",
      "payment_type": "card",
      "transaction_date": "2018-01-26 12:43:49",
      "transaction_type": "purchase",
      "product_name": "EV Multi-Domain"
    },
    ...
  ],
  "page": {
    "total": 1854,
    "limit": 1000,
    "offset": 0
  }
}

URL query strings

Name Req/Opt Type Description
container_id optional int Filter results to the specified container.
limit optional int Start list at the specified number for pagination.
offset optional int Truncate list to the specified number for pagination.

Response parameters

Name Type Description
order_transactions array List of returned order transactions.
.. id string Order transaction ID.
.. container object Details about the container that initiated the adjustment.
.. .. id int Container ID.
.. .. name string Name of the container.
.. .. is_active bool Active status of the container.
.. order_id
.. receipt_id
.. acct_adjust_id
.. amount Transaction amount.
.. payment_type Payment type used for the transaction.
.. transaction_date Timestamp of transaction.
Format: yyyy-MM-dd HH:mm:ss
.. transaction_type Transaction type.
Possible values: purchase
.. product_name Name of the product that was purchased.
See Glossary – Product identifiers
page object Details about results.
Modified using URL query strings.