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

# Simulate a deposit

> **Sandbox only.** Credits your sandbox USD account as if a USDT deposit had arrived, and fires `deposit.credited`. At most 1000 per call. Returns 404 in production.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/sandbox/deposit
openapi: 3.1.0
info:
  title: StableMesh Open API
  version: 1.0.0
  description: >-
    Issue and manage StableMesh cards from your own server. Every endpoint is
    `POST` with a JSON body, authenticated with your API key in `X-API-KEY`.
  contact:
    email: contact@stablemesh.io
servers:
  - url: https://api.stablemesh.io
    description: Production
security:
  - ApiKey: []
tags:
  - name: Account
    description: Your USD account.
  - name: Deposits
    description: Fund your USD account with stablecoins.
  - name: Cards
    description: Issue, fund and control cards.
  - name: Webhooks
    description: Configure event delivery.
  - name: Sandbox
    description: Simulate deposits and payments in the sandbox.
paths:
  /v1/sandbox/deposit:
    post:
      tags:
        - Sandbox
      summary: Simulate a deposit
      description: >-
        **Sandbox only.** Credits your sandbox USD account as if a USDT deposit
        had arrived, and fires `deposit.credited`. At most 1000 per call.
        Returns 404 in production.
      operationId: v1_sandbox_deposit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                amount:
                  type:
                    - string
                    - number
                  description: USD, at most 1000.
                  example: '500'
              required:
                - amount
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: '`0` on success.'
                    example: 0
                  message:
                    type: string
                    description: '`ok` on success.'
                    example: ok
                  data:
                    $ref: '#/components/schemas/AccountBalance'
                required:
                  - code
                  - message
                  - data
        '400':
          description: Refused (bad parameter, business rule). Nothing changed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid, revoked or expired API key (`11002`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Request from an IP not on the key's allowlist (`11003`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Over the per-key rate limit (`11004`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: >-
            Internal error (`9999`). The outcome may be unknown; check state
            before retrying.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      servers:
        - url: https://{sandboxHost}
          description: Sandbox (credentials on request)
          variables:
            sandboxHost:
              default: sandbox.example
              description: Sandbox host sent to you with your sandbox access.
components:
  schemas:
    AccountBalance:
      type: object
      properties:
        currency:
          type: string
          description: Always `USD`.
          example: USD
        available:
          type: string
          description: Available in your USD account. Decimal string.
          example: '1250.4'
        frozen:
          type: string
          description: Held in your USD account. Decimal string.
          example: '0'
        onCards:
          type: object
          properties:
            available:
              type: string
              description: Sum across your cards. Decimal string.
              example: '310'
            frozen:
              type: string
              description: ' Decimal string.'
              example: '0'
          required:
            - available
            - frozen
        total:
          type: string
          description: Account plus cards. Decimal string.
          example: '1560.4'
      required:
        - currency
        - available
        - frozen
        - onCards
        - total
    Error:
      type: object
      properties:
        code:
          type: integer
          description: Non-zero error code. See [Errors](/api-reference/errors).
          example: 4011
        message:
          type: string
          description: Human-readable reason.
          example: >-
            This card can't be topped up through the API. Use the dashboard for
            this card.
        data:
          type: object
          description: >-
            Present only when the error carries something you need, e.g.
            `withdrawalId` on a `9999` from `card/withdraw`.
          additionalProperties: true
      required:
        - code
        - message
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-KEY
      description: >-
        Create keys in the dashboard under **Settings → API keys**. Production
        keys start with `smk_live_`.

````

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