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

# Deprecated — List contracts

> Deprecated: use `GET .../deals`, filtering by `debitPartyOrgIds` or `debitPartyDocuments`; contracts are being removed.

Lists the contracts of your organization. To find the deals of one payer, filter `GET .../deals` by `debitPartyOrgIds` (the organization of the payer's Portão 3 wallet) or, for a payer with no wallet, by `debitPartyDocuments` (its CPF or CNPJ).


## OpenAPI

````yaml /api-reference/billing.openapi.json get /realms/{realmId}/organizations/{organizationId}/contracts
openapi: 3.0.3
info:
  title: Billing
  version: 1.0.0
  description: >-
    Portão 3 billing API. Every endpoint requires a bearer token in the
    Authorization header (Authorization: Bearer <token>) unless its page states
    otherwise; see the Authentication guide. That requirement is not repeated
    per endpoint. Generated by tools/openapi from code (routes + security) and
    the hand-written spec (request/response bodies). Full billing surface —
    contracts, deals, invoices, statements, payment links, checkout and NFSe
    orchestration. (The product/supplier catalog moved to registry.) Confidence
    tiers: generated:typed=74 copied:manual=0 unknown=5.
servers:
  - url: https://api.billing.v2.portao3.com.br/
    description: production
  - url: https://api.billing.dev.3pers.com.br/
    description: development
security: []
tags:
  - name: Contracts
  - name: Deals
  - name: Invoices
  - name: Invoice Entries
  - name: Invoice Statements
  - name: NFSe Configuration
  - name: Payment Links
paths:
  /realms/{realmId}/organizations/{organizationId}/contracts:
    get:
      tags:
        - Contracts
      summary: Deprecated — List contracts
      description: >-
        Deprecated: use `GET .../deals`, filtering by `debitPartyOrgIds` or
        `debitPartyDocuments`; contracts are being removed.
      operationId: getRealmsByRealmIdOrganizationsByOrganizationIdContracts
      parameters:
        - name: realmId
          in: path
          required: true
          schema:
            type: string
        - name: organizationId
          in: path
          required: true
          schema:
            type: string
      responses:
        default:
          description: Undocumented response (no code type, no existing spec).

````

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