このエンドポイントを使用して、受取証についての情報を取得します。
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 | 文字列 | |
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 | 請求連絡先の Zip コード |
bill_country | string | 請求連絡先の国 |
bill_email | string | 請求連絡先のメールアドレス |