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

# Listar operações de negócio

> Exige read. Lista os negócios e seus saldos independentes.



## OpenAPI

````yaml /openapi.yaml get /operations
openapi: 3.1.0
info:
  title: Master API
  version: 1.1.0
  description: >-
    API pública da Master para cobranças Pix, cartão e transferências Pix
    automáticas. Valores em centavos inteiros.
servers:
  - url: https://api.pagmaster.site/api/v1/public
    description: Produção, após configurar DNS e HTTPS
  - url: http://127.0.0.1:4000/api/v1/public
    description: Desenvolvimento local
security:
  - bearerAuth: []
tags:
  - name: Conta
    description: Saldo e limites da conta
  - name: Pagamentos
    description: Consulta de operações
  - name: Cobranças Pix
    description: Criação de cobranças
  - name: Transferências Pix
    description: Envios automáticos autorizados por API key
  - name: Operações de negócio
    description: Até 10 negócios com saldos e históricos independentes
  - name: Cartão de crédito
    description: Checkout hospedado e consulta de aprovação e liquidação
paths:
  /operations:
    get:
      tags:
        - Operações de negócio
      summary: Listar operações de negócio
      description: Exige read. Lista os negócios e seus saldos independentes.
      operationId: listBusinessOperations
      responses:
        '200':
          description: Operações da conta
          content:
            application/json:
              schema:
                type: object
                properties:
                  limit:
                    type: integer
                    const: 10
                  operations:
                    type: array
                    maxItems: 10
                    items:
                      $ref: '#/components/schemas/BusinessOperation'
                    minItems: 1
                  ownerId:
                    type: string
                    format: uuid
                    description: ID estável da conta
                required:
                  - ownerId
                  - limit
                  - operations
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimit'
components:
  schemas:
    BusinessOperation:
      type: object
      required:
        - id
        - name
        - isDefault
        - balanceCents
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
          minLength: 2
          maxLength: 64
        isDefault:
          type: boolean
        balanceCents:
          type: integer
          minimum: 0
        balanceUpdatedAt:
          type:
            - integer
            - 'null'
        createdAt:
          type: integer
    Error:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
  responses:
    BadRequest:
      description: Dados inválidos ou conflito de idempotência
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: API key ausente, inválida ou revogada
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Permissão insuficiente
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimit:
      description: Limite temporário de requisições
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key criada em Integrações → Keys. Exemplo `mk_live_...`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.