The reconcile reports (CR7)
curl --request GET \
--url https://api.eddy.engineer/admin/credits/reconcile \
--header 'x-admin-token: <api-key>'import requests
url = "https://api.eddy.engineer/admin/credits/reconcile"
headers = {"x-admin-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-admin-token': '<api-key>'}};
fetch('https://api.eddy.engineer/admin/credits/reconcile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/admin/credits/reconcile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-admin-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/admin/credits/reconcile"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-admin-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eddy.engineer/admin/credits/reconcile")
.header("x-admin-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/admin/credits/reconcile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-admin-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"last_nightly_day": "<string>",
"reports": [
{
"accounts": [
{
"account": "<string>",
"captures": 123,
"charged_millicredits": 123,
"debits": 123,
"diff_microcredits": 123,
"entries": 123,
"fold_ok": true,
"notes": [
"<string>"
],
"purchase_grants": 123,
"purchased_millicredits": 123,
"status": "ok",
"tolerance_microcredits": 123,
"usage_microcredits": 123,
"usage_rows": 123
}
],
"billing": "off",
"by": "<string>",
"from_unix_ms": 123,
"grace_ms": 123,
"label": "<string>",
"mismatches": 123,
"ok": true,
"payments": {
"checked": true,
"error": "<string>",
"issues": [
{
"account": "<string>",
"granted_millicredits": 123,
"kind": "missing_grant",
"message": "<string>",
"payment": "<string>",
"provider_credits": 123
}
],
"payments": 123,
"provider": "<string>"
},
"ran_at_unix_ms": 123,
"rows_complete": true,
"rows_scanned": 123,
"schema": "ss.reconcile/1",
"to_unix_ms": 123
}
],
"schema": "<string>"
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Admin
The reconcile reports (CR7)
The reports this engine ran — the nightly ones (each UTC day, ten minutes in, the day before) and an admin’s — newest first, at most 31, and the last day the nightly run reconciled. An instance admin’s.
GET
/
admin
/
credits
/
reconcile
The reconcile reports (CR7)
curl --request GET \
--url https://api.eddy.engineer/admin/credits/reconcile \
--header 'x-admin-token: <api-key>'import requests
url = "https://api.eddy.engineer/admin/credits/reconcile"
headers = {"x-admin-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-admin-token': '<api-key>'}};
fetch('https://api.eddy.engineer/admin/credits/reconcile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/admin/credits/reconcile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-admin-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/admin/credits/reconcile"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-admin-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eddy.engineer/admin/credits/reconcile")
.header("x-admin-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/admin/credits/reconcile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-admin-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"last_nightly_day": "<string>",
"reports": [
{
"accounts": [
{
"account": "<string>",
"captures": 123,
"charged_millicredits": 123,
"debits": 123,
"diff_microcredits": 123,
"entries": 123,
"fold_ok": true,
"notes": [
"<string>"
],
"purchase_grants": 123,
"purchased_millicredits": 123,
"status": "ok",
"tolerance_microcredits": 123,
"usage_microcredits": 123,
"usage_rows": 123
}
],
"billing": "off",
"by": "<string>",
"from_unix_ms": 123,
"grace_ms": 123,
"label": "<string>",
"mismatches": 123,
"ok": true,
"payments": {
"checked": true,
"error": "<string>",
"issues": [
{
"account": "<string>",
"granted_millicredits": 123,
"kind": "missing_grant",
"message": "<string>",
"payment": "<string>",
"provider_credits": 123
}
],
"payments": 123,
"provider": "<string>"
},
"ran_at_unix_ms": 123,
"rows_complete": true,
"rows_scanned": 123,
"schema": "ss.reconcile/1",
"to_unix_ms": 123
}
],
"schema": "<string>"
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}