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

# Create top-up invoice

> A crypto invoice that adds USD to your balance once paid. Use `order_type: balance_topup` and `usd_amount`.

Permission: `buy`



## OpenAPI

````yaml /api-reference/openapi.json post /api/payments/invoice
openapi: 3.1.0
info:
  title: Proxies.Vision API
  version: '1.0'
  description: >
    Everything the dashboard does for your residential proxies, from a script or
    an AI agent: check bandwidth, build proxy lists, buy GB and, for resellers,
    run sub-users.


    ## Authentication


    Send an API key as a bearer token: `Authorization: Bearer pv_…`. Create keys
    in [Dashboard → API keys](https://proxies.vision/dashboard/api-keys). Each
    key has its own permissions: `read`, `lines`, `buy` (with an optional daily
    limit) and, for resellers, `subusers`. A key can't sign in to the dashboard
    or change your account.


    ## Errors


    A failed request returns an HTTP status and `{"detail": "…"}`.


    | Code | Meaning |

    |---|---|

    | 400 | A combination that can't work, e.g. a network (ASN) without a
    country |

    | 401 | Missing, wrong or revoked key |

    | 402 | Balance or pool too low; the message says how much is there |

    | 403 | The key lacks the permission, its daily limit is reached, or the
    account isn't a reseller |

    | 422 | A parameter is missing or out of range |

    | 503 | Purchases are paused for a moment |


    ## MCP server


    AI agents connect to `https://proxies.vision/mcp` (Streamable HTTP) with the
    same key and get one tool per endpoint here. Claude Code:


    ```bash

    claude mcp add --transport http proxies-vision https://proxies.vision/mcp \
      --header "Authorization: Bearer pv_your_key"
    ```


    Reseller tools only show up for reseller keys.
servers:
  - url: https://proxies.vision
security:
  - apiKey: []
tags:
  - name: Account
    description: Balance and bandwidth.
  - name: Proxies
    description: Credentials and ready proxy lists.
  - name: Billing
    description: >-
      Buy bandwidth from the balance and top up with crypto. $1 per GB, never
      expires.
  - name: Reseller
    description: >-
      **Requires reseller access.** Sub-users with their own login and GB from
      your pool.
paths:
  /api/payments/invoice:
    post:
      tags:
        - Billing
      summary: Create top-up invoice
      description: >-
        A crypto invoice that adds USD to your balance once paid. Use
        `order_type: balance_topup` and `usd_amount`.


        Permission: `buy`
      operationId: create_top_up_invoice
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateInvoiceRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                ref: Q3TW8HZK
                pay_address: TXk…9fQ
                pay_amount: '28.70'
                currency: USDT_TRC20
                amount_usd: 25
                expires_at: '2026-11-20T12:35:00Z'
components:
  schemas:
    CreateInvoiceRequest:
      properties:
        gb_amount:
          type: number
          title: Gb Amount
          default: 0
          description: GB to buy, for `personal` and `reseller_pool`.
          examples:
            - 10
        usd_amount:
          type: number
          title: Usd Amount
          default: 0
          description: USD to add to your balance, for `balance_topup`. From $1.
          examples:
            - 25
        currency:
          type: string
          title: Currency
          default: USDT_TRC20
          description: >-
            The coin and network to pay with. TRC20 invoices add a network fee,
            shown on the invoice.
          enum:
            - USDT_TRC20
            - USDT_ERC20
            - USDT_BEP20
            - USDC_TRC20
            - USDC_ERC20
            - USDC_BEP20
            - BTC
            - ETH
            - LTC
            - BNB
            - SOL
            - XMR
          examples:
            - USDT_TRC20
        order_type:
          type: string
          title: Order Type
          default: personal
          description: >-
            `balance_topup` adds USD to your balance. `personal` buys
            `gb_amount` GB directly, `reseller_pool` buys GB for your reseller
            pool.
          enum:
            - balance_topup
            - personal
            - reseller_pool
          examples:
            - balance_topup
      type: object
      title: CreateInvoiceRequest
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'An API key: pv_…'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.