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

# Simulate cash-in present code

> Simulate the customer presenting their cash-in code at the register (sandbox only).



## OpenAPI

````yaml /api-reference/openapi.yaml post /cash-ins/{cashInId}/simulate/present-code
openapi: 3.0.3
info:
  title: Polygon OMS Public API
  version: v26.05.28-0001
  description: >-
    Unified API for moving money between crypto and fiat. Three ways to move
    money: Transactions (instant, wallet or card funded, including Cash-In for
    in-person cash deposits), Deposit Addresses (reusable crypto deposit
    configurations), and Virtual Accounts (dedicated bank accounts that
    auto-convert fiat to crypto). Standard transactions follow a two-step flow:
    create a Quote (pricing), then create a Transaction (execution). Cash-in
    codes generate a one-time deposit code for in-person cash deposits at retail
    locations.
  contact:
    name: Polygon OMS
    url: https://oms.polygon.technology
servers:
  - url: https://sandbox-api.polygon.technology/v0.10
    description: Sandbox
  - url: https://api.polygon.technology/v0.10
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Auth
    description: Authentication via FrontEgg
  - name: Customers
    description: Customer management and KYC
  - name: Customer
  - name: Wallet
  - name: Quote
  - name: Transaction
  - name: Webhook
  - name: CashIns
  - name: CashLocation
  - name: Sandbox
  - name: VirtualAccount
  - name: Counterparty
  - name: ExternalAccount
  - name: DepositAddress
paths:
  /cash-ins/{cashInId}/simulate/present-code:
    post:
      tags:
        - Sandbox
      summary: Simulate cash-in present code
      description: >-
        Simulate the customer presenting their cash-in code at the register
        (sandbox only).
      operationId: simulateCashInPresentCode
      parameters:
        - name: cashInId
          in: path
          required: true
          schema:
            type: string
        - $ref: '#/components/parameters/IdempotencyKeyHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SimulateCashInPresentCodeRequest'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimulateCashInPresentCodeResponse'
components:
  parameters:
    IdempotencyKeyHeader:
      name: Idempotency-Key
      in: header
      required: true
      description: >-
        Required on POST and PUT requests. Use a unique value per logical
        mutation attempt, for example a UUID.
      schema:
        type: string
  schemas:
    SimulateCashInPresentCodeRequest:
      type: object
      required:
        - cashInCode
        - amount
      properties:
        cashInCode:
          type: string
          description: >-
            The cash-in's `depositInstructions.code` - what the customer
            presents at the register.
        amount:
          $ref: '#/components/schemas/decimalString'
    SimulateCashInPresentCodeResponse:
      type: object
      required:
        - responseCode
        - responseText
        - responseId
        - confirmationId
        - authorizedAmount
        - balance
      properties:
        responseCode:
          type: string
        responseText:
          type: string
        responseId:
          type: string
        confirmationId:
          type: string
          description: >-
            Authorization confirmation - pass as `originalConfirmationId` to
            `deposit-cash` or `cancel`.
        authorizedAmount:
          allOf:
            - $ref: '#/components/schemas/decimalString'
          description: Amount the provider authorized.
        balance:
          allOf:
            - $ref: '#/components/schemas/decimalString'
          description: >-
            Provider-reported running balance for this cash-in code after the
            authorization.
    decimalString:
      type: string
      description: >-
        Wire-safe decimal string for financial float values (USD amounts,
        percentages).
      x-go-type-import:
        path: github.com/shopspring/decimal
      x-go-type: decimal.Decimal
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Token from POST /auth/token

````