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

# Listar Empresas

> Retorna uma lista contendo todas as empresas (companies) atreladas ao seu lojista (tenant).

### Response

<ResponseExample>
  ```json Response theme={null}
  [
    {
      "id": "e4b6d4e8-8e6d-41da-abdb-8fc358a9e7f1",
      "tenantId": "e305e9a4-585e-49b8-bc88-9fba992c6326",
      "name": "Acme Corp",
      "document": "12345678000199",
      "status": "ACTIVE",
      "email": "contact@acme.com",
      "address": {
        "street": "Av Paulista",
        "number": "1000",
        "city": "São Paulo",
        "state": "SP",
        "zipCode": "01310-100"
      },
      "settings": {},
      "taxRegime": "SIMPLES_NACIONAL",
      "costMethod": "WEIGHTED_AVERAGE",
      "createdAt": "2024-01-01T12:00:00.000Z",
      "updatedAt": "2024-01-01T12:00:00.000Z"
    }
  ]
  ```
</ResponseExample>


## OpenAPI

````yaml get /companies
openapi: 3.0.0
info:
  title: Hub Marketplace API
  description: API for managing marketplace listings and keys
  version: '1.0'
  contact: {}
servers: []
security: []
tags:
  - name: listings
    description: ''
paths:
  /companies:
    get:
      tags:
        - Companies
      summary: List all companies for the current tenant
      operationId: CompaniesController_findAll
      parameters: []
      responses:
        '200':
          description: Return all companies.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Company'
      security:
        - bearer: []
components:
  schemas:
    Company:
      type: object
      properties:
        name:
          type: string
          description: Company Name
          example: Acme Corp
        document:
          type: string
          description: CNPJ or CPF
          example: '12345678000199'
        status:
          type: string
          enum:
            - ACTIVE
            - DISABLED
            - BLOCKED
            - SUSPENDED
          example: ACTIVE
          description: Company Status
        email:
          type: string
          description: Contact Email
          example: contact@acme.com
        address:
          type: object
          description: Address Object
        settings:
          type: object
          description: Configuration Settings
          example: {}
        taxRegime:
          type: string
          enum:
            - SIMPLES_NACIONAL
            - LUCRO_PRESUMIDO
            - LUCRO_REAL
          example: SIMPLES_NACIONAL
          description: Tax Regime
        costMethod:
          type: string
          enum:
            - REPLACEMENT
            - WEIGHTED_AVERAGE
          example: WEIGHTED_AVERAGE
          description: Cost Method
      required:
        - name
        - document
        - status
        - settings
        - taxRegime
        - costMethod

````