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

# Transfer float to sub-agent

> Super-agent transfers float to their sub-agent. Super-agent ID is auto-detected from logged-in user. Admin can specify super_agent_id.



## OpenAPI

````yaml /olive-openapi.json post /agents/transfer
openapi: 3.0.0
info:
  description: >-
    API Gateway for OLIVE NFC Card Payment System - Comprehensive payment, card
    management, agent operations, and admin authentication. All /api/v1 routes
    require authentication using either API Key or JWT token.
  title: OLIVE NFC Card Payment API
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    email: support@olive.sl
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.0.0
servers:
  - url: https://olive-gateway-a6ba.onrender.com/api/v1
security: []
paths:
  /agents/transfer:
    post:
      tags:
        - Agents
      summary: Transfer float to sub-agent
      description: >-
        Super-agent transfers float to their sub-agent. Super-agent ID is
        auto-detected from logged-in user. Admin can specify super_agent_id.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/handler.TransferToSubAgentRequest'
        description: Transfer details
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    handler.TransferToSubAgentRequest:
      type: object
      required:
        - amount
        - sub_agent_id
      properties:
        amount:
          type: integer
        sub_agent_id:
          type: string
        super_agent_id:
          description: Optional - auto-detected from logged-in user if not provided
          type: string
  securitySchemes:
    ApiKeyAuth:
      description: >-
        API Key for third-party integrations (WhatsApp, Smart PAY, VULT).
        Format: 'Bearer olive_live_xxxxxxxxxxxxx'
      type: apiKey
      name: Authorization
      in: header
    BearerAuth:
      description: >-
        JWT token from admin login for administrative operations. Format:
        'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'
      type: apiKey
      name: Authorization
      in: header

````