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

# Sandbox-only: credit a wallet for integration testing



## OpenAPI

````yaml /openapi.json post /api/v1/treasury/users/{id}/wallets/{walletId}/sandbox-credit
openapi: 3.0.0
info:
  title: Axra Public API
  description: Merchant and third-party developer API surface
  version: '2026-04-15'
  contact: {}
servers:
  - url: http://localhost:3001
    description: Local development
  - url: https://staging-api.useaxra.com
    description: Staging
  - url: https://api.useaxra.com
    description: Production
security: []
tags: []
paths:
  /api/v1/treasury/users/{id}/wallets/{walletId}/sandbox-credit:
    post:
      tags:
        - Wallets
      summary: 'Sandbox-only: credit a wallet for integration testing'
      operationId: TreasuryWalletsController_sandboxCredit
      parameters:
        - name: id
          required: true
          in: path
          description: Partner end-user id
          schema:
            type: string
        - name: walletId
          required: true
          in: path
          description: Partner wallet id
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SandboxCreditWalletDto'
      responses:
        '201':
          description: Sandbox credit applied
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/WalletSandboxCreditResponseDto'
                required:
                  - success
                  - data
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorEnvelopeDto'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorEnvelopeDto'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorEnvelopeDto'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorEnvelopeDto'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorEnvelopeDto'
        '422':
          description: Unprocessable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorEnvelopeDto'
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorEnvelopeDto'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorEnvelopeDto'
      security:
        - bearer: []
components:
  schemas:
    SandboxCreditWalletDto:
      type: object
      properties:
        amount:
          type: string
          example: '10.50'
          description: Credit amount (wallet currency)
        currency:
          type: string
          example: USDC
          description: Must match the wallet currency
        reference:
          type: string
          description: Optional client reference (stored on ledger metadata)
      required:
        - amount
        - currency
    WalletSandboxCreditResponseDto:
      type: object
      properties:
        walletId:
          type: string
        amount:
          type: string
        currency:
          type: string
        newBalance:
          type: string
      required:
        - walletId
        - amount
        - currency
        - newBalance
    HttpErrorEnvelopeDto:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          $ref: '#/components/schemas/HttpErrorBodyDto'
      required:
        - success
        - error
    HttpErrorBodyDto:
      type: object
      properties:
        code:
          type: string
          example: VALIDATION_ERROR
        message:
          type: string
          example: email must be an email
        statusCode:
          type: number
          example: 400
        errors:
          type: object
          description: >-
            Optional per-field validation messages (when present on the source
            exception)
          additionalProperties:
            type: array
            items:
              type: string
      required:
        - code
        - message
        - statusCode
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````