Capture Internal Statement
Request and response reference for POST /v1/console/operations/statements.
/v1/console/operations/statementsRequest
This entry point does not require an existing session. Applicable onboarding, origin and verification policies still apply.
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
| Name | Location | Requirement | Description |
|---|---|---|---|
Idempotency-Key | header · string | Required | Use the value defined for this resource. |
X-CSRF-Token | header · string | Required | Use 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.
| Field | Type | Description & constraints |
|---|---|---|
command_idRequired in parent object | string | Defined by the resource contract.Pattern: ^[A-Za-z0-9:_-]{1,128}$ |
fromRequired in parent object | stringdate-time | Defined by the resource contract. |
toRequired in parent object | stringdate-time | Defined by the resource contract. |
currencyOptional | string | Defined by the resource contract.Pattern: ^[A-Z]{3}$ |
reasonRequired in parent object | string | Defined 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
| Field | Type | Description & constraints |
|---|---|---|
statement_idRequired in parent object | string | Defined by the resource contract. |
institution_idRequired in parent object | string | Defined by the resource contract. |
command_idRequired in parent object | string | Defined by the resource contract. |
fromRequired in parent object | stringdate-time | Defined by the resource contract. |
toRequired in parent object | stringdate-time | Defined by the resource contract. |
currencyOptional | string | Defined by the resource contract. |
captured_atRequired in parent object | stringdate-time | Defined by the resource contract. |
sourceRequired in parent object | string | Defined by the resource contract.Values: INTERNAL_LEDGER |
consistencyRequired in parent object | string | Defined by the resource contract.Values: SINGLE_STATEMENT_MVCC |
sign_conventionRequired in parent object | string | Defined by the resource contract.Values: CUSTOMER_LIABILITY_CREDIT_MINUS_DEBIT |
certifiedRequired in parent object | boolean | Defined by the resource contract.Values: false |
content_hashRequired in parent object | string | Defined by the resource contract.Pattern: ^[0-9a-f]{64}$ |
accountsRequired in parent object | array | Defined by the resource contract. |
accounts[].account_codeRequired in parent object | string | Defined by the resource contract. |
accounts[].currencyRequired in parent object | string | Defined by the resource contract. |
accounts[].opening_minorRequired in parent object | string | Defined by the resource contract.Pattern: ^-?[0-9]+$ |
accounts[].debits_minorRequired in parent object | string | Defined by the resource contract.Pattern: ^-?[0-9]+$ |
accounts[].credits_minorRequired in parent object | string | Defined by the resource contract.Pattern: ^-?[0-9]+$ |
accounts[].closing_minorRequired in parent object | string | Defined by the resource contract.Pattern: ^-?[0-9]+$ |
entriesRequired in parent object | array | Defined by the resource contract. |
entries[].entry_idRequired in parent object | string | Defined by the resource contract.Pattern: ^[0-9]+$ |
entries[].journal_idRequired in parent object | string | Defined by the resource contract. |
entries[].trade_idRequired in parent object | string | Defined by the resource contract. |
entries[].posted_atRequired in parent object | stringdate-time | Defined by the resource contract. |
entries[].account_codeRequired in parent object | string | Defined by the resource contract. |
entries[].currencyRequired in parent object | string | Defined by the resource contract. |
entries[].debit_minorRequired in parent object | string | Defined by the resource contract.Pattern: ^-?[0-9]+$ |
entries[].credit_minorRequired in parent object | string | Defined by the resource contract.Pattern: ^-?[0-9]+$ |
metricsRequired in parent object | array | Defined by the resource contract. |
metrics[].currencyRequired in parent object | string | Defined by the resource contract. |
metrics[].debits_minorRequired in parent object | string | Defined by the resource contract.Pattern: ^-?[0-9]+$ |
metrics[].credits_minorRequired in parent object | string | Defined by the resource contract.Pattern: ^-?[0-9]+$ |
metrics[].net_change_minorRequired in parent object | string | Defined by the resource contract.Pattern: ^-?[0-9]+$ |
posted_journal_countRequired in parent object | integer | Defined 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.