> ## 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 barcode auth

> Authorize a barcode load against the simulated cash-in flow (sandbox only).



## OpenAPI

````yaml /api-reference/openapi.yaml post /cash-ins/simulate/barcode-auth
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.9
    description: Sandbox
  - url: https://api.polygon.technology/v0.9
    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: Simulation
paths:
  /cash-ins/simulate/barcode-auth:
    post:
      tags:
        - Sandbox
      summary: Simulate cash-in barcode auth
      description: >-
        Authorize a barcode load against the simulated cash-in flow (sandbox
        only).
      operationId: simulateBarcodeAuth
      parameters:
        - $ref: '#/components/parameters/IdempotencyKeyHeader'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SimulateBarcodeAuthRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimulateBarcodeAuthResponse'
          description: The request has succeeded.
components:
  parameters:
    IdempotencyKeyHeader:
      description: >-
        Required on POST and PUT requests. Use a unique value per logical
        mutation attempt, for example a UUID.
      in: header
      name: Idempotency-Key
      required: true
      schema:
        type: string
  schemas:
    SimulateBarcodeAuthRequest:
      properties:
        accountNumber:
          type: string
        accountReferenceNumber:
          type: string
        amount:
          $ref: '#/components/schemas/decimalString'
      required:
        - accountNumber
        - accountReferenceNumber
        - amount
      type: object
    SimulateBarcodeAuthResponse:
      properties:
        authorizedAmount:
          $ref: '#/components/schemas/decimalString'
        balance:
          $ref: '#/components/schemas/decimalString'
        confirmationId:
          type: string
        responseCode:
          type: string
        responseId:
          type: string
        responseText:
          type: string
      required:
        - responseCode
        - responseText
        - confirmationId
        - authorizedAmount
        - balance
        - responseId
      type: object
    decimalString:
      description: >-
        Wire-safe decimal string for financial float values (USD amounts,
        percentages).
      type: string
      x-go-type: decimal.Decimal
      x-go-type-import:
        path: github.com/shopspring/decimal
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Token from POST /auth/token

````