# Get wallet operations

List of wallet operations with cursor pagination. To fetch the next page, pass `cursor` in the query parameter named in `cursor.queryField`.

Endpoint: GET /flow/{flowServiceId}/submerchants/{submerchantId}/finances/{walletId}/transactions
Version: 1.0.0
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer scopes: flow.submerchants.finances

## Path parameters:

  - `flowServiceId` (string, required)
    Flow service ID

  - `submerchantId` (string, required)
    Submerchant ID (`flsm_...`) or its `customId`

  - `walletId` (string, required)
    Wallet ID

## Query parameters:

  - `filter[action]` (string)

  - `cursor` (string)
    Page cursor (from `cursor.next.cursor` / `cursor.previous.cursor`)

  - `perPage` (integer)
    Number of results per page

  - `sort` (string)
    Sort order (-created_at = newest first, created_at = oldest first)

## Response 200 fields (application/json):

  - `success` (boolean, required)
    Request status

  - `data` (object, required)

  - `data.transactions` (array)

  - `data.transactions.id` (string)
    Operation ID

  - `data.transactions.action` (string)
    Operation kind
    Enum: "service", "commission", "fraud", "withdraw", "refund", "bank_fee"

  - `data.transactions.type` (string)
    `deposit` - top-up, `withdraw` - funds debited
    Enum: "deposit", "withdraw"

  - `data.transactions.amount` (number)
    Example: 10

  - `data.transactions.amountBefore` (number)
    Balance before the operation (null if the operation has not been settled to the wallet yet)
    Example: 0

  - `data.transactions.amountAfter` (number)
    Balance after the operation
    Example: 10

  - `data.transactions.context` (object)

  - `data.transactions.context.transaction` (object)
    Related payment transaction

  - `data.transactions.context.transaction.id` (string)
    Transaction ID

  - `data.transactions.context.transaction.friendlyId` (string)
    Transaction ID shown to the buyer

  - `data.transactions.context.transaction.description` (string)

  - `data.transactions.context.transaction.control` (string)

  - `data.transactions.context.withdraw` (object)
    Related withdrawal (for `withdraw` and `bank_fee`)

  - `data.transactions.context.withdraw.id` (string)

  - `data.transactions.context.withdraw.shortId` (string)

  - `data.transactions.context.refund` (object)
    Related refund (for `refund`)

  - `data.transactions.context.refund.id` (string)
    Refund ID

  - `data.transactions.context.refund.friendlyId` (string)

  - `data.transactions.createdAt` (string)
    Creation date in format: ISO 8601

  - `data.wallet` (object)

  - `data.wallet.id` (string)
    Wallet ID
    Example: 0199a5f0-2b8c-7c1e-9e3a-1f2b3c4d5e6f

  - `data.wallet.type` (object)

  - `data.wallet.type.id` (string)
    Enum: "mobile", "payment", "referral", "flow"

  - `data.wallet.type.name` (string)
    Example: Płatności online

  - `data.wallet.balance` (number)
    Wallet balance
    Example: 123.45

  - `data.wallet.currency` (object)

  - `data.wallet.currency.isoCode` (string)
    Example: PLN

  - `data.wallet.currency.prefix` (string)
    Example: null

  - `data.wallet.currency.suffix` (string)
    Example: zł

  - `data.wallet.currency.currencyRateToPln` (number)
    Example: 1

  - `data.wallet.currency.nbpTable` (string)
    Example: A

  - `data.wallet.withdrawType` (string)
    Withdrawal type
    Enum: "manual", "workdays", "balance_greater_than", "custom_days"

  - `data.wallet.withdrawBalanceToAutoPayout` (number)
    Balance above which an automatic withdrawal is made
    Example: 100

  - `data.wallet.minBalanceToWithdraw` (number)
    Minimum balance to withdraw
    Example: 10

  - `data.wallet.customDaysToWithdraw` (array)
    Withdrawal weekdays (1 = Monday, 5 = Friday)
    Example: [1,5]

  - `data.wallet.invoiceLocale` (string)
    Invoice language
    Enum: "pl", "en"

  - `data.wallet.withdrawBalanceLeftBalance` (number)
    Amount left in the wallet on automatic withdrawal
    Example: 10

  - `cursor` (object, required)

  - `cursor.path` (string)
    Resource URL

  - `cursor.perPage` (integer)
    Example: 15

  - `cursor.next` (object)

  - `cursor.next.cursor` (string)
    Next page cursor

  - `cursor.next.url` (string)
    Next page URL

  - `cursor.previous` (object)

  - `cursor.previous.cursor` (string)
    Previous page cursor

  - `cursor.previous.url` (string)
    Previous page URL

  - `cursor.queryField` (string)
    Name of the query parameter in which the cursor should be passed
    Example: cursor

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `feedbackUrl` (string)
    URL for reporting API problems (`POST /feedback`). Returned for authenticated API keys.
    Example: https://api.simpay.pl/feedback

  - `success` (boolean, required)
    Request status

  - `errorCode` (string, required)
    Error status code
    Enum: "UNAUTHORIZED"

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `feedbackUrl` (string)
    URL for reporting API problems (`POST /feedback`). Returned for authenticated API keys.
    Example: https://api.simpay.pl/feedback

  - `success` (boolean, required)
    Request status

  - `errorCode` (string, required)
    Error status code
    Enum: "INVALID_ABILITY_PROVIDED", "IP_ADDRESS_NOT_WHITELISTED"

## Response 404:

  - `404` (unknown)
    Submerchant not found (`FLOW_SUBMERCHANT_NOT_FOUND`)

## Response 404 fields (application/json):

  - `success` (boolean, required)
    Request status

  - `message` (string)
    Error description

  - `errorCode` (string, required)
    Error code

## Response 422:

  - `422` (unknown)
    Unprocessable Content

## Response 422 fields (application/json):

  - `feedbackUrl` (string)
    URL for reporting API problems (`POST /feedback`). Returned for authenticated API keys.
    Example: https://api.simpay.pl/feedback

  - `success` (boolean, required)
    Request status

  - `errorCode` (string, required)
    Error status code
    Enum: "VALIDATION_ERROR"

  - `errors` (object, required)

  - `errors.amount` (array)

