Organization
Time Machine — inspect a revert batch
Everything one revert batch did, account by account: the balance and status each account had before and after, how many snapshots and orders were voided, whether positions were force-closed, and whether that account has since been undone.
For each account, balanceBefore/statusBefore is the pre-revert state — exactly what an undo would restore.
Example:
curl "https://api.hyperprop.com/platform/v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "X-API-Key: hp_live_your_key_here"
GET
/
v1
/
organization
/
revert-batches
/
{batchId}
Time Machine — inspect a revert batch
curl --request GET \
--url https://api.hyperprop.com/platform/v1/organization/revert-batches/{batchId} \
--header 'Authorization: <api-key>'import requests
url = "https://api.hyperprop.com/platform/v1/organization/revert-batches/{batchId}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.hyperprop.com/platform/v1/organization/revert-batches/{batchId}', 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.hyperprop.com/platform/v1/organization/revert-batches/{batchId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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.hyperprop.com/platform/v1/organization/revert-batches/{batchId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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.hyperprop.com/platform/v1/organization/revert-batches/{batchId}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/platform/v1/organization/revert-batches/{batchId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"batchId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"tradingDay": "2026-07-07",
"reason": "CME data feed outage on 2026-07-08",
"scope": "single",
"requestedBy": "ops@yourfirm.com",
"accountCount": 1,
"undoneCount": 0,
"undoneAt": null,
"undoneBy": null,
"undoReason": null,
"createdAt": "2026-07-08T14:03:22.000Z",
"accounts": [
{
"accountId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"accountNumber": "ACC-7845KXPQ",
"revertedTo": "2026-07-07",
"balanceBefore": 48750,
"balanceAfter": 51250,
"statusBefore": "failed",
"statusAfter": "in_progress",
"snapshotsVoided": 1,
"ordersVoided": 14,
"positionsClosed": 1,
"ordersCancelled": 2,
"undoneAt": null
}
]
}
}{
"success": false,
"statusCode": 401,
"error": "Unauthorized",
"message": "Authentication required",
"code": "UNAUTHORIZED"
}{
"success": false,
"statusCode": 403,
"error": "Forbidden",
"message": "Access denied",
"code": "FORBIDDEN"
}{
"success": false,
"code": "BATCH_NOT_FOUND",
"message": "Revert batch not found"
}{
"success": false,
"statusCode": 500,
"error": "Internal Server Error",
"message": "An unexpected error occurred",
"code": "INTERNAL_ERROR"
}Authorizations
BearerX-API-Key
JWT Bearer token for user session auth. Format: "Bearer {token}". Used by User and Organization endpoints.
Path Parameters
Batch id returned by a revert call (or from the ledger list)
Response
Revert batch detail
Example:
true
Show child attributes
Show child attributes
Example:
{
"batchId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"tradingDay": "2026-07-07",
"reason": "CME data feed outage on 2026-07-08",
"scope": "single",
"requestedBy": "ops@yourfirm.com",
"accountCount": 1,
"undoneCount": 0,
"undoneAt": null,
"undoneBy": null,
"undoReason": null,
"createdAt": "2026-07-08T14:03:22.000Z",
"accounts": [
{
"accountId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"accountNumber": "ACC-7845KXPQ",
"revertedTo": "2026-07-07",
"balanceBefore": 48750,
"balanceAfter": 51250,
"statusBefore": "failed",
"statusAfter": "in_progress",
"snapshotsVoided": 1,
"ordersVoided": 14,
"positionsClosed": 1,
"ordersCancelled": 2,
"undoneAt": null
}
]
}
Related topics
Time Machine — list revert batchesTime Machine — undo a revert batchTime Machine — bulk revert accounts to a trading dayTime Machine — revert an account to a trading dayInspect a webhook event and all delivery attempts⌘I
Time Machine — inspect a revert batch
curl --request GET \
--url https://api.hyperprop.com/platform/v1/organization/revert-batches/{batchId} \
--header 'Authorization: <api-key>'import requests
url = "https://api.hyperprop.com/platform/v1/organization/revert-batches/{batchId}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.hyperprop.com/platform/v1/organization/revert-batches/{batchId}', 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.hyperprop.com/platform/v1/organization/revert-batches/{batchId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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.hyperprop.com/platform/v1/organization/revert-batches/{batchId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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.hyperprop.com/platform/v1/organization/revert-batches/{batchId}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/platform/v1/organization/revert-batches/{batchId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"batchId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"tradingDay": "2026-07-07",
"reason": "CME data feed outage on 2026-07-08",
"scope": "single",
"requestedBy": "ops@yourfirm.com",
"accountCount": 1,
"undoneCount": 0,
"undoneAt": null,
"undoneBy": null,
"undoReason": null,
"createdAt": "2026-07-08T14:03:22.000Z",
"accounts": [
{
"accountId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"accountNumber": "ACC-7845KXPQ",
"revertedTo": "2026-07-07",
"balanceBefore": 48750,
"balanceAfter": 51250,
"statusBefore": "failed",
"statusAfter": "in_progress",
"snapshotsVoided": 1,
"ordersVoided": 14,
"positionsClosed": 1,
"ordersCancelled": 2,
"undoneAt": null
}
]
}
}{
"success": false,
"statusCode": 401,
"error": "Unauthorized",
"message": "Authentication required",
"code": "UNAUTHORIZED"
}{
"success": false,
"statusCode": 403,
"error": "Forbidden",
"message": "Access denied",
"code": "FORBIDDEN"
}{
"success": false,
"code": "BATCH_NOT_FOUND",
"message": "Revert batch not found"
}{
"success": false,
"statusCode": 500,
"error": "Internal Server Error",
"message": "An unexpected error occurred",
"code": "INTERNAL_ERROR"
}