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

# Get a top-up

> A top-up and where its payment stands. Readable with any key of the account that created it.



## OpenAPI

````yaml /openapi.json get /v1/top-ups/{id}
openapi: 3.1.0
info:
  title: Refuseless API
  version: 1.0.0
  description: >-
    OpenAI-compatible hosted inference for a named lineup of refusal-removed
    open weights.
servers:
  - url: https://api.refuseless.com
security:
  - bearerAuth: []
paths:
  /v1/top-ups/{id}:
    get:
      tags:
        - Top-ups
      summary: Get a top-up
      description: >-
        A top-up and where its payment stands. Readable with any key of the
        account that created it.
      operationId: getTopUp
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            pattern: ^tu_[a-z0-9]{32}$
      responses:
        '200':
          description: The top-up
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopUp'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: No such top-up on this account (top_up_not_found)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Too many top-up requests (rate_limit_exceeded)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: Billing service unreachable (gateway_down)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    TopUp:
      type: object
      properties:
        object:
          type: string
          enum:
            - top_up
        id:
          type: string
          example: tu_k3j9x0q2m8v1c7d5f4h6a2s9w0e3r8t1
        status:
          type: string
          enum:
            - pending
            - confirming
            - paid
            - underpaid
            - expired
            - failed
            - refunded
          description: paid means credited.
        amount:
          type: number
          example: 50
          description: US dollars credited when paid.
        bonus:
          type: number
          example: 0
          description: Bonus credits added with this top-up, in US dollars.
        method:
          type: string
          example: usdt-tron
        currency:
          type: string
          example: USDT
        network:
          type: string
          example: Tron
        address:
          type: string
          description: Where to send the coin.
        memo:
          type:
            - string
            - 'null'
          description: Memo or destination tag to include, when the coin needs one.
        pay_amount:
          type: string
          example: '50.12'
          description: Exact amount of currency to send.
        paid_amount:
          type:
            - string
            - 'null'
          description: Coin received so far.
        remaining_amount:
          type:
            - string
            - 'null'
          description: Coin still owed when less than pay_amount arrived.
        created_at:
          type: integer
        expires_at:
          type:
            - integer
            - 'null'
          description: Unix seconds. Send before then.
        paid_at:
          type:
            - integer
            - 'null'
          description: Unix seconds when credits were added.
      required:
        - object
        - id
        - status
        - amount
        - method
        - currency
        - network
        - address
        - pay_amount
        - created_at
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - type
          properties:
            code:
              type: string
              examples:
                - invalid_key
                - key_revoked
                - key_expired
                - insufficient_credits
                - key_budget_exceeded
                - key_daily_budget_exceeded
                - rate_limit_exceeded
                - model_not_found
                - model_busy
                - model_warming
                - upstream_error
                - model_unavailable
            message:
              type: string
            type:
              type: string
              examples:
                - api_error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      x-default: YOUR_API_KEY

````

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