Skip to main content

AUDIT_TRAIL — Oracle Transportation Management Reference

Audit trail records tracking data changes and user actions.

This page documents the AUDIT_TRAIL table in Oracle Transportation Management (OTM) -- columns, primary key, incremental cursor, and the exact REST API endpoints used to extract it. This is one of 18 OTM tables that Supaflow's Oracle Transportation Management connector syncs natively into Snowflake, Databricks, BigQuery, Redshift, or Postgres.

Overview

AttributeValue
OTM export table nameAUDIT_TRAIL
OTM metadata resource nameauditTrails
Primary keyAUDIT_TRAIL_GID
Incremental cursor fieldUPDATE_DATE
CategoryReference

OTM REST API endpoints

OTM exposes every table through the logistics REST API. Paths depend on the authentication method you use.

Export API (fetch rows)

POST one of the following URLs, depending on your OTM authentication mode:

  • OAuth 2.0 (IDCS): https://{your-otm-host}/logisticsRestApi/data/v1/exportRequests/
  • Basic Auth: https://{your-otm-host}/logisticsRestApi/data-int/v1/exportRequests/

Example request body for AUDIT_TRAIL:

{
"schema": "PRIMARY",
"contentType": "text/plain",
"tables": {
"items": [
{ "tableName": "AUDIT_TRAIL", "partSize": 5000 }
]
}
}

To pull only rows updated after a given timestamp (the recommended pattern for incremental sync), add a rangeAfter block:

{
"schema": "PRIMARY",
"contentType": "text/plain",
"rangeAfter": { "value": "2026-04-01T00:00:00Z" },
"tables": {
"items": [
{ "tableName": "AUDIT_TRAIL", "partSize": 5000 }
]
}
}

The response is a CSV payload with the table name on line 1, column headers on line 2, and data rows starting on line 3.

Metadata catalog (fetch schema)

GET the schema for AUDIT_TRAIL:

  • OAuth 2.0: https://{your-otm-host}/logisticsRestApi/resources/v2/metadata-catalog/auditTrails
  • Basic Auth: https://{your-otm-host}/logisticsRestApi/resources-int/v2/metadata-catalog/auditTrails
note

The OTM metadata-catalog endpoint returns HTTP 400 for several tables. If you receive a 400 here, fall back to data-driven type inference by sampling rows from the Export API. See the OTM integration guide for the full pattern.

Columns

ColumnTypeNullablePKForeign key
AUDIT_TRAIL_GIDVARCHAR2(101)Yes
AUDIT_TRAIL_XIDVARCHAR2(50)
NOTIFY_SUBJECT_GIDVARCHAR2(101)NOTIFY_SUBJECT
NOTIFY_FUNCTION_GIDVARCHAR2(101)NOTIFY_FUNCTION
GL_USER_GIDVARCHAR2(101)
AUDIT_TIMEDATE
APP_ACTION_GIDVARCHAR2(101)YesAPP_ACTION
APP_ACTION_PARAMETERSVARCHAR2(500)Yes
BS_QUICK_CODE_GIDVARCHAR2(101)YesBS_QUICK_CODE
BS_RESPONSIBLE_PARTY_GIDVARCHAR2(101)YesBS_RESPONSIBLE_PARTY
BS_STATUS_GROUP_GIDVARCHAR2(101)YesBS_STATUS_GROUP
BS_STATUS_CODE_GIDVARCHAR2(101)YesBS_STATUS_CODE
BS_REASON_GROUP_GIDVARCHAR2(101)YesBS_REASON_GROUP
BS_REASON_CODE_GIDVARCHAR2(101)YesBS_REASON_CODE
BS_REASON_COMMENTVARCHAR2(2000)Yes
TRANSACTIONAL_EVENT_GIDVARCHAR2(101)YesTRANSACTIONAL_EVENT
AUDIT_OBJECT_TYPE_GIDVARCHAR2(101)YesAUDIT_OBJECT_TYPE
OBJECT_GIDVARCHAR2(101)Yes
REASON_REQUIRED_TYPEVARCHAR2(30) PROMPT/PARTY/STATU
REASON_SOURCEVARCHAR2(255)Yes
MARKED_FOR_PURGEVARCHAR2(1) Y/NYes
DOMAIN_NAMEVARCHAR2(50)
INSERT_USERVARCHAR2(128)
INSERT_DATEDATE
UPDATE_USERVARCHAR2(128)Yes
UPDATE_DATEDATEYes
Column list source

The column list above is extracted from Oracle's OTM data dictionary included with the February 2025 release snapshot of this connector. Oracle publishes an updated dictionary with every Transportation and Global Trade Management release; for the current version, consult Oracle's Transportation and Global Trade Management documentation.

Incremental sync

The AUDIT_TRAIL table supports incremental sync via the UPDATE_DATE cursor. Supaflow's connector handles:

  • Server-side clock skew -- measured once from OTM's RFC 1123 Date header and applied to every cursor comparison.
  • Late-arriving updates -- configurable lookback window (recommended 300-600 seconds in production) re-scans the tail of the previous window.
  • Identical-timestamp batches -- tracks record count at the maximum cursor timestamp so batch updates that stamp thousands of rows with the same UPDATE_DATE don't cause missed or duplicated rows.

Full pattern: The Complete Guide to Oracle Transportation Management Integration.

Sync AUDIT_TRAIL with Supaflow

Supaflow's Oracle Transportation Management connector syncs AUDIT_TRAIL -- along with 17 other OTM tables -- into your cloud data warehouse with:

  • Sync and async (Object Storage PAR) export modes
  • Proactive OAuth token refresh (60-second safety margin on IDCS tokens)
  • Composite primary key preservation for tables with multi-field keys
  • Automatic handling of the five OTM-specific data quirks (metadata 400s, "0" temporal sentinels, Z-suffixed date fields, 1 MB sync-mode truncation, _TEXT / _COMMENT column type overrides)
  • Predictable connector-based pricing -- not per-row, not per MAR

Next steps: