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

# Post apiv1paymentsdeposit



## OpenAPI

````yaml https://backend.aflux.ai/openapi post /api/v1/payments/deposit
openapi: 3.0.3
info:
  title: AdFlux Backend API
  version: v1
servers:
  - url: /
security: []
tags:
  - name: auth
  - name: users
  - name: uploads
  - name: projects
  - name: campaigns
  - name: placements
  - name: billing
  - name: payments
  - name: image-generations
paths:
  /api/v1/payments/deposit:
    post:
      tags:
        - payments
      operationId: paymentsCreateDeposit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDepositRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Payment'
        default:
          $ref: '#/components/responses/DefaultError'
      security:
        - Bearer: []
components:
  schemas:
    CreateDepositRequest:
      type: object
      required:
        - amount
        - network
      properties:
        amount:
          $ref: '#/components/schemas/MoneyAmount'
        network:
          $ref: '#/components/schemas/PaymentNetwork'
    Payment:
      type: object
      required:
        - paymentId
        - provider
        - network
        - status
        - amount
        - currency
        - createdAt
      properties:
        paymentId:
          type: string
          format: uuid
        provider:
          $ref: '#/components/schemas/PaymentProvider'
        network:
          type: string
        depositAddress:
          type: string
          nullable: true
        depositMinAmount:
          type: string
          nullable: true
        depositExpiresAt:
          type: string
          format: date-time
          nullable: true
        status:
          $ref: '#/components/schemas/PaymentStatus'
        amount:
          $ref: '#/components/schemas/MoneyAmount'
        currency:
          type: string
        externalId:
          type: string
          nullable: true
        invoiceUrl:
          type: string
          nullable: true
        transactionId:
          type: string
          nullable: true
        fromAddress:
          type: string
          nullable: true
        serviceFee:
          $ref: '#/components/schemas/MoneyAmount'
          nullable: true
        creditsCredited:
          $ref: '#/components/schemas/MoneyAmount'
          nullable: true
        failureReason:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        completedAt:
          type: string
          format: date-time
          nullable: true
    MoneyAmount:
      type: string
      pattern: ^-?\d+(\.\d{1,6})?$
      example: '125.500000'
    PaymentNetwork:
      type: string
      enum:
        - TON
        - BSC
        - ETH
        - BTC
        - TRX
        - SOL
    PaymentProvider:
      type: string
      enum:
        - XROCKET
    PaymentStatus:
      type: string
      enum:
        - CREATING
        - PENDING
        - COMPLETED
        - FAILED
        - EXPIRED
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
  responses:
    DefaultError:
      description: Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````