OpenPoly logo
Operator Api

Balance operations

Inspect operator wallet mutation records.

Balance operations

Inspect wallet mutation records against operator adapter.

Path

GET /api/operator/balance-operations

Required scope: balance_operations:read

Query params

All query parameters are optional.

ParameterTypeRequirementValues/default
statusstringOptionalOne of the operation statuses below.
directionstringOptionalOne of the direction values below.
typestringOptionaltrade or resolution.
marketstringOptionalConvenience filter: positive numeric market ID or exact market slug.
market_idpositive integerOptionalExact market ID; takes precedence over numeric market.
market_slugstringOptionalExact market slug; takes precedence over a slug in market.
external_user_idstringOptionalExact operator-side user ID.
order_idpositive integerOptionalExact Mini App order ID.
redemption_item_idpositive integerOptionalExact Mini App redemption item ID.
created_fromdatetimeOptionalInclusive creation-time lower bound.
created_todatetimeOptionalInclusive creation-time upper bound.
sortstringOptionalcreated_at_desc (default), updated_at_desc, or next_retry_at_asc.
pagepositive integerOptionalDefault 1.
page_sizepositive integerOptionalDefault 50, maximum 100.

Direction values:

  • debit
  • credit
  • debit_reversal
  • credit_reversal

Status values:

  • planned
  • sent
  • succeeded
  • failed
  • unknown
  • retrying
  • manual_review

Filtered summary

Every response includes a summary computed across all rows matching the same authenticated-operator and query-filter predicates as items and pagination.total. Summary values are not limited to the current page and are not implicitly restricted to succeeded; use status when a status-specific report is required.

FieldJSON typeDefinition
credit_external_amount_minor_totalintegerSum of non-negative operation amounts for credit and debit_reversal.
debit_external_amount_minor_totalintegerSum of non-negative operation amounts for debit and credit_reversal.
volume_external_amount_minor_totalintegerCredits total plus debits total.
currency_codestringAuthenticated operator's configured currency code.

created_from and created_to remain inclusive for the summary, count, and rows. Dashboard date-only filters expand to 00:00:00.000Z and 23:59:59.999Z UTC before calling this endpoint.

Response highlights

  • external_amount_minor
  • currency_code
  • idempotency_key
  • remote_reference
  • request_json
  • response_json
  • balance_after_minor
  • operation_type
  • failure_reason
  • attempt_count
  • next_retry_at
  • nested operator_user
  • nested market, nullable

balance_after_minor is nullable and is extracted from wallet response balanceMinor or balance_minor when present.

operation_type is derived from the linked source: order_id means trade; redemption_item_id means resolution; an unlinked historical/internal row returns unknown.

Copyright © 2026