# Get withdrawals list

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

## Security:

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

## 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[id]` (string)

  - `filter[shortId]` (string)

  - `filter[status]` (string)

  - `page` (integer)
    Page number

  - `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` (array, required)

  - `data.id` (string)
    Withdrawal ID

  - `data.shortId` (string)
    Withdrawal short ID
    Example: 1f2b3c4d

  - `data.status` (string)
    Withdrawal status
    Enum: "new", "accepted", "rejected", "waiting", "done"

  - `data.amount` (number)
    Example: 100

  - `data.fee` (number)
    Withdrawal fee
    Example: 0

  - `data.createdBy` (string)
    `system` - automatic withdrawal, `client` - manual withdrawal
    Enum: "system", "client"

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

  - `data.bankAccount` (object)

  - `data.bankAccount.isDefault` (boolean)

  - `data.bankAccount.iban` (string)
    Example: PL61109010140000071219812874

  - `data.bankAccount.bic` (string)

  - `data.bankAccount.status` (string)

  - `data.bankAccount.name` (string)

  - `data.bankAccount.bank` (object)

  - `data.bankAccount.bank.id` (string)
    Bank sort code (KIR)

  - `data.bankAccount.bank.name` (string)

  - `pagination` (object, required)

  - `pagination.total` (integer, required)
    Total number of records
    Example: 1

  - `pagination.count` (integer, required)
    Number of records on the current page
    Example: 1

  - `pagination.per_page` (integer, required)
    Maximum number of records per page
    Example: 15

  - `pagination.current_page` (integer, required)
    Current page
    Example: 1

  - `pagination.total_pages` (integer, required)
    Total number of pages
    Example: 1

  - `pagination.links` (object, required)
    URLs to pages

  - `pagination.links.next_page` (string, required)
    URL to the next page
    Example: null

  - `pagination.links.prev_page` (string, required)
    URL to the previous page
    Example: null

## 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)

