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

# Get a top-up

> Read an existing funding order. Amounts are integer cents. Create top-ups and manage payment settings in the API console. Returns 503 funding_unavailable when funding is not enabled.

See [pricing and account credit](/developer/docs/developer/docs/revise-api/pricing) for integration guidance.

## TypeScript

```ts theme={null}
import { ReviseClient } from "@reviseio/api";

const revise = new ReviseClient({ apiKey: process.env.REVISE_API_KEY! });
const result = await revise.account.topup("topup_id");
```


## OpenAPI

````yaml developer/docs/openapi/revise-api.json GET /v1/account/topups/{id}
openapi: 3.1.0
info:
  title: Revise API
  version: 0.1.0
  description: >-
    Asynchronous document prompts and format conversions. Submit a job, poll its
    receipt or receive a webhook, then download its artifacts. USD amounts are
    exact decimal strings. Job content expires 24 hours after terminal
    completion. All account endpoints require a bearer API key.
servers:
  - url: https://revise.io/api
security:
  - apiKey: []
paths:
  /v1/account/topups/{id}:
    get:
      summary: Read funding status without payment secrets
      description: >-
        Read an existing funding order. Amounts are integer cents. Create
        top-ups and manage payment settings in the API console. Returns 503
        funding_unavailable when funding is not enabled.
      operationId: getTopup
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Read funding status without payment secrets
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FundingOrder'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    FundingOrder:
      type: object
      properties:
        id:
          type: string
        amount_cents:
          type: integer
        automatic:
          type: boolean
        status:
          enum:
            - pending
            - succeeded
            - failed
            - needs_reconciliation
            - requires_action
        created_at:
          type: string
          format: date-time
      required:
        - id
        - amount_cents
        - automatic
        - status
        - created_at
      additionalProperties: false
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: object
              additionalProperties: true
          required:
            - code
            - message
          additionalProperties: false
      required:
        - error
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        Revise API key from https://revise.io/console/api-keys. Send
        Authorization: Bearer <key>.

````

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