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

# Create payment session for invoice (public)

> Public endpoint — customer selects which crypto asset and network to pay with. Returns a payment session with a deposit address. The invoice is marked PAID automatically when payment.completed webhook fires.



## OpenAPI

````yaml /openapi.json post /api/v1/invoices/pay/{invoice_number}/session
openapi: 3.0.0
info:
  title: Dexxify API
  description: >-
    Crypto Infrastructure API for Africa (Wallets, Payouts, Offramp, Onramp,
    KYC, KYB)
  version: '1.0'
  contact:
    name: Dexxify
    url: https://www.dexxify.com
    email: dexxifyhq@gmail.com
servers: []
security: []
tags: []
paths:
  /api/v1/invoices/pay/{invoice_number}/session:
    post:
      tags:
        - Invoices
      summary: Create payment session for invoice (public)
      description: >-
        Public endpoint — customer selects which crypto asset and network to pay
        with. Returns a payment session with a deposit address. The invoice is
        marked PAID automatically when payment.completed webhook fires.
      operationId: InvoicesController_createPaymentSession
      parameters:
        - name: invoice_number
          required: true
          in: path
          description: Invoice number e.g. INV-ABC123
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InvoicePaymentDto'
      responses:
        '201':
          description: Payment session created successfully.
        '400':
          description: Validation failed or the request body/params were malformed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '404':
          description: The requested resource could not be found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
      security:
        - api-key: []
components:
  schemas:
    InvoicePaymentDto:
      type: object
      properties:
        crypto_asset:
          type: string
          enum:
            - BTC
            - TRX
            - BNB
            - TON
            - USDT
            - ETH
            - USDC
            - SOL
          example: USDT
        network:
          type: string
          enum:
            - Bitcoin
            - Binance_Smart_Chain
            - Ethereum
            - Solana
            - Tron
            - Base
            - Arbitrum
            - TON
          example: Tron
      required:
        - crypto_asset
        - network
    ErrorResponseDto:
      type: object
      properties:
        success:
          type: boolean
          example: false
        status:
          type: number
          example: 400
        message:
          type: string
          example: Validation failed.
        errors:
          type: object
          example:
            - amount must not be less than 0
        timestamp:
          type: string
          example: '2026-09-17T12:00:00.000Z'
      required:
        - success
        - status
        - message
        - timestamp
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: API key for /api/v1/* endpoints

````