Skip to content

Order Management System REST API - Audit Controller

The audit/fromposition URL provides access to the raw Updates that have been stored in OMS.

Retrieve updates between a position and a timestamp

Section titled “Retrieve updates between a position and a timestamp”

GET /audit/fromposition

Retrieves the raw updates between a position and a timestamp in the update stream.

Requires the Audit feature permission.

ParameterExpectedDescription
from[<seq>]OptionalAn integer. The starting position of a sequence (exclusive). Repeat for each feed involved in OMS. If omitted, defaults to 0 for all feeds.
toOptionalAn ISO8601 date and time. The most recent timestamp to return (inclusive). If omitted, defaults to now.
countOptionalAn integer. The maximum number of records to return. If omitted, returns every record.
CodeStatusDescription
200SuccessContent is an array of AuditRecord objects.
403FailureThe authenticated identity does not have the Audit permission.

In this example, we retrieve the first 100 updates between the most recent updates seen for each sequence, and a set timestamp.

Terminal window
curl --oauth2-bearer $AccessToken http://oms.hub/audit/fromposition?from[prodigy]=1&from[oms]=100&from[foundry]=10&to=20050101T123000Z&count=100