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

# Current stats

> This endpoint retrieves current stats for a specific location.

- balance_type (optional): Which account balances to include. "positive" returns only debit balances, "negative" returns only credit balances, "all" returns both. Defaults to "all".



## OpenAPI

````yaml https://app.teamcaredental.com/openapi-vendors.json get /locations/{location_id}/current/stats
openapi: 3.1.0
info:
  title: TeamCare Vendor API
  version: 1.0.0
  description: Vendor APIs for integrating dental office data. HIPAA-compliant and opt-in.
servers:
  - url: https://app.teamcaredental.com/api/v1/vendors
security:
  - bearerAuth: []
paths:
  /locations/{location_id}/current/stats:
    get:
      tags:
        - Stats
      summary: Current stats
      description: >-
        This endpoint retrieves current stats for a specific location.


        - balance_type (optional): Which account balances to include. "positive"
        returns only debit balances, "negative" returns only credit balances,
        "all" returns both. Defaults to "all".
      operationId: locations_resources_stats_current
      parameters:
        - name: location_id
          in: path
          required: true
          description: The ID of the location for which stats are to be retrieved.
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reactivation:
                    type: object
                    properties:
                      total:
                        type: number
                      had_hygiene:
                        type: number
                      never_had_hygiene:
                        type: number
                      eligible:
                        type: number
                      eligible_hygiene:
                        type: number
                      active_call_cycle:
                        type: number
                      attempts_mtd:
                        type: number
                      attended_mtd:
                        type: number
                  accounts_receivable:
                    type: array
                    items:
                      type: object
                      properties:
                        category:
                          type: string
                        number_of_patients:
                          type: number
                        total_balance:
                          type: string
                        average_balance:
                          type: number
                  average_production_per_patient:
                    type: object
                    properties:
                      per_patient_value:
                        type: string
                        example: float
                      production:
                        type: string
                        example: float
                      hygiene_visits:
                        type: string
                        example: float
              example:
                reactivation:
                  total: 0
                  had_hygiene: 0
                  never_had_hygiene: 0
                  eligible: 0
                  eligible_hygiene: 0
                  active_call_cycle: 0
                  attempts_mtd: 0
                  attended_mtd: 0
                accounts_receivable:
                  - category: string
                    number_of_patients: 0
                    total_balance: string
                    average_balance: 0
                  - category: string
                    number_of_patients: 0
                    total_balance: string
                    average_balance: 0
                  - category: string
                    number_of_patients: 0
                    total_balance: string
                    average_balance: 0
                  - category: string
                    number_of_patients: 0
                    total_balance: string
                    average_balance: 0
                average_production_per_patient:
                  per_patient_value: float
                  production: float
                  hygiene_visits: float
        '401':
          description: Missing, invalid or expired token.
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: string
              example:
                errors: not authorized
        '403':
          description: The credential may not access this resource.
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: string
              example:
                errors: access Denied
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: string
              example:
                errors: resource not found
        '422':
          description: The request could not be processed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: string
              example:
                errors: ...
        '429':
          description: >-
            Concurrency limit exceeded. The request was not executed; retry is
            safe.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: string
                  sync_type:
                    type: string
                    enum:
                      - initial
                      - incremental
                  max_concurrent_locations:
                    type: integer
                  active_location_ids:
                    type: array
                    items:
                      type: integer
                  retry_after_seconds:
                    type: integer
              example:
                errors: >-
                  Too many locations syncing concurrently. At most 5 locations
                  may have initial sync requests in flight at a time.
                sync_type: initial
                max_concurrent_locations: 5
                active_location_ids:
                  - 101
                  - 102
                  - 103
                  - 104
                  - 105
                retry_after_seconds: 1
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT returned by POST /auth/token. Valid for six hours.

````