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

# Paybill Withdrawal

> Send money from integrator wallet to a Paybill number with account reference.

Send money from integrator wallet to a Paybill number with account reference.


## OpenAPI

````yaml POST /api/v3/withdraw/paybill
openapi: 3.0.0
info:
  title: KOTANI PAY API PLATFORM
  description: ''
  version: '3.0'
  contact: {}
servers:
  - url: https://preview.kotanipay.com
security: []
tags: []
paths:
  /api/v3/withdraw/paybill:
    post:
      tags:
        - WITHDRAW
      summary: Withdraw to Paybill (Kenya)
      description: >-
        Send money from integrator wallet to a Paybill number with account
        reference.
      operationId: WithdrawController_paybill_api/v3
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePaybillWithdrawDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Paybill withdrawal has been successfully created.
                  data:
                    $ref: '#/components/schemas/WithdrawResponseDto'
                    type: object
        '400':
          description: ''
          content:
            application/json:
              schema:
                properties:
                  success:
                    type: boolean
                    example: false
                  message:
                    type: string
                    example: Bad Request
                  data:
                    type: object
                    example: {}
        '401':
          description: ''
          content:
            application/json:
              schema:
                properties:
                  success:
                    type: boolean
                    example: false
                  message:
                    type: string
                    example: Invalid API Key
                  data:
                    type: object
                    example: {}
      security:
        - JWT: []
components:
  schemas:
    CreatePaybillWithdrawDto:
      type: object
      properties:
        amount:
          type: number
          description: Amount to pay
          example: 500
        walletId:
          type: string
          description: Wallet ID to debit from
          example: 5f9b2c7b9c9d6b0017b4e6b1
        callbackUrl:
          type: string
          description: Callback URL for status updates
          example: https://example.com/callback
        referenceId:
          type: string
          description: Your reference ID
          example: PAYBILL-001
        paybillDetails:
          description: Paybill payment details
          allOf:
            - $ref: '#/components/schemas/PaybillDetailsDto'
      required:
        - amount
        - walletId
        - paybillDetails
    WithdrawResponseDto:
      type: object
      properties:
        id:
          type: string
        message:
          type: string
        referenceId:
          type: string
        referenceNumber:
          type: number
      required:
        - id
        - message
        - referenceId
        - referenceNumber
    PaybillDetailsDto:
      type: object
      properties:
        paybillNumber:
          type: string
          description: Paybill number to send payment to
          example: '400200'
        accountNumber:
          type: string
          description: Account number/reference for the payment
          example: ACC123456
        phoneNumber:
          type: string
          description: Phone number for SMS notification (in international format)
          example: '+254712345678'
        remarks:
          type: string
          description: Transaction description/remarks
          example: 'Payment for invoice #12345'
      required:
        - paybillNumber
        - accountNumber
  securitySchemes:
    JWT:
      scheme: bearer
      bearerFormat: JWT
      type: http

````