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

# Simulate a virtual account deposit

> Sandbox only — responds 404 on production. Pushes a bank transfer into one of your virtual accounts through the real deposit workflow, so the collection, ledger credit and webhooks fire exactly as in production. `outcome: failed` exercises the failure path. Same `externalReference` replays with 200.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/simulations/virtual-account-deposit
openapi: 3.1.0
info:
  title: Chipper Platform API
  version: '2026-02-20'
  description: >-
    Payouts, collections, and FX across African rails — bank, mobile money, and
    stablecoins — through one API.
servers:
  - url: https://sandbox-api.platform.chipper.ai
    description: Sandbox (sk_test_ keys — simulated rails, no real money)
  - url: https://api.platform.chipper.ai
    description: Production (sk_live_ keys)
security:
  - bearerAuth: []
paths:
  /v1/simulations/virtual-account-deposit:
    post:
      tags:
        - Simulations
      summary: Simulate a virtual account deposit
      description: >-
        Sandbox only — responds 404 on production. Pushes a bank transfer into
        one of your virtual accounts through the real deposit workflow, so the
        collection, ledger credit and webhooks fire exactly as in production.
        `outcome: failed` exercises the failure path. Same `externalReference`
        replays with 200.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                virtualAccountId:
                  type: string
                  minLength: 1
                amount:
                  anyOf:
                    - type: string
                      pattern: ^\d+(\.\d{1,8})?$
                    - type: number
                      exclusiveMinimum: 0
                outcome:
                  type: string
                  enum:
                    - completed
                    - failed
                  default: completed
                externalReference:
                  type: string
                  minLength: 1
                  maxLength: 255
              required:
                - virtualAccountId
                - amount
                - externalReference
      responses:
        '200':
          description: Idempotent replay.
          content:
            application/json:
              schema:
                type: object
                properties:
                  simulation:
                    $ref: '#/components/schemas/VirtualAccountDepositSimulation'
                required:
                  - simulation
        '201':
          description: The deposit was submitted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  simulation:
                    $ref: '#/components/schemas/VirtualAccountDepositSimulation'
                required:
                  - simulation
        '400':
          description: >-
            The virtual account does not support simulated deposits, or the
            amount rounds to zero.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: bad_request
                message: This virtual account does not support simulated deposits
                requestId: req_q7vei435zifs51ia0lqr
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: unauthorized
                message: Invalid API key
                requestId: req_q7vei435zifs51ia0lqr
        '403':
          description: The API key lacks the required scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: forbidden
                message: API key does not have the required scope
                requestId: req_q7vei435zifs51ia0lqr
        '404':
          description: 'Not available: production keys, or (deposits) no such resource.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: not_found
                message: Simulation endpoint not found
                requestId: req_q7vei435zifs51ia0lqr
        '409':
          description: This externalReference was already used with different parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: conflict
                message: >-
                  externalReference was already used for different balance
                  funding
                requestId: req_q7vei435zifs51ia0lqr
      security:
        - bearerAuth: []
components:
  schemas:
    VirtualAccountDepositSimulation:
      type: object
      properties:
        depositId:
          type: string
          example: vad_x7kd92mfn3qp8wz4t6vb
        collectionId:
          type: string
          description: >-
            The collection created for the inflow — poll it or wait for
            `collection.completed` / `collection.failed`.
          example: col_x7kd92mfn3qp8wz4t6vb
        virtualAccountId:
          type: string
          example: va_h4n7q2vm8kp3r9zt5wbx
        amount:
          type: string
          description: >-
            Amount as sent by the simulated bank, in the virtual account
            currency.
          example: '5000'
        currency:
          type: string
          example: NGN
        requestedOutcome:
          type: string
          enum:
            - completed
            - failed
        replayed:
          type: boolean
          description: >-
            True when this externalReference was already simulated and the
            original result is returned.
      required:
        - depositId
        - collectionId
        - virtualAccountId
        - amount
        - currency
        - requestedOutcome
        - replayed
    Error:
      type: object
      properties:
        error:
          type: string
          description: Stable machine-readable code.
        message:
          type: string
          description: Human-readable explanation.
        requestId:
          type: string
          description: Echoed in the x-request-id response header — quote it to support.
      required:
        - error
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key: `sk_test_…` (sandbox) or `sk_live_…` (production).'

````