이 엔드포인트를 사용하여 영수증에 대한 상세 정보를 받습니다.
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",
"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"
}
이름 | 유형 | 설명 |
---|---|---|
id | string | 영수증 ID입니다. |
date_time | string |
영수증의 타임스탬프입니다. 형식: yyyy-MM-dd HH:mm:ss
|
acct_amount | string | |
cc_amount | string | 신용 카드에 청구한 금액입니다. |
cc_last4 | string | 사용한 신용 카드의 마지막 4자리입니다. |
cc_exp_date | string | 사용한 신용 카드의 만료 날짜입니다. |
cc_type | string |
신용 카드의 발급자입니다. 가능한 값: amex , discover , mastercard , visa , other
|
bill_name | string | 청구 연락처의 이름입니다. |
bill_addr1 | string | 청구 연락처의 주소입니다. |
bill_city | string | 청구 연락처의 시입니다. |
bill_state | string | 청구 연락처의 주(도)입니다. |
bill_zip | string | 청구 연락처의 우편 번호입니다. |
bill_country | string | 청구 연락처의 국가입니다. |
bill_email | string | 청구 연락처의 이메일 주소입니다. |