Use este terminal para hacer una lista del historial de ajuste del saldo para su cuenta.
curl -X GET \
https://www.digicert.com/services/v2/finance/balance-history \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/finance/balance-history"
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/balance-history"
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/balance-history',
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);
});
{
"adjustments": [
{
"id": "5",
"container": {
"id": 11223,
"name": "Example Division",
"is_active": true
},
"credit": "195.00",
"transaction_type": "Credit",
"receipt_id": "0",
"transaction_date": "2018-10-18 08:47:53",
"balance_after": "441.00",
"note": "Payment for invoice #100001"
},
{
"id": "4",
"container": {
"id": 11223,
"name": "Example Division",
"is_active": true
},
"credit": "98.00",
"transaction_type": "Credit",
"receipt_id": "0",
"transaction_date": "2018-10-18 08:47:53",
"balance_after": "246.00",
"note": "Payment for invoice #100006"
},
{
"id": "3",
"container": {
"id": 11223,
"name": "Example Division",
"is_active": true
},
"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"
},
{
"id": "2",
"container": {
"id": 11223,
"name": "Example Division",
"is_active": true
},
"debit": "157.00",
"transaction_type": "Sale from Account Balance",
"receipt_id": "121213",
"transaction_date": "2018-09-04 12:02:06",
"balance_after": "443.00",
"order_id": "12345",
"note": "Auto-debit: enterprise order from account balance"
},
{
"id": "1",
"container": {
"id": 11223,
"name": "Example Division",
"is_active": true
},
"credit": "600.00",
"transaction_type": "Credit",
"receipt_id": "0",
"transaction_date": "2018-08-15 09:21:53",
"balance_after": "600.00",
"note": "Initial deposit for account."
},
],
"page": {
"total": 4,
"limit": 1000,
"offset": 0
}
}
Nombre | Solicitud/opción | Tipo | Descripción |
---|---|---|---|
offset | opcional | int | Comenzar lista en el número especificado para la paginación. |
limit | opcional | int | Truncar lista para el número especificado para la paginación. |
La cadena de consulta de la URL container_id
es obligatoria si su cuenta contiene más de una división.
Nombre | Tipo | Descripción |
---|---|---|
adjustments | array | Lista de ajustes. |
.. id | string | Id. de ajuste. |
.. container | object | Detalles sobre el contenedor que inició el ajuste. |
.. .. id | int | Id. de contenedor. |
.. .. name | string | Nombre de contenedor. |
.. .. is_active | bool | Estado activo del contenedor. |
.. credit .. debit |
string |
Si es un crédito, el monto que se depositó en la cuenta. Si es un débito, el monto que se retiró de la cuenta. |
.. transaction_type | string |
Tipo de ajusto que se produjo. Posibles valores: Credit , Sale from Account Balance
|
.. receipt_id | string |
Id. del recibo. Se devuelve el valor de 0 para todas las transacciones de crédito.
|
.. transaction_date | string |
Marca de tiempos del ajuste. Formato: yyyy-MM-dd HH:mm:ss
|
.. balance_after | string | Saldo de la cuenta después del ajuste. |
.. note | string | Nota sobre el ajuste. |
página | object |
Detalles sobre los resultados. Modificados usando cadenas de consulta de la URL. |