Miracle Docs
Balance

List balance entries

Cursor-paginated list of balance entries (the immutable ledger of every credit and debit that affects the caller’s balance). Ordered by occurredAt descending (newest first). Filter by scope, currency, bucket, entry type, status, or a time range.

GET
/v1/balance-entries
AuthorizationBearer <token>

In: header

Query Parameters

scopeLevel?string

Restrict to entries at a specific scope level.

Value in"terminal" | "channel" | "merchant" | "company" | "tenant" | "platform" | "partner" | "funding_account"
scopeEntityId?string

Restrict to a specific entity ID (UUID v7). Must be paired with scopeLevel.

Formatuuid
currency?string

ISO 4217 currency filter.

bucket?string

Restrict to a single bucket (e.g. "available", "pending").

Value in"available" | "pending" | "payable" | "reserved" | "collateral" | "operational"
type?string

Restrict to a specific entry type (e.g. "payment", "refund", "fee").

Value in"payment" | "refund" | "chargeback" | "withdrawal" | "payout" | "fee" | "adjustment" | "transfer" | "reserve_hold" | "reserve_release" | "provider_settlement" | "funding_payout" | "other"
status?string

Restrict to a specific entry lifecycle status.

Value in"pending" | "available" | "completed" | "failed" | "canceled"
from?string

Lower bound on occurredAt (inclusive, ISO 8601).

Formatdate-time
to?string

Upper bound on occurredAt (exclusive, ISO 8601).

Formatdate-time
livemode?string

Accepted for compatibility. Entries always belong to the caller mode.

Value in"true" | "false"
cursor?string

Pagination cursor from a previous response.

Formatuuid
limit?integer

Page size. Default 20, maximum 100.

Default20
Range1 <= value <= 100

Response Body

application/json

curl -X GET "https://<api-host>/v1/balance-entries"
{
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",
      "livemode": true,
      "scope": {
        "level": "terminal",
        "terminalId": "57e69e1b-2c00-4a26-b5e3-44617c6cc659"
      },
      "currency": "string",
      "amount": {
        "currency": "string",
        "valueMinor": 9007199254740991
      },
      "fee": {
        "currency": "string",
        "valueMinor": 9007199254740991
      },
      "net": {
        "currency": "string",
        "valueMinor": 9007199254740991
      },
      "feeDecomposition": {
        "providerFee": {
          "currency": "string",
          "valueMinor": 9007199254740991
        },
        "platformFee": {
          "currency": "string",
          "valueMinor": 9007199254740991
        },
        "tenantFee": {
          "currency": "string",
          "valueMinor": -9007199254740991
        },
        "partnerCommission": {
          "currency": "string",
          "valueMinor": 9007199254740991
        }
      },
      "direction": "credit",
      "type": "payment",
      "bucketType": "available",
      "status": "pending",
      "availableOn": "string",
      "occurredAt": "string",
      "source": {
        "paymentId": "472e651e-5a1e-424d-8098-23858bf03ad7",
        "refundId": "3324897f-393a-4bf6-b3af-0b999cbc2521",
        "withdrawalRequestId": "cf251954-47d2-4ebf-b484-b27d67ced844",
        "payoutId": "c3d65312-6575-43de-b8ae-728d8d0a9371",
        "disputeId": "57331f1d-cb7c-4df0-89e4-ba6ba8d5fd8f",
        "transferId": "e240f72a-b0bc-4f57-ab86-5b78f1d8ea9b",
        "adjustmentId": "ded5406e-cf84-4ac8-a375-839db64ab188",
        "providerSettlementId": "4a4691ea-ce21-4410-b5e8-6a262f513b5c",
        "fundingAccountId": "2d58f397-b4d9-4f93-90cb-6efb6d145ec8",
        "reference": "string"
      },
      "ledgerEntryIds": [
        "497f6eca-6276-4993-bfeb-53cbbbba6f08"
      ],
      "providerReference": "string",
      "providerStatus": "string",
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "createdAt": "string",
      "updatedAt": "string",
      "deletedAt": null
    }
  ],
  "pagination": {
    "nextCursor": "string",
    "prevCursor": "string",
    "hasMore": true,
    "totalCount": 0
  }
}
Empty
Empty

On this page