Use this endpoint to get information about a receipt.
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);
});
{
"id": "112233",
"date_time": "2018-12-08 07:39:06",
"acct_amount": "0.00",
"cc_amount": "376.00",
"gross_amount": "376.00",
"tax_amount": "0.00",
"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@digicert.com"
}
Name | Type | Description |
---|---|---|
id | string | Receipt ID. |
date_time | string |
Timestamp of receipt. Format: yyyy-MM-dd HH:mm:ss
|
acct_amount | string | Amount charged to the account balance. |
gross_amount | string | Total amount before tax. |
tax_amount | string | Tax amount charged. |
cc_amount | string | Amount charged to the credit card. |
cc_last4 | string | Last four digits of the credit card used. |
cc_exp_date | string | Expiration date of the credit card used. |
cc_type | string |
Credit card issuer. Possible values: amex , discover , mastercard , visa , other
|
bill_name | string | Name of the billing contact. |
bill_addr1 | string | Address of the billing contact. |
bill_city | string | City of the billing contact. |
bill_state | string | State of the billing contact. |
bill_zip | string | Zip code of the billing contact. |
bill_country | string | Country of the billing contact. |
bill_email | string | Email address of the billing contact. |