Receipt info
2 minute read
GET
Use this endpoint to get information about a receipt.https://www.digicert.com/services/v2/finance/receipt/{{receipt_id}}
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
| 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. |
| currency | string | Currency unit for order price. |
| 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. |
| billing_entity_id | integer | ID of the billing entity for the receipt. Possible values: |
| vat_number | string | Value-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_method | string | Payment method for the transaction. Possible values: |
| transaction_type | string | Transaction type. Possible values: purchase, reissue |
Was this page helpful?
Provide feedback