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

# Get public-sector sales (leveranser till kommuner)

> Returns statistics on the company's sales to Swedish municipalities, sourced from SCB municipality vendor statistics.

<Badge color="green" size="sm">Pro+ tier</Badge>


## OpenAPI

````yaml get /companies/{id}/public-sales
openapi: 3.1.1
info:
  title: TIC Lens API
  description: "The TIC Lens API provides programmatic access to company, person, property, vehicle, and order data.\r\n\r\n## Authentication\r\n\r\nAll requests require an API key passed via the `x-api-key` header:\r\n\r\n```bash\r\ncurl -H \"x-api-key: YOUR_API_KEY\" https://lens-api.tic.io/companies/123\r\n```\r\n\r\nAPI keys are managed through the TIC Lens web application under **Settings → API Keys**.\r\n\r\n## Base URL\r\n\r\n| Environment | URL |\r\n|-------------|-----|\r\n| Production  | `https://lens-api.tic.io` |\r\n\r\n## Feature Access\r\n\r\nEndpoints are gated by your subscription plan. If your plan does not include a feature, the endpoint will return `403 Forbidden`.\r\n\r\n## Rate Limits\r\n\r\nRate limits are applied per API key. If you exceed the limit, requests will return `429 Too Many Requests`.\r\n\r\n## Response Format\r\n\r\nAll responses are JSON. Null values are omitted from responses.\r\n"
  version: v1
servers:
  - url: https://lens-api.tic.io
security:
  - ApiKey: []
tags:
  - name: Addresses
  - name: Bolagsverket
  - name: Brf
  - name: Companies
  - name: Documents
  - name: FlightImages
  - name: Free
  - name: Orders
  - name: OrdersExports
  - name: PaymentControl
  - name: PaymentControlImport
  - name: Persons
  - name: Properties
  - name: PublicSearch
  - name: SearchAutocomplete
  - name: Sentinel
  - name: ServingPermits
  - name: Team
  - name: Teams
  - name: Transportstyrelsen
  - name: Vehicles
  - name: WatchList
paths:
  /companies/{id}/public-sales:
    get:
      tags:
        - Companies
      summary: Get public-sector sales (leveranser till kommuner)
      description: >-
        Returns statistics on the company's sales to Swedish municipalities,
        sourced from SCB municipality vendor statistics.
      operationId: GetCompanyPublicSales
      parameters:
        - name: id
          in: path
          description: Internal company ID
          required: true
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: Municipality vendor statistics
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/Ormeo_Library_Views_View_MunicipalityVendorStatistics1
        '404':
          description: Company not found or not accessible
components:
  schemas:
    Ormeo_Library_Views_View_MunicipalityVendorStatistics1:
      type: object
      properties:
        municipalityId:
          type: integer
          format: int32
        companyId:
          type:
            - 'null'
            - integer
          format: int32
        municipalityRegistrationNumber:
          type:
            - 'null'
            - string
        municipalityRegistrationNumberFormatted:
          type:
            - 'null'
            - string
          readOnly: true
        commonName:
          type:
            - 'null'
            - string
        legalName:
          type:
            - 'null'
            - string
        fallbackName:
          type:
            - 'null'
            - string
          readOnly: true
        municipalityType:
          $ref: '#/components/schemas/Ormeo_Library_Entities_MunicipalityType'
        municipalityTypeDescription:
          type:
            - 'null'
            - string
          readOnly: true
        municipalityCode:
          type:
            - 'null'
            - string
        invoicedSum_2022:
          type:
            - 'null'
            - number
          format: double
        invoicedSum_2023:
          type:
            - 'null'
            - number
          format: double
        invoicedSum_2024:
          type:
            - 'null'
            - number
          format: double
        invoicesQty_2022:
          type:
            - 'null'
            - integer
          format: int32
        invoicesQty_2023:
          type:
            - 'null'
            - integer
          format: int32
        invoicesQty_2024:
          type:
            - 'null'
            - integer
          format: int32
      additionalProperties: false
    Ormeo_Library_Entities_MunicipalityType:
      enum:
        - municipality
        - region
        - municipalityCompany
        - university
        - authority
        - college
      type: string
  securitySchemes:
    ApiKey:
      type: apiKey
      name: x-api-key
      in: header

````