# Request withdrawal

Requests a manual withdrawal of funds from the wallet. Requires `withdraw.type` set to `manual` in the wallet settings.

Endpoint: POST /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, flow.submerchants.withdraws.create

## Path parameters:

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

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

  - `walletId` (string, required)
    Wallet ID

## Response 204:

  - `204` (unknown)
    Withdrawal has been requested

## Response 400:

  - `400` (unknown)
    Withdrawal error (`ERR_WITHDRAW_ERROR`), details in the `message` field

## Response 400 fields (application/json):

  - `success` (boolean, required)
    Request status

  - `message` (string)
    Error description

  - `errorCode` (string, required)
    Error code

## 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)
    - `FLOW_SUBMERCHANT_NOT_ACTIVE`
 - submerchant is not active
- `UBO_DOCUMENT_REVERIFICATION_REQUIRED`
 - the identity document of the ultimate beneficial owner has expired; withdrawals are blocked until a new document is approved
- `ERR_ACCESS_DENIED`
 - the submerchant is not active, the wallet does not exist or is not a payment wallet

## Response 403 fields (application/json):

  - `success` (boolean, required)
    Request status

  - `message` (string)
    Error description

  - `errorCode` (string, required)
    Error code

## 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 409:

  - `409` (unknown)
    Manual withdrawals are disabled (`ERR_MANUAL_WITHDRAWALS_DISABLED`)

## Response 409 fields (application/json):

  - `success` (boolean, required)
    Request status

  - `message` (string)
    Error description

  - `errorCode` (string, required)
    Error code

## Response 500:

  - `500` (unknown)
    Internal error (`ERR_INTERNAL`, `ERR_INTERNAL_CONFIGURATION`) - contact SimPay

## Response 500 fields (application/json):

  - `success` (boolean, required)
    Request status

  - `message` (string)
    Error description

  - `errorCode` (string, required)
    Error code

