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

# Submit Count Session

> Submit an inventory count session, reconciling counted quantities against system stock levels.



## OpenAPI

````yaml post /inventory/count-sessions/{session_id}/submit
openapi: 3.1.0
info:
  title: Decoda API
  description: External API documentation for the Decoda Health platform.
  version: '1.0'
servers: []
security: []
paths:
  /inventory/count-sessions/{session_id}/submit:
    post:
      tags:
        - Stock
      summary: Submit Count Session
      description: >-
        Submit an inventory count session, reconciling counted quantities
        against system stock levels.
      operationId: submit_count_session_inventory_count_sessions__session_id__submit_post
      parameters:
        - name: TENANT
          in: header
          required: true
          schema:
            type: string
            title: Tenant
          description: The tenant you are making this request on behalf of
        - name: API-KEY
          in: header
          required: true
          schema:
            type: string
            title: Api-Key
          description: Your api key
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            title: Session Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InventoryCountReconcileResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    InventoryCountReconcileResult:
      properties:
        sessionId:
          type: string
          title: Sessionid
        adjustments:
          items:
            $ref: '#/components/schemas/InventoryCountAdjustment'
          type: array
          title: Adjustments
        driftDetected:
          type: boolean
          title: Driftdetected
          default: false
        driftedCount:
          type: integer
          title: Driftedcount
          default: 0
        adjustedCount:
          type: integer
          title: Adjustedcount
          default: 0
      type: object
      required:
        - sessionId
      title: InventoryCountReconcileResult
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    InventoryCountAdjustment:
      properties:
        stockId:
          type: string
          title: Stockid
        locationId:
          type: string
          title: Locationid
        stockName:
          type: string
          title: Stockname
        snapshotQty:
          type: number
          title: Snapshotqty
          description: System quantity snapshotted at session start
        previousQty:
          type: number
          title: Previousqty
          description: Live system quantity immediately before reconciling
        countedQty:
          type: number
          title: Countedqty
        delta:
          type: number
          title: Delta
          description: counted_qty - previous_qty applied to inventory
        drifted:
          type: boolean
          title: Drifted
          description: True if live qty drifted from the snapshot before submit
      type: object
      required:
        - stockId
        - locationId
        - stockName
        - snapshotQty
        - previousQty
        - countedQty
        - delta
        - drifted
      title: InventoryCountAdjustment
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````