> ## 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 serving permit details by restaurant number

> Returns Swedish serving-permit (alkoholtillstånd) records for a given restaurant, including the company owning the permit.

<Badge color="yellow" size="sm">Enterprise+ tier</Badge>


## OpenAPI

````yaml get /serving-permits/{id}
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:
  /serving-permits/{id}:
    get:
      tags:
        - ServingPermits
      summary: Get serving permit details by restaurant number
      description: >-
        Returns Swedish serving-permit (alkoholtillstånd) records for a given
        restaurant, including the company owning the permit.
      operationId: GetServingPermitDetails
      parameters:
        - name: id
          in: path
          description: >-
            Restaurant number (restaurangnummer) assigned by the Swedish
            authorities
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Serving permit details
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Ormeo_Web_Lens_Models_ServingPermits_ServingPermitDetail_Dto
        '404':
          description: No serving permit found
components:
  schemas:
    Ormeo_Web_Lens_Models_ServingPermits_ServingPermitDetail_Dto:
      type: object
      properties:
        restaurantNumber:
          type:
            - 'null'
            - string
        municipality:
          type:
            - 'null'
            - string
        county:
          type:
            - 'null'
            - string
        mostRecentPermit:
          $ref: >-
            #/components/schemas/Ormeo_Library_Dtos_Folkhalsomyndigheten_ServingPermit_Dto
        servingPermits:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Library_Dtos_Folkhalsomyndigheten_ServingPermit_Dto
      additionalProperties: false
    Ormeo_Library_Dtos_Folkhalsomyndigheten_ServingPermit_Dto:
      type: object
      properties:
        folkhalsomyndigheten_ServingPermitId:
          type: integer
          format: int32
        restaurantNumber:
          type:
            - 'null'
            - string
        servingLocationName:
          type:
            - 'null'
            - string
        servingAddress:
          type:
            - 'null'
            - string
        servingPostalCode:
          type:
            - 'null'
            - string
        formattedPostalCode:
          type:
            - 'null'
            - string
          readOnly: true
        servingCity:
          type:
            - 'null'
            - string
        servingCompanyRegistrationNumber:
          type:
            - 'null'
            - string
        formattedServingCompanyRegistrationNumber:
          type:
            - 'null'
            - string
          readOnly: true
        permitHolderName:
          type:
            - 'null'
            - string
        categoryCode:
          type:
            - 'null'
            - integer
          format: int32
        category:
          $ref: >-
            #/components/schemas/Ormeo_Library_Bolagsverket_Types_FolkhalsomyndighetenTypeFor_CategoryCode
        municipality:
          type:
            - 'null'
            - string
        validFrom:
          type:
            - 'null'
            - string
          format: date-time
        probationaryPeriodTo:
          type:
            - 'null'
            - string
          format: date-time
        validTo:
          type:
            - 'null'
            - string
          format: date-time
        lineHash:
          type:
            - 'null'
            - string
        folkhalsomyndigheten_FileId:
          type: integer
          format: int32
        companyId:
          type:
            - 'null'
            - integer
          format: int32
        isProcessed:
          type:
            - 'null'
            - boolean
        lastUpdatedAtUtc:
          type: string
          format: date-time
        geocodedLatitude:
          type:
            - 'null'
            - number
          format: double
        geocodedLongitude:
          type:
            - 'null'
            - number
          format: double
        geocodedAtUtc:
          type:
            - 'null'
            - string
          format: date-time
        geocodeQueryScore:
          type:
            - 'null'
            - number
          format: double
        hasCoordinates:
          type: boolean
          readOnly: true
        company:
          $ref: '#/components/schemas/Ormeo_Library_Dtos_Company_Dto'
      additionalProperties: false
    Ormeo_Library_Bolagsverket_Types_FolkhalsomyndighetenTypeFor_CategoryCode:
      type: object
      properties:
        code:
          type: integer
          format: int32
        permitType:
          type:
            - 'null'
            - string
        beverageType:
          type:
            - 'null'
            - string
        beverageType2:
          type:
            - 'null'
            - string
        servingType:
          type:
            - 'null'
            - string
      additionalProperties: false
    Ormeo_Library_Dtos_Company_Dto:
      type: object
      properties:
        companyId:
          type: integer
          format: int32
        companyRegistrationNumber:
          type:
            - 'null'
            - string
        formattedCompanyRegistrationNumber:
          type:
            - 'null'
            - string
          readOnly: true
        legalEntityType:
          type:
            - 'null'
            - string
        registrationDate:
          type:
            - 'null'
            - string
          format: date-time
        companyRegisterId:
          type:
            - 'null'
            - integer
          format: int32
        ceasedDate:
          type:
            - 'null'
            - string
          format: date-time
        lastUpdatedAtUtc:
          type:
            - 'null'
            - string
          format: date-time
        foundAtUtc:
          type:
            - 'null'
            - string
          format: date-time
        isCeased:
          type:
            - 'null'
            - boolean
        elfCode:
          type:
            - 'null'
            - string
        formationDate:
          type:
            - 'null'
            - string
          format: date-time
        localCompanyCode:
          type:
            - 'null'
            - string
        companySummary:
          $ref: '#/components/schemas/Ormeo_Library_Dtos_CompanySummary_Dto'
      additionalProperties: false
    Ormeo_Library_Dtos_CompanySummary_Dto:
      type: object
      properties:
        companyId:
          type: integer
          format: int32
        companySummaryId:
          type: integer
          format: int32
        legalName:
          type:
            - 'null'
            - string
        purpose:
          type:
            - 'null'
            - string
        sniCodes:
          type:
            - 'null'
            - string
        sniCodes2025:
          type:
            - 'null'
            - string
        sniCodesList:
          type:
            - 'null'
            - object
          additionalProperties:
            type:
              - 'null'
              - string
        sniCodes2025List:
          type:
            - 'null'
            - object
          additionalProperties:
            type:
              - 'null'
              - string
        visitingAddressStreet:
          type:
            - 'null'
            - string
        visitingAddressPostalCode:
          type:
            - 'null'
            - string
        visitingAddressCity:
          type:
            - 'null'
            - string
        visitingAddressCountryCodeAlpha3:
          type:
            - 'null'
            - string
        visitingAddressPosition:
          type:
            - 'null'
            - array
          items:
            type: number
            format: double
        isVistingAddressEmpty:
          type: boolean
          readOnly: true
        isVisitingAddressMissing:
          type: boolean
          readOnly: true
        visitingAddressPositionLatitude:
          type:
            - 'null'
            - number
          format: double
        visitingAddressPositionLongitude:
          type:
            - 'null'
            - number
          format: double
        mailingAddressStreet:
          type:
            - 'null'
            - string
        mailingAddressPostalCode:
          type:
            - 'null'
            - string
        mailingAddressCity:
          type:
            - 'null'
            - string
        mailingAddressCountryCodeAlpha3:
          type:
            - 'null'
            - string
        isMailingAddressEmpty:
          type: boolean
          readOnly: true
        isMailingAddressMissing:
          type: boolean
          readOnly: true
        mailingAddressPosition:
          type:
            - 'null'
            - array
          items:
            type: number
            format: double
        mailingAddressPositionLatitude:
          type:
            - 'null'
            - number
          format: double
        mailingAddressPositionLongitude:
          type:
            - 'null'
            - number
          format: double
        numberOfWorkplaces:
          type:
            - 'null'
            - integer
          format: int32
        registeredOfficeMunicipalityCode:
          type:
            - 'null'
            - string
        registeredOfficeCountyCode:
          type:
            - 'null'
            - string
        registeredVAT:
          type:
            - 'null'
            - boolean
        registeredFTax:
          type:
            - 'null'
            - boolean
        registeredPayroll:
          type:
            - 'null'
            - boolean
        scb_NumberOfEmployeesInterval:
          type:
            - 'null'
            - integer
          format: int32
        scb_NumberOfEmployeesIntervalDescription:
          type:
            - 'null'
            - string
          readOnly: true
        scb_OwnershipType:
          type:
            - 'null'
            - integer
          format: int32
        scb_OwnershipTypeDescription:
          type:
            - 'null'
            - string
          readOnly: true
        scb_TurnoverInterval:
          type:
            - 'null'
            - integer
          format: int32
        scb_TurnoverIntervalDescription:
          type:
            - 'null'
            - string
          readOnly: true
        scb_PrivPublType:
          type:
            - 'null'
            - integer
          format: int32
        scb_PrivPublTypeDescription:
          type:
            - 'null'
            - string
          readOnly: true
        scb_TradeExportInterval:
          type:
            - 'null'
            - integer
          format: int32
        scb_TradeExportIntervalDescription:
          type:
            - 'null'
            - string
          readOnly: true
        scb_TradeImportInterval:
          type:
            - 'null'
            - integer
          format: int32
        scb_TradeImportIntervalDescription:
          type:
            - 'null'
            - string
          readOnly: true
        scb_PropertyTaxationInterval:
          type:
            - 'null'
            - integer
          format: int32
        scb_PropertyTaxationIntervalDescription:
          type:
            - 'null'
            - string
          readOnly: true
        period1:
          type:
            - 'null'
            - integer
          format: int32
        period1_IS_NetSalesK:
          type:
            - 'null'
            - integer
          format: int32
        period1_FN_NumberOfEmployees:
          type:
            - 'null'
            - number
          format: double
        period1_IS_OperatingProfitOrLossK:
          type:
            - 'null'
            - integer
          format: int32
        period1_IsAudited:
          type:
            - 'null'
            - boolean
        period1_Lines:
          type:
            - 'null'
            - array
          items:
            type: string
          readOnly: true
        period2:
          type:
            - 'null'
            - integer
          format: int32
        period2_IS_NetSalesK:
          type:
            - 'null'
            - integer
          format: int32
        period2_FN_NumberOfEmployees:
          type:
            - 'null'
            - number
          format: double
        period2_IS_OperatingProfitOrLossK:
          type:
            - 'null'
            - integer
          format: int32
        period2_IsAudited:
          type:
            - 'null'
            - boolean
        period3:
          type:
            - 'null'
            - integer
          format: int32
        period3_IS_NetSalesK:
          type:
            - 'null'
            - integer
          format: int32
        period3_FN_NumberOfEmployees:
          type:
            - 'null'
            - number
          format: double
        period3_IS_OperatingProfitOrLossK:
          type:
            - 'null'
            - integer
          format: int32
        period3_IsAudited:
          type:
            - 'null'
            - boolean
        intelligenceScoreTotal:
          type:
            - 'null'
            - integer
          format: int32
        intelligenceNumberOfMax:
          type:
            - 'null'
            - integer
          format: int32
        numberOfEmailAddresses:
          type:
            - 'null'
            - integer
          format: int32
        lastCompanyActivityStatus:
          $ref: '#/components/schemas/Ormeo_Library_Entities_CompanyStatusType'
        lastCompanyActivityStatusDescription:
          type:
            - 'null'
            - string
          readOnly: true
        lastCompanyStatusType:
          $ref: '#/components/schemas/Ormeo_Library_Entities_CompanyStatusType'
        lastCompanyStatusDescription2:
          $ref: '#/components/schemas/Ormeo_Library_Common_CompanyStatusListType'
        lastCompanyStatusDate:
          type:
            - 'null'
            - string
          format: date-time
        lastCompanyStatusDescription:
          type:
            - 'null'
            - string
        lastUpdatedAtUtc:
          type:
            - 'null'
            - string
          format: date-time
        hasAuditor:
          type:
            - 'null'
            - boolean
        companyRepresentativeBornYear:
          type:
            - 'null'
            - integer
          format: int32
        kfm_DebtBalanceTotalAmountInSEK:
          type:
            - 'null'
            - number
          format: double
        kfm_RecordOfNonPaymentNumberOfCases:
          type:
            - 'null'
            - integer
          format: int32
        registeredAML:
          type:
            - 'null'
            - boolean
        shouldBeRegisteredAML:
          type:
            - 'null'
            - boolean
          readOnly: true
        mailingAddressLantmaterietLocatedOnPropertyId:
          type:
            - 'null'
            - string
          format: uuid
        mailingAddressLantmaterietLocationalAddressId:
          type:
            - 'null'
            - string
          format: uuid
        visitingAddressLantmaterietLocatedOnPropertyId:
          type:
            - 'null'
            - string
          format: uuid
        visitingAddressLantmaterietLocationalAddressId:
          type:
            - 'null'
            - string
          format: uuid
        visitingAddressCO:
          type:
            - 'null'
            - string
        mailingAddressCO:
          type:
            - 'null'
            - string
        visitingAddressId:
          type:
            - 'null'
            - integer
          format: int32
        mailingAddressId:
          type:
            - 'null'
            - integer
          format: int32
      additionalProperties: false
    Ormeo_Library_Entities_CompanyStatusType:
      enum:
        - reorganizationOfBusinessCommenced
        - bankruptcyTerminatedWithSurplus
        - dissolvedByCompanyDemerger
        - liquidationTerminated
        - mergerProcedureCommenced
        - acquisitionByCompanyDemerger
        - acquisitionByMerger
        - dissolvedByMergerProcedure
        - liquidationDecided
        - bankruptcyProceedingsCommenced
        - bankruptcyProceedingsTerminated
        - mergerPermitted
        - unused1
        - unused2
        - unused3
        - liquidationContinues
        - struckOffRegisterCrossBorderMerger
        - bankruptcyRepealedByCourt
        - liquidationEnds
        - liquidationRepealedByCourt
        - companyStruckOff
        - reorganizationOfBusinessEnded
        - reorganizationOfBusinessRepealedByCourt
        - resolutionCommenced
        - resolutionTerminated
        - resolutionRepealedByCourt
        - companyStruckOffTradeRegisterAct
        - deregisteredNewHolder
        - deregistered
        - reintroduced
        - companyStruckOffOwnRequest
        - companyStruckOffByRegistrationOffice
        - companyStruckOffReenteredAsJointStock
        - branchStruckOffForeignLiquidationOrBankruptcy
        - branchStruckOffOperationsCeased
        - branchStruckOffMissingCEO
        - branchStruckOffCourtOrder
        - branchStruckOffAnnualReportMissing
        - isActive
        - isNoLongerActive
        - hasNeverBeenActive
        - taxAuthorityStatus
        - companyDemergerCommenced
        - settlementNegotiationsCommenced
        - settlementNegotiationsTerminated
        - settlementNegotiationsRepealedByCourt
        - acquisitionExpired
        - acquisitionTerminated
        - acquisitionByMultipleMergers
        - acquisitionRepealedByCourt
        - mergerExpired
        - mergerRepealedByCourt
        - other
      type: string
    Ormeo_Library_Common_CompanyStatusListType:
      type: object
      properties:
        code:
          $ref: '#/components/schemas/Ormeo_Library_Entities_CompanyStatusType'
        name_EN:
          type:
            - 'null'
            - string
        name_SE:
          type:
            - 'null'
            - string
        bolagsverketCode:
          type:
            - 'null'
            - string
        isCeased:
          type:
            - 'null'
            - boolean
      additionalProperties: false
  securitySchemes:
    ApiKey:
      type: apiKey
      name: x-api-key
      in: header

````