> ## Documentation Index
> Fetch the complete documentation index at: https://gnosispay-feat-v2-auth-module.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Withdrawal

> Create a withdrawal request for the authenticated user. Requires an
existing account.



## OpenAPI

````yaml https://core.prod.gnosispay.com/user-api/openapi.json post /user/withdrawal
openapi: 3.1.0
info:
  title: User Service
  version: 0.0.0
servers: []
security: []
tags:
  - name: Health
  - name: Auth
  - name: User
  - name: Cards
  - name: Phone
  - name: PCI
  - name: Terms
  - name: Source of Funds
paths:
  /user/withdrawal:
    post:
      tags:
        - User
      summary: Create Withdrawal
      description: |-
        Create a withdrawal request for the authenticated user. Requires an
        existing account.
      operationId: User_createUserWithdrawal
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWithdrawalRequest'
      responses:
        '201':
          description: >-
            The request has succeeded and a new resource has been created as a
            result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateWithdrawalSuccess'
        '400':
          description: Validation failure for withdrawal request fields.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthBadRequest'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Unauthorized'
        '404':
          description: The server cannot find the requested resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFound'
        '502':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateWithdrawalBadGateway'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - BearerAuth: []
components:
  schemas:
    CreateWithdrawalRequest:
      type: object
      required:
        - tokenAddress
        - amount
      properties:
        tokenAddress:
          type: string
          pattern: ^0x[a-fA-F0-9]{40}$
        amount:
          type: string
          pattern: ^[0-9]+$
    CreateWithdrawalSuccess:
      type: object
      required:
        - withdrawalId
      properties:
        withdrawalId:
          $ref: '#/components/schemas/uuid'
    AuthBadRequest:
      type: object
      oneOf:
        - $ref: '#/components/schemas/AuthValidationError'
        - $ref: '#/components/schemas/AuthBusinessError'
      discriminator:
        propertyName: kind
        mapping:
          validation:
            $ref: '#/components/schemas/AuthValidationError'
          business:
            $ref: '#/components/schemas/AuthBusinessError'
      description: >-
        Discriminated 400 body for auth POST routes. The `kind` field is
        additive

        and not a breaking change. Clients can keep reading `success` and
        `error`.
    Unauthorized:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
    NotFound:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
    CreateWithdrawalBadGateway:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
    Error:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
    uuid:
      type: string
      format: uuid
    AuthValidationError:
      type: object
      required:
        - kind
        - success
        - error
      properties:
        kind:
          type: string
          enum:
            - validation
        success:
          type: boolean
          enum:
            - false
        error:
          $ref: '#/components/schemas/ValidationErrorDetail'
      description: Validation failure on auth routes (decoder / request constraints).
    AuthBusinessError:
      type: object
      required:
        - kind
        - success
        - error
      properties:
        kind:
          type: string
          enum:
            - business
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
      description: Domain/business failure on auth routes (returned by handlers).
    ValidationErrorDetail:
      type: object
      required:
        - name
        - message
      properties:
        name:
          type: string
          enum:
            - ValidationError
        message:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````