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

# Simulate wallet funding

> Test keys only (`sk_test_*`). Adds `amount` to the business test wallet `available` balance. `amount` is minor units (kobo or cents), from `100` to `1000000`. Does not create a virtual account. Live keys receive `400`.



## OpenAPI

````yaml /openapi.json post /wallets/simulate-fund
openapi: 3.0.0
info:
  title: Puplar Integrations API
  version: 1.0.0
  description: >-
    Public API for integrators using **secret keys** (`sk_test_*` /
    `sk_live_*`). Authenticated routes need only **`Authorization: Bearer
    <secret_key>`**. Test keys sandbox payments, virtual accounts, KYC, and bank
    resolve — see guides/test-vs-live for fixtures. Responses follow `{ message,
    data?, errors? }`. Includes customers, collections, payments, products,
    invoices, payouts, wallets, transactions, virtual accounts, crypto, refunds,
    and webhooks.
  contact:
    name: Puplar Support
    email: support@puplar.com
servers:
  - url: https://api.puplar.com
    description: Production
security: []
tags:
  - name: Customers
    description: Customer CRUD and KYC documents
  - name: Virtual accounts
    description: Funding instructions and test deposit simulation
  - name: Webhooks
    description: >-
      Webhook endpoints and delivery logs. Subscriber verification: HMAC-SHA256
      of raw body with webhook secret, header `X-Signature: sha256=<hex>`.
  - name: Payments
    description: One-time payment collection via hosted checkout links
  - name: Crypto
    description: EVM crypto wallet addresses and supported tokens
  - name: Collections
    description: Reusable checkout links
  - name: Products
    description: Catalog items for invoices. Amounts are minor units.
  - name: Invoices
    description: Draft → finalize → paid or void. Finalize returns a payment URL.
  - name: Payouts
    description: >-
      Send wallet funds to a bank account or crypto wallet. Duplicate
      `reference` returns 409.
  - name: Wallets
    description: >-
      Wallet balances per currency. Test keys can add balance with
      simulate-fund. Amounts in minor units.
  - name: Transactions
    description: >-
      Business ledger. List transactions and verify one by id. Amounts in minor
      units.
  - name: Misc
    description: >-
      Country-scoped bank list and account name lookup for payouts (e.g. `ng`
      for Nigeria).
  - name: Meta
    description: Health and service info
paths:
  /wallets/simulate-fund:
    post:
      tags:
        - Wallets
      summary: Simulate wallet funding
      description: >-
        Test keys only (`sk_test_*`). Adds `amount` to the business test wallet
        `available` balance. `amount` is minor units (kobo or cents), from `100`
        to `1000000`. Does not create a virtual account. Live keys receive
        `400`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - currency
                - amount
              properties:
                currency:
                  type: string
                  enum:
                    - usd
                    - ngn
                  example: ngn
                amount:
                  type: integer
                  minimum: 100
                  maximum: 1000000
                  example: 1000000
                  description: Amount in minor units
      responses:
        '200':
          description: Test wallet funded
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Test wallet funded successfully
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        description: Funding transaction id
                      wallet_id:
                        type: string
                      currency:
                        type: string
                        example: ngn
                      amount:
                        type: integer
                        example: 1000000
                      available:
                        type: integer
                        example: 1000000
                      pending:
                        type: integer
                        example: 0
                      total:
                        type: integer
                        example: 1000000
        '400':
          description: Live key, or invalid amount or currency
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        message:
          type: string
          example: Error message
        data:
          type: object
          nullable: true
        errors:
          type: object
          nullable: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Secret key: `Authorization: Bearer sk_test_...` or `sk_live_...`.
        Business and live/test mode are inferred from the key.

````