> ## 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 company debt summary

> Returns the company's debt position from the Swedish Enforcement Authority (Kronofogden): most recent debtor summary, aggregate debt summary, current debt cases, and weekly/case-type breakdowns for charting.

<Badge color="purple" size="sm">Max+ tier</Badge>


## OpenAPI

````yaml get /companies/{id}/debts
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}/debts:
    get:
      tags:
        - Companies
      summary: Get company debt summary
      description: >-
        Returns the company's debt position from the Swedish Enforcement
        Authority (Kronofogden): most recent debtor summary, aggregate debt
        summary, current debt cases, and weekly/case-type breakdowns for
        charting.
      operationId: GetCompanyDebts
      parameters:
        - name: id
          in: path
          description: Internal company ID
          required: true
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: Debt summary and case breakdown
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Ormeo_Web_Lens_Models_Companies_CompanyDebt_Dto
        '404':
          description: Company not found or not accessible
components:
  schemas:
    Ormeo_Web_Lens_Models_Companies_CompanyDebt_Dto:
      type: object
      properties:
        debtSummary:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/Ormeo_Library_KFM_KFM_DebtSummary_Dto'
        debtCases:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/Ormeo_Library_KFM_KFM_DebtCases_Dto'
        mostRecentDebtorSummary:
          $ref: >-
            #/components/schemas/Ormeo_Library_KFM_KFM_MostRecentDebtorSummary_Dto
        debtCasesGroupedByWeek:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Web_Lens_Models_Companies_DebtCasesGroup_Dto
        debtSummaryGroupedByWeek:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Web_Lens_Models_Companies_DebtSummaryGroup_Dto
      additionalProperties: false
    Ormeo_Library_KFM_KFM_DebtSummary_Dto:
      type: object
      properties:
        kfm_DebtorSummaryEntityDebtId:
          type: integer
          format: int32
        kfm_DebtorSummaryId:
          type: integer
          format: int32
        debtCaseType:
          $ref: '#/components/schemas/Ormeo_Library_Entities_KFM_DebtCaseType'
        debtType:
          type:
            - 'null'
            - integer
          format: int32
        numberOfCases:
          type: integer
          format: int32
        debtAmountInSEK:
          type: integer
          format: int64
        isDeleted:
          type:
            - 'null'
            - boolean
        eventDate:
          type: string
          format: date-time
        debtCaseTypeDescription:
          type:
            - 'null'
            - string
        debtTypeDescription:
          type:
            - 'null'
            - string
      additionalProperties: false
    Ormeo_Library_KFM_KFM_DebtCases_Dto:
      type: object
      properties:
        kfm_OrderToPayCaseId:
          type: integer
          format: int32
        kfm_OrderToPayNotificationId:
          type: integer
          format: int32
        fileCreationDate:
          type:
            - 'null'
            - string
          format: date-time
        notificationType:
          type:
            - 'null'
            - string
        applicationVerdict:
          type:
            - 'null'
            - string
        applicationVerdictDescription:
          type:
            - 'null'
            - string
          readOnly: true
        casePrefix:
          type:
            - 'null'
            - string
        caseNumber:
          type:
            - 'null'
            - string
        verdictCaseNumber:
          type:
            - 'null'
            - string
        dateOfApplicationOrVerdict:
          type:
            - 'null'
            - string
          format: date-time
        applicantName:
          type:
            - 'null'
            - string
        applicantPersonalIdentityOrRegistrationNumber:
          type:
            - 'null'
            - string
        applicantPersonId:
          type:
            - 'null'
            - integer
          format: int32
        applicantCompanyId:
          type:
            - 'null'
            - integer
          format: int32
        applicantHasProtectedPersonalData:
          type:
            - 'null'
            - boolean
        defendantName:
          type:
            - 'null'
            - string
        defendantPersonalIdentityOrRegistrationNumber:
          type:
            - 'null'
            - string
        defendantPersonId:
          type:
            - 'null'
            - integer
          format: int32
        defendantCompanyId:
          type:
            - 'null'
            - integer
          format: int32
        defendantHasProtectedPersonalData:
          type:
            - 'null'
            - boolean
        amount:
          type:
            - 'null'
            - number
          format: double
        causeOfRemoval:
          type:
            - 'null'
            - string
        defendantAddressStreet:
          type:
            - 'null'
            - string
        defendantAddressPostalCode:
          type:
            - 'null'
            - string
        defendantAddressCity:
          type:
            - 'null'
            - string
        applicationWithdrawn:
          type:
            - 'null'
            - boolean
        applicationWithdrawnDate:
          type:
            - 'null'
            - string
          format: date-time
        applicationContested:
          type:
            - 'null'
            - string
        applicationContestedDate:
          type:
            - 'null'
            - string
          format: date-time
        applicationDismissed:
          type:
            - 'null'
            - boolean
        applicationDismissedDate:
          type:
            - 'null'
            - string
          format: date-time
        applicationToCourt:
          type:
            - 'null'
            - boolean
        applicationToCourtDate:
          type:
            - 'null'
            - string
          format: date-time
        applicationToCourtCode:
          type:
            - 'null'
            - string
        verdictToCourt:
          type:
            - 'null'
            - boolean
        verdictToCourtDate:
          type:
            - 'null'
            - string
          format: date-time
        verdictToCourtCode:
          type:
            - 'null'
            - string
        appealedToCourt:
          type:
            - 'null'
            - boolean
        appealedToCourtDate:
          type:
            - 'null'
            - string
          format: date-time
        appealedToCourtCode:
          type:
            - 'null'
            - string
        lastUpdatedAtUtc:
          type: string
          format: date-time
        defendantperson_PersonalIdentityNumber:
          type:
            - 'null'
            - string
        defendantperson_GivenName:
          type:
            - 'null'
            - string
        defendantperson_FirstName:
          type:
            - 'null'
            - string
        defendantperson_MiddleName:
          type:
            - 'null'
            - string
        defendantperson_LastName:
          type:
            - 'null'
            - string
        defendantperson_FullName:
          type:
            - 'null'
            - string
        defendantperson_IsMarried:
          type:
            - 'null'
            - boolean
        defendantperson_Sex:
          type:
            - 'null'
            - integer
          format: int32
        defendantperson_IsCoordinationNumber:
          type:
            - 'null'
            - boolean
        defendantperson_Birthday:
          type:
            - 'null'
            - string
        defendantperson_IsProtected:
          type:
            - 'null'
            - boolean
        applicantperson_PersonalIdentityNumber:
          type:
            - 'null'
            - string
        applicantperson_GivenName:
          type:
            - 'null'
            - string
        applicantperson_FirstName:
          type:
            - 'null'
            - string
        applicantperson_MiddleName:
          type:
            - 'null'
            - string
        applicantperson_LastName:
          type:
            - 'null'
            - string
        applicantperson_FullName:
          type:
            - 'null'
            - string
        applicantperson_IsMarried:
          type:
            - 'null'
            - boolean
        applicantperson_Sex:
          type:
            - 'null'
            - integer
          format: int32
        applicantperson_IsCoordinationNumber:
          type:
            - 'null'
            - boolean
        applicantperson_Birthday:
          type:
            - 'null'
            - string
        applicantperson_IsProtected:
          type:
            - 'null'
            - boolean
        defendantcompany_LegalName:
          type:
            - 'null'
            - string
        defendantcompany_Purpose:
          type:
            - 'null'
            - string
        defendantcompany_SNICodes:
          type:
            - 'null'
            - string
        defendantcompany_IntelligenceScoreTotal:
          type:
            - 'null'
            - integer
          format: int32
        defendantcompany_IntelligenceNumberOfMax:
          type:
            - 'null'
            - integer
          format: int32
        applicantcompany_LegalName:
          type:
            - 'null'
            - string
        applicantcompany_Purpose:
          type:
            - 'null'
            - string
        applicantcompany_SNICodes:
          type:
            - 'null'
            - string
        applicantcompany_IntelligenceScoreTotal:
          type:
            - 'null'
            - integer
          format: int32
        applicantcompany_IntelligenceNumberOfMax:
          type:
            - 'null'
            - integer
          format: int32
        applicantNameFallback:
          type:
            - 'null'
            - string
          readOnly: true
        defendantNameFallback:
          type:
            - 'null'
            - string
          readOnly: true
      additionalProperties: false
    Ormeo_Library_KFM_KFM_MostRecentDebtorSummary_Dto:
      type: object
      properties:
        foreclosure:
          type:
            - 'null'
            - boolean
        debtRestructuring:
          type:
            - 'null'
            - boolean
        recordOfPaymentApplications:
          $ref: '#/components/schemas/Ormeo_Library_KFM_RecordOfPaymentApplications'
        recordOfNonPayment:
          $ref: '#/components/schemas/Ormeo_Library_KFM_RecordOfNonPayment'
        debtBalance:
          $ref: '#/components/schemas/Ormeo_Library_KFM_DebtBalance'
        executions:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Library_KFM_KFM_DebtorChangeEntityExecution_Dto
        decisions:
          type:
            - 'null'
            - array
          items:
            $ref: >-
              #/components/schemas/Ormeo_Library_KFM_KFM_DebtorChangeEntityDecision_Dto
      additionalProperties: false
    Ormeo_Web_Lens_Models_Companies_DebtCasesGroup_Dto:
      type: object
      properties:
        yearAndWeek:
          type:
            - 'null'
            - string
        amount:
          type: number
          format: double
        numberOfCases:
          type: integer
          format: int32
      additionalProperties: false
    Ormeo_Web_Lens_Models_Companies_DebtSummaryGroup_Dto:
      type: object
      properties:
        yearAndWeek:
          type:
            - 'null'
            - string
        amountE:
          type: number
          format: double
        amountA:
          type: number
          format: double
      additionalProperties: false
    Ormeo_Library_Entities_KFM_DebtCaseType:
      enum:
        - a
        - e
      type: string
    Ormeo_Library_KFM_RecordOfPaymentApplications:
      type: object
      properties:
        numberOfCases:
          type: integer
          format: int32
        totalAmountInSEK:
          type: number
          format: double
        lastCaseDate:
          type:
            - 'null'
            - integer
          format: int64
        orderToPayCases:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/Ormeo_Library_KFM_KFM_OrderToPayCaseMinimal'
      additionalProperties: false
    Ormeo_Library_KFM_RecordOfNonPayment:
      type: object
      properties:
        numberOfCases:
          type: integer
          format: int32
        totalAmountInSEK:
          type: number
          format: double
        lastCaseDate:
          type:
            - 'null'
            - integer
          format: int64
      additionalProperties: false
    Ormeo_Library_KFM_DebtBalance:
      type: object
      properties:
        lastUpdated:
          type: integer
          format: int64
        totalAmountInSEK:
          type: number
          format: double
          readOnly: true
        public:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/Ormeo_Library_KFM_DebtBalancePublic'
        private:
          $ref: '#/components/schemas/Ormeo_Library_KFM_DebtBalancePrivate'
      additionalProperties: false
    Ormeo_Library_KFM_KFM_DebtorChangeEntityExecution_Dto:
      type: object
      properties:
        registrationDate:
          type:
            - 'null'
            - string
          format: date-time
        caseNumber:
          type:
            - 'null'
            - string
        caseNumberOldFormat:
          type:
            - 'null'
            - string
        debtType:
          type:
            - 'null'
            - integer
          format: int32
        debtTypeDescription:
          type:
            - 'null'
            - string
        executionYear:
          type:
            - 'null'
            - string
        executionTitleMonth:
          type:
            - 'null'
            - string
        executionDate:
          type:
            - 'null'
            - string
          format: date-time
        originalDebt:
          type:
            - 'null'
            - integer
          format: int32
        recalledAmount:
          type:
            - 'null'
            - integer
          format: int32
        executionEventType:
          type:
            - 'null'
            - string
        executionEventTypeDescription:
          type:
            - 'null'
            - string
        executionCaseType:
          type:
            - 'null'
            - string
        executionCaseTypeDescription:
          type:
            - 'null'
            - string
        terminatedWithCause:
          type:
            - 'null'
            - string
        terminatedWithCauseDescription:
          type:
            - 'null'
            - string
        executionEvents:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/Ormeo_Library_KFM_ExecutionEvent'
      additionalProperties: false
    Ormeo_Library_KFM_KFM_DebtorChangeEntityDecision_Dto:
      type: object
      properties:
        decisionType:
          type:
            - 'null'
            - string
        decisionTypeDescription:
          type:
            - 'null'
            - string
        decisionDate:
          type:
            - 'null'
            - string
          format: date-time
        decisionEventType:
          type:
            - 'null'
            - string
        measures:
          type:
            - 'null'
            - array
          items:
            type: string
        measuresDescriptions:
          type:
            - 'null'
            - array
          items:
            type: string
        reasonForDecision:
          type:
            - 'null'
            - string
        reasonForDecisionDescription:
          type:
            - 'null'
            - string
      additionalProperties: false
    Ormeo_Library_KFM_KFM_OrderToPayCaseMinimal:
      type: object
      properties:
        notificationType:
          type:
            - 'null'
            - string
        applicationVerdict:
          type:
            - 'null'
            - string
        casePrefix:
          type:
            - 'null'
            - string
        caseNumber:
          type:
            - 'null'
            - string
        dateOfApplicationOrVerdict:
          type:
            - 'null'
            - string
          format: date-time
        amount:
          type:
            - 'null'
            - number
          format: double
        applicationWithdrawn:
          type:
            - 'null'
            - boolean
        fileCreationDate:
          type: string
          format: date-time
      additionalProperties: false
    Ormeo_Library_KFM_DebtBalancePublic:
      type: object
      properties:
        description:
          type:
            - 'null'
            - string
        totalAmountInSEK:
          type: number
          format: double
        numberOfCases:
          type: integer
          format: int32
      additionalProperties: false
    Ormeo_Library_KFM_DebtBalancePrivate:
      type: object
      properties:
        numberOfCases:
          type: integer
          format: int32
        totalAmountInSEK:
          type: number
          format: double
      additionalProperties: false
    Ormeo_Library_KFM_ExecutionEvent:
      type: object
      properties:
        executionDate:
          type:
            - 'null'
            - string
          format: date-time
        executionEventType:
          type:
            - 'null'
            - string
        executionEventTypeDescription:
          type:
            - 'null'
            - string
        terminatedWithCause:
          type:
            - 'null'
            - string
        terminatedWithCauseDescription:
          type:
            - 'null'
            - string
      additionalProperties: false
  securitySchemes:
    ApiKey:
      type: apiKey
      name: x-api-key
      in: header

````