DevelopersOsai website ↗
API v1
Console operations / API reference

Capture Internal Statement

Request and response reference for POST /v1/console/operations/statements.

POST/v1/console/operations/statements
Authentication: UnauthenticatedPermission: reports.statements.create
Use the base URL and access configuration provided to your institution. Examples are request templates, not transaction results. Field tables focus on client fields; preserve additional metadata returned by the configured service.

Request

This entry point does not require an existing session. Applicable onboarding, origin and verification policies still apply.

Request templatecURL
curl -X POST "$OSAI_CONSOLE_BASE_URL/v1/console/operations/statements" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <stable-operation-key>" \
  --data '{
  "command_id": "<command_id>",
  "from": "<RFC3339 timestamp>",
  "to": "<RFC3339 timestamp>",
  "reason": "<reason>"
}'

Parameters

NameLocationRequirementDescription
Idempotency-Keyheader · stringRequiredUse the value defined for this resource.
X-CSRF-Tokenheader · stringRequiredUse the value defined for this resource.

Request body

Send JSON with Content-Type: application/json. Nested field names identify their parent object; required markers apply within that object. Replace template values using the relevant resource and configured instrument rules.

FieldTypeDescription & constraints
command_idRequired in parent objectstringDefined by the resource contract.Pattern: ^[A-Za-z0-9:_-]{1,128}$
fromRequired in parent objectstringdate-timeDefined by the resource contract.
toRequired in parent objectstringdate-timeDefined by the resource contract.
currencyOptionalstringDefined by the resource contract.Pattern: ^[A-Z]{3}$
reasonRequired in parent objectstringDefined by the resource contract.

Responses

Inspect HTTP status before parsing a body. These tables describe client response fields rather than invented successful transaction payloads.

200 · Current-human scoped internal Ledger statement response
FieldTypeDescription & constraints
statement_idRequired in parent objectstringDefined by the resource contract.
institution_idRequired in parent objectstringDefined by the resource contract.
command_idRequired in parent objectstringDefined by the resource contract.
fromRequired in parent objectstringdate-timeDefined by the resource contract.
toRequired in parent objectstringdate-timeDefined by the resource contract.
currencyOptionalstringDefined by the resource contract.
captured_atRequired in parent objectstringdate-timeDefined by the resource contract.
sourceRequired in parent objectstringDefined by the resource contract.Values: INTERNAL_LEDGER
consistencyRequired in parent objectstringDefined by the resource contract.Values: SINGLE_STATEMENT_MVCC
sign_conventionRequired in parent objectstringDefined by the resource contract.Values: CUSTOMER_LIABILITY_CREDIT_MINUS_DEBIT
certifiedRequired in parent objectbooleanDefined by the resource contract.Values: false
content_hashRequired in parent objectstringDefined by the resource contract.Pattern: ^[0-9a-f]{64}$
accountsRequired in parent objectarrayDefined by the resource contract.
accounts[].account_codeRequired in parent objectstringDefined by the resource contract.
accounts[].currencyRequired in parent objectstringDefined by the resource contract.
accounts[].opening_minorRequired in parent objectstringDefined by the resource contract.Pattern: ^-?[0-9]+$
accounts[].debits_minorRequired in parent objectstringDefined by the resource contract.Pattern: ^-?[0-9]+$
accounts[].credits_minorRequired in parent objectstringDefined by the resource contract.Pattern: ^-?[0-9]+$
accounts[].closing_minorRequired in parent objectstringDefined by the resource contract.Pattern: ^-?[0-9]+$
entriesRequired in parent objectarrayDefined by the resource contract.
entries[].entry_idRequired in parent objectstringDefined by the resource contract.Pattern: ^[0-9]+$
entries[].journal_idRequired in parent objectstringDefined by the resource contract.
entries[].trade_idRequired in parent objectstringDefined by the resource contract.
entries[].posted_atRequired in parent objectstringdate-timeDefined by the resource contract.
entries[].account_codeRequired in parent objectstringDefined by the resource contract.
entries[].currencyRequired in parent objectstringDefined by the resource contract.
entries[].debit_minorRequired in parent objectstringDefined by the resource contract.Pattern: ^-?[0-9]+$
entries[].credit_minorRequired in parent objectstringDefined by the resource contract.Pattern: ^-?[0-9]+$
metricsRequired in parent objectarrayDefined by the resource contract.
metrics[].currencyRequired in parent objectstringDefined by the resource contract.
metrics[].debits_minorRequired in parent objectstringDefined by the resource contract.Pattern: ^-?[0-9]+$
metrics[].credits_minorRequired in parent objectstringDefined by the resource contract.Pattern: ^-?[0-9]+$
metrics[].net_change_minorRequired in parent objectstringDefined by the resource contract.Pattern: ^-?[0-9]+$
posted_journal_countRequired in parent objectintegerDefined by the resource contract.Minimum: 0Maximum: 2000
401 · Named session required

No client body fields are defined for this response.

403 · Current permission/MFA/CSRF denied

No client body fields are defined for this response.

404 · Scoped statement absent

No client body fields are defined for this response.

409 · Invalid period, future end or command conflict

No client body fields are defined for this response.

413 · Full result exceeds bound; narrow window; no truncated snapshot stored

No client body fields are defined for this response.

503 · Source/authority unavailable or outcome unknown; no fallback

No client body fields are defined for this response.

Retries & recovery

Keep the original request identifiers and any required idempotency key. A timeout does not establish failure. Read the original resource or command before another financial write; use expected versions for concurrent changes.

16 suggested pages

Get startedIntroductionIntegrate institutional FX and stablecoin trading with quotes, orders, market data, account records and settlement reporting.Get startedQuickstartMake an authenticated read, request a quote and follow an instruction without losing its original references.Get startedAuthenticationUse the correct authentication scheme for API credentials, Console sessions and market-data feeds.Get startedErrorsDistinguish invalid inputs, denied access, conflicts, rate limits and uncertain outcomes.Get startedRate limitsUse response headers, bounded concurrency and backoff rather than repeated bursts.Get startedAmounts & precisionKeep minor-unit money, fixed-point FX rates and instrument-scaled quantities exact.Get startedPagination & recoveryUse each resource’s pagination model and preserve stable recovery checkpoints.Financial workflowsQuotes & acceptanceRequest explicit FX economics, review conditions and retain accepted terms.Financial workflowsTrade lifecycleTrack funding, execution and settlement as distinct business transitions.Financial workflowsBalances & transactionsRead institutional financial positions and reconcile movements by currency.Financial workflowsBeneficiariesRegister beneficiaries and coordinate their institutional approval lifecycle.Financial workflowsCredential managementCreate, inspect, rotate and revoke application credentials without exposing secrets.Events & reliabilityIdempotencyPrevent duplicate financial effects across retries and uncertain outcomes.Events & reliabilityWebhooks & verificationVerify deliveries, persist original events and make downstream processing idempotent.Events & reliabilityEvent payloadsUnderstand the customer event envelope and business transitions behind subscriptions.Events & reliabilityDelivery retries & replayRepair webhook delivery without creating a second business event.