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

# Create Withdrawal (Deprecated)

> Deprecated: use POST /api/v0/withdrawals instead.



## OpenAPI

````yaml POST /api/v0/assets/{asset}/withdrawals
openapi: 3.1.0
info:
  title: Crown API & Webhooks
  version: 1.0.0
  description: >-
    Open API 3 docs for Crown API


    Webhook events that Crown will POST to your configured endpoint URL. All
    webhooks expect a 200 OK response. Payloads use kebab-case for all keys to
    match the Crown API conventions.
servers:
  - url: https://app.crown-brlv.com
    description: Production server
security: []
paths:
  /api/v0/assets/{asset}/withdrawals:
    post:
      summary: 'DEPRECATED: Create a BRL withdrawal'
      description: >-
        DEPRECATED: Use /withdrawals instead. Creates a BRL withdrawal with PIX
        or TED methods. For PIX withdrawals, only a pix-key is required. For TED
        withdrawals, full bank account details are required.
      parameters:
        - in: path
          name: asset
          required: true
          schema:
            type: string
            enum:
              - usdc
              - usdt
              - brl
              - brly
              - usd
              - brlv
              - wbrly
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  enum:
                    - ted
                    - pix
                  description: Withdrawal method. Must be either 'pix' or 'ted'
                  example: pix
                amount:
                  oneOf:
                    - type: string
                    - type: number
                      format: double
                  description: Amount in BRL to withdraw
                  example: '100.50'
                pix-key:
                  type: string
                  description: >-
                    PIX key (email, phone, CPF/CNPJ, or random key). Required
                    when method is 'pix'
                  example: user@example.com
                bank-code:
                  type: string
                  description: 3-digit Brazilian bank code. Required when method is 'ted'
                  example: '001'
                branch-number:
                  type: string
                  description: >-
                    4-5 digit Brazilian branch number. Required when method is
                    'ted'
                  example: '1234'
                account-number:
                  type: string
                  description: Brazilian account number. Required when method is 'ted'
                  example: '12345678'
                account-holder-name:
                  type: string
                  description: Name of the account holder. Required when method is 'ted'
                  example: John Doe
                account-holder-tax-id:
                  oneOf:
                    - type: string
                    - type: string
                  description: >-
                    CPF or CNPJ of the account holder. Required when method is
                    'ted'
                  example: '12345678901'
              additionalProperties: false
              required:
                - method
                - amount
      responses:
        '200':
          description: Asset withdrawal created successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  withdrawal:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                        description: Unique identifier for the created withdrawal
                        example: 660e8400-e29b-41d4-a716-446655440001
                      amount:
                        type: string
                        format: decimal
                        description: Amount in BRL being withdrawn
                        example: '100.50'
                      method:
                        type: string
                        enum:
                          - ted
                          - pix
                        description: Withdrawal method (pix or ted)
                        example: pix
                      state:
                        type: string
                        enum:
                          - created
                          - rolled-back
                          - completed
                          - processing
                        description: Current state of the withdrawal
                        example: created
                      created-at:
                        type: string
                        example: '2024-01-15T10:30:00Z'
                        format: date-time
                        description: ISO 8601 timestamp when the withdrawal was created
                      state-updated-at:
                        type: string
                        example: '2024-01-15T10:30:00Z'
                        format: date-time
                        description: >-
                          ISO 8601 timestamp when the withdrawal state was last
                          updated
                    additionalProperties: false
                    required:
                      - id
                      - amount
                      - method
                      - state
                      - created-at
                      - state-updated-at
                    description: Details of the created withdrawal
                additionalProperties: false
                required:
                  - withdrawal
        '400':
          description: Bad request - Invalid input parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      message:
                        type: string
                      code:
                        type: string
                    additionalProperties: false
                    required:
                      - type
                      - message
                      - code
                    description: Bad request error details
                additionalProperties: false
                required:
                  - error
        '403':
          description: Forbidden - Access denied
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      message:
                        type: string
                      code:
                        type: string
                    additionalProperties: false
                    required:
                      - type
                      - message
                      - code
                    description: Forbidden access error details
                additionalProperties: false
                required:
                  - error
        '404':
          description: Not found - Resource does not exist
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      message:
                        type: string
                      code:
                        type: string
                    additionalProperties: false
                    required:
                      - type
                      - message
                      - code
                    description: Resource not found error details
                additionalProperties: false
                required:
                  - error
        '422':
          description: Unprocessable entity - Validation failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                      message:
                        type: string
                      code:
                        type: string
                    additionalProperties: false
                    required:
                      - type
                      - message
                      - code
                    description: Validation error details
                additionalProperties: false
                required:
                  - error

````