Receipt info

GET https://www.digicert.com/services/v2/finance/receipt/{{receipt_id}}
Use this endpoint to get information about a receipt.

Example requests and responses

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

url = "https://www.digicert.com/services/v2/finance/receipt/{{receipt_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/finance/receipt/{{receipt_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/finance/receipt/{{receipt_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

{
  "id": "112233",
  "date_time": "2018-12-08 07:39:06",
  "acct_amount": "0.00",
  "cc_amount": "376.00",
  "tax_amount": "0.00",
  "gross_amount": "376.00",
  "currency": "USD",
  "cc_last4": "1111",
  "cc_exp_date": "0123",
  "cc_type": "visa",
  "bill_name": "Janna Roe",
  "bill_addr1": "123 Fake Street",
  "bill_city": "Lehi",
  "bill_state": "ut",
  "bill_zip": "84043",
  "bill_country": "us",
  "bill_email": "janna.roe@example.com",
  "payment_method": "balance",
  "transaction_type": "purchase"
}

Response parameters

NameTypeDescription
idstringReceipt ID.
date_timestringTimestamp of receipt.
Format:
yyyy-MM-dd HH:mm:ss
acct_amountstringAmount charged to the account balance.
gross_amountstringTotal amount before tax.
tax_amountstringTax amount charged.
currencystringCurrency unit for order price.
cc_amountstringAmount charged to the credit card.
cc_last4stringLast four digits of the credit card used.
cc_exp_datestringExpiration date of the credit card used.
cc_typestringCredit card issuer.
Possible values:amex, discover, mastercard, visa, other
bill_namestringName of the billing contact.
bill_addr1stringAddress of the billing contact.
bill_citystringCity of the billing contact.
bill_statestringState of the billing contact.
bill_zipstringZip code of the billing contact.
bill_countrystringCountry of the billing contact.
bill_emailstringEmail address of the billing contact.
billing_entity_idintegerID of the billing entity for the receipt.
Possible values:
vat_numberstringValue-added tax (VAT) or goods and services tax (GST) identification number for the transaction. Omitted if not present.
The VAT/GST number on a receipt is the number for the transaction. Only credit card transactions can have a VAT/GST number. A credit card transaction receipt only includes a VAT/GST number if:
payment_methodstringPayment method for the transaction.
Possible values:
transaction_typestringTransaction type.
Possible values: purchase, reissue