Adjustment info

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

Use this endpoint to get info about a balance adjustment.

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"
}

Response parameters

Name Type Description
adjustments array List of adjustments.
id string Adjustment ID.
container object Details about the container that initiated the adjustment.
.. id int Container ID.
credit
debit
string If credit, the amount that was deposited into the account.
If debit, the amount that was withdrawn from the account.
transaction_type string Type of adjustment that took place.
Possible values: Credit, Sale from Account Balance
receipt_id string Receipt ID.
Value of 0 is returned for all credit transactions.
transaction_date string Timestamp of the adjustment.
Format: yyyy-MM-dd HH:mm:ss
balance_after string Account balance after adjustment took place.
note string Note about the adjustment.