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

# Post ledgertop up

> Credits an account balance so cards on that account can transact.
The account must be active and already hold a balance in the requested currency.



## OpenAPI

````yaml https://core.sandbox.gnosispay.in/simulator-api/openapi.json post /ledger/top-up
openapi: 3.2.0
info:
  title: Simulator Service
  description: >-
    Card transaction simulator for sandbox/staging environments; the server
    never runs in production. Authenticates via HTTP Basic Auth with username
    "simulator" and the configured password.
  version: 0.0.0
servers: []
security:
  - BasicAuth: []
tags:
  - name: Simulator
paths:
  /ledger/top-up:
    post:
      tags:
        - Simulator
      description: >-
        Credits an account balance so cards on that account can transact.

        The account must be active and already hold a balance in the requested
        currency.
      operationId: TransactionTopUp_create
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TopUpRequest'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopUpResponse'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    TopUpRequest:
      type: object
      required:
        - account_id
        - amount
        - currency
      properties:
        account_id:
          $ref: '#/components/schemas/uuid'
          description: Account to credit
        amount:
          type: string
          description: Amount to credit in major units (e.g., "10.20" for $10.20)
        currency:
          $ref: '#/components/schemas/TopUpCurrency'
          description: Currency of the account balance to credit
      examples:
        - account_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
          amount: '25.00'
          currency: USD
    TopUpResponse:
      type: object
      required:
        - account_id
        - amount
        - currency
      properties:
        account_id:
          $ref: '#/components/schemas/uuid'
          description: Account that was credited
        amount:
          type: string
          description: Amount credited in major units
        currency:
          $ref: '#/components/schemas/TopUpCurrency'
          description: Currency credited
        balance:
          type: string
          description: >-
            Available balance after the credit, in major units. Absent when the
            balance could not be read.
      examples:
        - account_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
          amount: '25.00'
          currency: USD
          balance: '125.00'
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
    uuid:
      type: string
      format: uuid
    TopUpCurrency:
      type: string
      enum:
        - USD
        - EUR
        - GBP
      description: Currency of an account balance.
  securitySchemes:
    BasicAuth:
      type: http
      scheme: Basic

````

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