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

# Units for the company



## OpenAPI

````yaml https://api-test.inyett.com/swagger/v2/swagger.json get /2/{profileCountry}/company-data/companies/{country}/{orgNr}/units
openapi: 3.0.4
info:
  title: Inyett Automation
  description: |-
    <h3>How to connect</h3>
                        <p>Read more about our API and how to connect on <a href='https://docs.inyett.com/home' target='_blank'>docs.inyett.com</a></p> 
  contact:
    email: support@inyett.com
  version: '2.0'
servers: []
security:
  - X-Api-Key: []
  - Bearer: []
tags:
  - name: Inyett Company Control
    description: >-
      Risk assessment endpoints such as main rating, fraud, debt and payment
      remark checks, used to screen a company before paying it.
  - name: Inyett Company Data
    description: >-
      Company master data: addresses, accounts, owners, directors, financial
      statements and other registry information for a company.
  - name: Inyett Company Find
    description: Free-text and organisation-number search for companies.
  - name: Inyett Company Monitor
    description: >-
      Continuous monitoring of company portfolios: create portfolios, add or
      remove companies to watch, and read back detected changes over time.
  - name: Inyett Payment Control
    description: >-
      Batch screening of outgoing payments: submit a payment batch for analysis
      and read back any warnings before the money leaves the customer.
paths:
  /2/{profileCountry}/company-data/companies/{country}/{orgNr}/units:
    get:
      tags:
        - Inyett Company Data
      summary: Units for the company
      operationId: unitsGet
      parameters:
        - name: profileCountry
          in: path
          description: >-
            The country whose scope/entitlement profile (SE or NO) is used to
            authorize the request. Determines which market-specific rules apply,
            independent of the country the requested company is registered in.
          required: true
          schema:
            $ref: '#/components/schemas/Country'
        - name: country
          in: path
          description: The country the requested company is registered in.
          required: true
          schema:
            $ref: '#/components/schemas/Country'
        - name: orgNr
          in: path
          description: >-
            The company's organisation number (personal identity number for a
            sole proprietorship), without separators.
          required: true
          schema:
            type: string
        - name: AppId
          in: header
          description: App id
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Unit'
              example:
                - officeName: Inyett AB
                  officeType: Huvudkontor
                  coAddress: ''
                  address: Redaregatan 50
                  zipCode: '25236'
                  town: Helsingborg
                  phoneNumber: 042-210007
                  faxNumber: ''
                  email: ''
                  specialInformations:
                    - name: Sni
                      code: SNIC
                      value: '62010'
                    - name: Sni description
                      code: SNID
                      value: Dataprogrammering
                    - name: CFar
                      code: CFAR
                      value: '47544630'
                  dateUpdated: '2023-11-30T16:58:39.85'
                  visitingAddress:
                    address: Redaregatan 50
                    zipCode: '25236'
                    town: Helsingborg
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FailResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FailResponse'
components:
  schemas:
    Country:
      enum:
        - SE
        - 'NO'
      type: string
      description: >-
        ISO country code supported for company lookups: SE (Sweden) or NO
        (Norway).
    Unit:
      type: object
      properties:
        officeName:
          type: string
          nullable: true
        officeType:
          type: string
          nullable: true
        coAddress:
          type: string
          nullable: true
        address:
          type: string
          nullable: true
        zipCode:
          type: string
          nullable: true
        town:
          type: string
          nullable: true
        phoneNumber:
          type: string
          nullable: true
        faxNumber:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        sniCode:
          type: string
          nullable: true
        sniDescription:
          type: string
          nullable: true
        specialInformations:
          type: array
          items:
            $ref: '#/components/schemas/SpecialInformation'
          nullable: true
        dateUpdated:
          type: string
          format: date-time
        visitingAddress:
          $ref: '#/components/schemas/UnitVisitingAddress'
      additionalProperties: false
      description: >-
        A registered unit/office of the company, with its own address and
        contact details.
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
      description: >-
        A machine-readable error response following the RFC 7807 Problem Details
        format.
    FailResponse:
      type: object
      properties:
        message:
          type: string
          nullable: true
      additionalProperties: false
      description: >-
        Error response returned when a request fails, containing a
        human-readable message.
    SpecialInformation:
      type: object
      properties:
        name:
          type: string
          nullable: true
        code:
          type: string
          nullable: true
        value:
          type: string
          nullable: true
      additionalProperties: false
      description: >-
        A registry remark or special note attached to the company or one of its
        units.
    UnitVisitingAddress:
      type: object
      properties:
        address:
          type: string
          nullable: true
        zipCode:
          type: string
          nullable: true
        town:
          type: string
          nullable: true
      additionalProperties: false
      description: The visiting address of a company unit/office.
  securitySchemes:
    X-Api-Key:
      type: apiKey
      description: 'Api key needed to access the endpoints. X-Api-Key: My api key'
      name: X-Api-Key
      in: header
    Bearer:
      type: http
      description: Please enter a valid token
      scheme: Bearer
      bearerFormat: JWT

````