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

# Simulate fiat deposit

> Creates a non-production fiat deposit record and credits the test account for integration testing. This endpoint is disabled in production and cannot move real funds.



## OpenAPI

````yaml /openapi/openapi.json post /simulate/fiat/deposits
openapi: 3.1.0
info:
  title: Stabyl API
  description: >-
    REST API for approved Stabyl accounts to automate exchange, wallet, and
    non-production simulation workflows.
  contact:
    name: Stabyl Support
    email: support@stabyl.com
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://api.stabyl.com/v1
    description: Production
  - url: https://api-staging.stabyl.com/v1
    description: Staging
security: []
tags:
  - name: Exchange
    description: Trading market data and order management for account automation.
  - name: Wallets
    description: >-
      Supported routes, deposit destinations, balances, transactions, and saved
      recipients.
  - name: Webhooks
    description: >-
      Outbound event delivery configuration and eventually consistent delivery
      history. Verify Standard Webhooks webhook-id, webhook-timestamp, and
      webhook-signature headers against the unchanged raw request body before
      parsing JSON.
  - name: Simulation
    description: Non-production endpoints for testing integration behavior.
paths:
  /simulate/fiat/deposits:
    post:
      tags:
        - Simulation
      summary: Simulate fiat deposit
      description: >-
        Creates a non-production fiat deposit record and credits the test
        account for integration testing. This endpoint is disabled in production
        and cannot move real funds.
      operationId: post_simulate_fiat_deposits
      requestBody:
        description: Non-production fiat deposit event to create for integration testing.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SimulateFiatDepositRequest'
        required: true
      responses:
        '200':
          description: Simulated deposit created
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - data
                properties:
                  data:
                    $ref: '#/components/schemas/SimulateFiatDepositResponse'
                  status:
                    type: string
                    enum:
                      - success
              example:
                data:
                  amount: '50000.00'
                  reference: SIM-FIAT-DEP-001
                  status: confirmed
                  transaction_id: 0197f1f0-0000-7000-8000-000000000004
                status: success
        '400':
          description: Invalid payload
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: string
                        example: VALIDATION_FAILED
                      message:
                        type: string
                        example: invalid request parameters
                  status:
                    type: string
                    enum:
                      - error
              example:
                error:
                  code: VALIDATION_FAILED
                  message: invalid request parameters
                status: error
        '403':
          description: Simulate API disabled in production
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: string
                        example: FORBIDDEN
                      message:
                        type: string
                        example: request is not allowed
                  status:
                    type: string
                    enum:
                      - error
              example:
                error:
                  code: FORBIDDEN
                  message: request is not allowed
                status: error
        '404':
          description: User not found
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                    properties:
                      code:
                        type: string
                        example: NOT_FOUND
                      message:
                        type: string
                        example: resource not found
                  status:
                    type: string
                    enum:
                      - error
              example:
                error:
                  code: NOT_FOUND
                  message: resource not found
                status: error
      security: []
components:
  schemas:
    SimulateFiatDepositRequest:
      type: object
      description: Non-production fiat deposit event to create for integration testing.
      required:
        - user_id
        - currency
        - amount
      properties:
        amount:
          type: string
          example: '50000.00'
        currency:
          type: string
          example: NGN
        idempotency_key:
          type:
            - string
            - 'null'
          example: sim_fiat_dep_001
        user_id:
          type: string
          format: uuid
    SimulateFiatDepositResponse:
      type: object
      description: Result returned after creating a non-production fiat deposit event.
      required:
        - transaction_id
        - reference
        - status
        - amount
      properties:
        amount:
          type: string
          example: '50000.00'
        reference:
          type: string
          example: SIM-FIAT-DEP-001
        status:
          type: string
          example: confirmed
        transaction_id:
          type: string
          format: uuid

````