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

# Withdraw Wallet Points

> Withdraws XP points from a wallet address for a campaign. This endpoint handles user registration
if the address is new, creates campaign entries, validates withdrawal uniqueness, and optionally
verifies sufficient balance before withdrawal. Processes XP calculations after withdrawal.




## OpenAPI

````yaml /openapi.yaml post /wallet/withdraw
openapi: 3.0.0
info:
  title: claimr API
  version: 1.0.0
  description: >-
    Advanced features of claimr for business partners. This API provides a
    seamless integration with claimr services
  termsOfService: https://claimr.io/terms-of-service/
  contact:
    name: claimr support team
    email: support@claimr.io
servers:
  - url: https://prod.claimr.io/api/v1
    description: Production server
  - url: https://prod.claimr.io/api/v1
    description: Development server
security: []
tags: []
paths:
  /wallet/withdraw:
    post:
      tags:
        - Wallets
      summary: Withdraw Wallet Points
      description: >
        Withdraws XP points from a wallet address for a campaign. This endpoint
        handles user registration

        if the address is new, creates campaign entries, validates withdrawal
        uniqueness, and optionally

        verifies sufficient balance before withdrawal. Processes XP calculations
        after withdrawal.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                address:
                  type: string
                  description: Ethereum wallet address to withdraw points from
                  example: '0x1234567890abcdef1234567890abcdef12345678'
                pid:
                  type: string
                  description: Campaign/Project ID to withdraw points from
                  example: campaign_001
                id:
                  type: string
                  description: >-
                    Unique identifier for this withdrawal (prevents duplicate
                    withdrawals)
                  example: withdraw_payout_001
                xp:
                  type: number
                  description: Amount of XP points to withdraw
                  example: 100
                strict:
                  type: boolean
                  description: >-
                    If true, verifies wallet has sufficient balance before
                    allowing withdrawal
                  example: true
                  default: false
              required:
                - address
                - pid
                - id
                - xp
      responses:
        '200':
          description: XP points successfully withdrawn from wallet.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                required:
                  - success
        '400':
          $ref: '#/components/responses/bad_request'
        '401':
          $ref: '#/components/responses/unauthorized'
        '403':
          $ref: '#/components/responses/access_denied'
        '500':
          $ref: '#/components/responses/internal_error'
      security:
        - bearer: []
components:
  responses:
    bad_request:
      description: Bad request
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
              error:
                type: object
                properties:
                  code:
                    type: integer
                    format: int32
                    default: 400
                  message:
                    type: string
                    default: bad request
    unauthorized:
      description: Unauthorized request
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
              error:
                type: object
                properties:
                  code:
                    type: integer
                    format: int32
                    default: 401
                  message:
                    type: string
                    default: unauthorized
    access_denied:
      description: Access denied
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
              error:
                type: object
                properties:
                  code:
                    type: integer
                    format: int32
                    default: 403
                  message:
                    type: string
                    default: access denied
    internal_error:
      description: Internal server error
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
              error:
                type: object
                properties:
                  code:
                    type: integer
                    format: int32
                    default: 500
                  message:
                    type: string
                    default: internal error
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````