> ## Documentation Index
> Fetch the complete documentation index at: https://developer.paywint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Paywint Bank Account Withdrawal

> Transfers funds from a platform user's Paywint bank account to their wallet, card, or ACH bank account.

This endpoint:
- Uses the user's Paywint bank account as the funding source
- Supports wallet, card, and ACH destinations
- Returns the withdrawal transaction details upon successful processing



## OpenAPI

````yaml POST /api/platform/withdrawals/transfer-from-pw-bank/{user_id}
openapi: 3.1.0
info:
  title: paywint
  version: 0.1.0
servers:
  - url: https://api.paywint.com
  - url: https://api.sandbox.paywint.com
security: []
paths:
  /api/platform/withdrawals/transfer-from-pw-bank/{user_id}:
    post:
      tags:
        - Platform Withdrawals
      summary: Transfer From Paywint Bank
      description: >-
        Transfers funds from a platform user's Paywint bank account to their
        wallet, card, or ACH bank account.


        This endpoint:

        - Uses the user's Paywint bank account as the funding source

        - Supports wallet, card, and ACH destinations

        - Returns the withdrawal transaction details upon successful processing
      operationId: >-
        transfer_from_pw_bank_api_platform_withdrawals_transfer_from_pw_bank__user_id__post
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: Unique identifier (UUID) of the user initiating the transfer.
            title: User Id
          description: Unique identifier (UUID) of the user initiating the transfer.
          example: f47ac10b-****-****-****-0e02b2c3d479
        - name: X-Platform-ID
          in: header
          required: true
          schema:
            type: string
            format: uuid
            description: >-
              Unique platform identifier (UUID). You receive this during
              onboarding. Must be sent with every API request.
            title: X-Platform-Id
          description: >-
            Unique platform identifier (UUID). You receive this during
            onboarding. Must be sent with every API request.
        - name: X-Signature
          in: header
          required: true
          schema:
            type: string
            description: >-
              HMAC-SHA256 request signature for authentication. Use your
              platform secret key to compute it as: `METHOD + PATH + QUERY +
              BODY_HASH`.
            title: X-Signature
          description: >-
            HMAC-SHA256 request signature for authentication. Use your platform
            secret key to compute it as: `METHOD + PATH + QUERY + BODY_HASH`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PlatformPWBankTransferCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/CommonResponse_PlatformPWBankTransferRead_
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PlatformPWBankTransferCreate:
      properties:
        amount:
          type: number
          exclusiveMinimum: 0
          title: Amount
          description: Amount to transfer from the Paywint bank account
        from_bank_id:
          type: string
          format: uuid
          title: From Bank Id
          description: Source Paywint-linked bank account ID to transfer from
        destination:
          $ref: '#/components/schemas/PlatformPWBankTransferDestination'
          description: Destination for the transfer (WALLET, CARD, or ACH)
        memo:
          anyOf:
            - type: string
              maxLength: 255
            - type: 'null'
          title: Memo
          description: Optional memo for the transfer
        card_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Card Id
          description: Card ID to transfer to when destination is CARD
        to_bank_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: To Bank Id
          description: Bank account ID to transfer to when destination is ACH
      type: object
      required:
        - amount
        - from_bank_id
        - destination
      title: PlatformPWBankTransferCreate
    CommonResponse_PlatformPWBankTransferRead_:
      properties:
        success:
          type: boolean
          title: Success
          description: Indicates whether the request was processed successfully.
          default: true
          example: true
        message:
          type: string
          title: Message
          description: >-
            A short, human-readable message describing the result of the
            request.
          default: Success
          example: Operation completed.
        data:
          anyOf:
            - $ref: '#/components/schemas/PlatformPWBankTransferRead'
            - type: 'null'
          description: The main response payload, if applicable
        queryGeneratedTime:
          anyOf:
            - type: number
            - type: 'null'
          title: Querygeneratedtime
          description: >-
            The Unix timestamp (in seconds) indicating when the response was
            generated.
          default: 1783679844.273462
          example: 1718006400
      type: object
      title: CommonResponse[PlatformPWBankTransferRead]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PlatformPWBankTransferDestination:
      type: string
      enum:
        - WALLET
        - CARD
        - ACH
      title: PlatformPWBankTransferDestination
    PlatformPWBankTransferRead:
      properties:
        withdrawal_id:
          type: string
          format: uuid
          title: Withdrawal Id
          description: UUID of the withdrawal transaction
        user_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: User Id
          description: UUID of the user who requested the transfer
        from_bank_id:
          type: string
          format: uuid
          title: From Bank Id
          description: Source Paywint-linked bank account ID funds were transferred from
        destination:
          $ref: '#/components/schemas/PlatformPWBankTransferDestination'
          description: Destination selected for the transfer
        to_bank_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: To Bank Id
          description: Bank account credited when destination is ACH
        card_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Card Id
          description: Card credited when destination is CARD
        withdrawal_payment_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Withdrawal Payment Id
          description: UUID of the related payment record
        amount:
          anyOf:
            - type: number
            - type: 'null'
          title: Amount
          description: Requested transfer amount
        amount_credited:
          anyOf:
            - type: number
            - type: 'null'
          title: Amount Credited
          description: Amount credited after processing fees
        processing_fees:
          anyOf:
            - type: number
            - type: 'null'
          title: Processing Fees
          description: Total processing fees deducted
        memo:
          anyOf:
            - type: string
            - type: 'null'
          title: Memo
          description: Memo attached to the transfer
        status:
          anyOf:
            - $ref: '#/components/schemas/WithdrawalStatus'
            - type: 'null'
          description: Status of the transfer
        failed_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Failed Reason
          description: Failure reason, if any
      type: object
      required:
        - withdrawal_id
        - from_bank_id
        - destination
      title: PlatformPWBankTransferRead
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    WithdrawalStatus:
      type: string
      enum:
        - pending
        - processed
        - completed
        - failed
        - rejected
        - returned
        - on_hold
        - canceled
      title: WithdrawalStatus

````