調整資訊

GET
https://www.digicert.com/services/v2/finance/adjustment/{{adjustment_id}}

使用此端點取得有關餘額調整的資訊。

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

url = "https://www.digicert.com/services/v2/finance/adjustment/{{adjustment_id}}"

payload = ""
headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json"
    }

response = requests.request("GET", url, data=payload, headers=headers)

print(response.text)
Go
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

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

}
NodeJS
var request = require("request");

var options = { method: 'GET',
  url: 'https://www.digicert.com/services/v2/finance/adjustment/{{adjustment_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": "3",
  "container": {
    "id": 11223
  },
  "debit": "295.00",
  "transaction_type": "Sale from Account Balance",
  "receipt_id": "121214",
  "transaction_date": "2018-09-04 12:02:39",
  "balance_after": "148.00",
  "order_id": "12346",
  "note": "Auto-debit: enterprise order from account balance"
}

回應參數

名稱 類型 說明
adjustments array 調整的清單。
id string 調整 ID。
container object 與啟動調整的容器有關的詳細資料。
.. id int 容器 ID。
credit
debit
string 如果扣除,金額會存入帳戶。
如果計入,金額會從帳戶提領。
transaction_type string 發生的調整類型。
可能的值:Credit,Sale from Account Balance
receipt_id string 收據 ID。
傳回所有扣除交易的 0 的值。
transaction_date string 調整的時間戳記。
格式:yyyy-MM-dd HH:mm:ss
balance_after string 進行調整後的帳戶餘額。
note string 與調整有關的注意事項。