List purchase history

GET https://www.digicert.com/services/v2/finance/purchase-history
Use this endpoint to list order purchase history for your account.

Example requests and responses

curl -X GET \
  https://www.digicert.com/services/v2/finance/purchase-history \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}'
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)
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))

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

Filters and URL query parameters

This endpoint supports filters, sorting, and pagination. For general information and examples of the syntax to use when applying filters and sorting results, see Services API - Filters, sorting, and pagination parameters.

NameReq/OptTypeDescription
container_idoptionalintFilter results to the specified container.
filters[{{property_name}}]optionalstringFilters results by the specified property. Replace {{property_name}} in your request with the property to use for filtering. This endpoint supports filtering by the following properties:
sortoptionalstringSorts results by the value of one or more properties.
By default, sorts results in ascending alphabetical order (0-9, A-Z). To sort in descending alphabetical order (9-0, Z-A), prefix the property name with a minus (-).
To sort by multiple properties, separate the name of each property with a comma. Sort hierarchy matches the order of properties in this list.
This endpoint supports sorting by the following properties:
limitoptionalintTotal number of results to include in the response.
Max: 1000 (default)
offsetoptionalintIndex of the first result to include in the response.
Default:
0

Response parameters

NameTypeDescription
order_transactionsarrayList of returned order transactions.
.. idstringOrder transaction ID.
.. containerobjectDetails about the container that initiated the adjustment.
.. .. idintContainer ID.
.. .. namestringName of the container.
.. .. is_activeboolActive status of the container.
.. order_idstringOrder ID.
.. receipt_idstringReceipt ID.
.. amountstringTransaction amount.
.. payment_typestringPayment type used for the transaction.
.. transaction_datestringTimestamp of transaction.
Format:
YYYY-MM-DD hh:mm:ss
.. transaction_typestringTransaction type.
Possible values:
purchase
.. product_namestringName of the product that was purchased.
See Glossary – Product identifiers.
pageobjectDetails about results. Modified using URL query strings.