BTG Pactual Conta PJ API

The Conta PJ API from BTG Pactual — 5 operation(s) for conta pj.

Operations 5

GET /{companyId}/banking/accounts Get by company id banking accounts #
GET /{companyId}/banking/accounts/{accountId}/statements Get by company id banking accounts by account id statements #
GET /{companyId}/banking/accounts/statements Get by company id banking accounts statements #
GET /{companyId}/banking/accounts/{accountId}/balances Get by company id banking accounts by account id balances #
GET /{companyId}/banking/accounts/{accountId}/statements/pdf Get by company id banking accounts by account id statements pdf #

Documentation

📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Acquirers%20-%20PaymentLink/acquirers-paymentlink
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Acquirers%20-%20Salesprovider/acquirers-salesprovider
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/ANTECRED-Subcredenciadores/antecred-subcredenciadores
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Accounts/banking-accounts
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Cards/banking-cards
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20CCReceivables/banking-ccreceivables
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Collections/banking-collections
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20DDA/banking-dda
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20PaymentLink/banking-paymentlink
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20PaymentLinkRec/banking-paymentlinkrec
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Payments/banking-payments
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Payroll/banking-payroll
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Pix%20Autom%5Cxe1tico/banking-pix-automatico
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20PixCashin/banking-pixcashin
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Protest/banking-protest
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Split/banking-split
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/BankingHub%20-%20Open%20Finance%20Balance%20Refresh/bankinghub-open-finance-balance-refresh
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/CrediFlow%20-%20Ativos%20e%20Cess%5Cxf5es/crediflow-ativos-e-cessoes
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Consignado%20Privado/fidc-consignado-privado
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Credit%20Conciliation/fidc-credit-conciliation
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Document/fidc-document
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Eligibility/fidc-eligibility
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Motor%20de%20Credito/fidc-motor-de-credito
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Operation/fidc-operation
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Payment/fidc-payment
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Portability/fidc-portability
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Prepayment/fidc-prepayment
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Renegotiation/fidc-renegotiation
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Simulation/fidc-simulation
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Wallet/fidc-wallet
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/FIDC%20-%20Warranty/fidc-warranty
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Files/files
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/HUBFX%20-%20Cambio/hubfx-cambio
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/KGIRO%20-%20Leads%20de%20Cr%5Cxe9dito/kgiro-leads-de-credito
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Onboarding/onboarding
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/SCF%20-%20Colombia/scf-colombia
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/SCF%20-%20Risco%20Sacado/scf-risco-sacado
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/SCF-Financiers-Supplier/scf-financiers-supplier
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Solar-CreditAnalysis/solar-creditanalysis
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Solar-Workflow/solar-workflow
📖
Documentation
https://developers.empresas.btgpactual.com/docs/api-specs-target/Webhooks/webhooks

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/btg-pactual:btg-pactual-conta-pj-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

btg-pactual-conta-pj-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Banking - Accounts Conta PJ API
  version: '1'
  description: Endpoints da API de Recebíveis de Cartão de Crédito do BTG PACTUAL Empresas
  termsOfService: https://www.btgpactual.com/empresas/termos-e-politicas/
servers:
- url: https://api.sandbox.empresas.btgpactual.com
  description: Sandbox
- url: https://api.empresas.btgpactual.com
  description: Produção
tags:
- name: Conta PJ
paths:
  /{companyId}/banking/accounts:
    get:
      tags:
      - Conta PJ
      description: Consultar dados da conta
      parameters:
      - name: companyId
        in: path
        required: true
        schema:
          type: string
        description: CNPJ da empresa
        example: '30306294000145'
      - name: accountOrigin
        in: query
        required: false
        description: Origem das contas listadas
        schema:
          type: string
          enum:
          - OPEN_FINANCE
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        accountId:
                          type: string
                          example: 11111111111-208-1-22222222222
                        taxId:
                          type: string
                          example: '11111111111111'
                        bankCode:
                          type: integer
                          example: 208
                        branchCode:
                          type: string
                          example: '1'
                        number:
                          type: string
                          example: '3333333333'
                      title: account
                title: accountsResponse
      security:
      - read:
        - brn:btg:empresas:banking:accounts
      x-docs-url: https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Accounts/consultar-dados-da-conta
      summary: Get by company id banking accounts
      x-summary-source: derived
      operationId: getByCompanyIdBankingAccounts
      x-operation-id-source: derived
  /{companyId}/banking/accounts/{accountId}/statements:
    get:
      tags:
      - Conta PJ
      description: Consultar extrato por accountId
      parameters:
      - name: companyId
        in: path
        required: true
        schema:
          type: string
        description: CNPJ da empresa
        example: '30306294000145'
      - name: accountId
        in: path
        required: true
        description: id da conta
        schema:
          type: string
          example: 29964797000111-555-1-777776752
      - name: startDate
        in: query
        required: true
        description: Data para inicio da Listagem
        schema:
          type: string
          example: '2099-12-15'
      - name: endDate
        in: query
        required: true
        description: Data para fim da Listagem
        schema:
          type: string
          example: '2099-12-19'
      - name: type
        in: query
        required: true
        schema:
          type: string
          enum:
          - simple
          - withdraw-applications
          - yields
        description: Tipo de listagem. simple = Sem rendimentos. withdraw-applications = Com rendimentos, aplicações e resgates. yields = Com rendimentos
      - name: pageSize
        in: query
        required: false
        description: Quantidade de registros por página
        schema:
          type: string
          example: '1000'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  _links:
                    type: object
                    properties:
                      self:
                        type: object
                        properties:
                          href:
                            type: string
                            example: https://api.empresas.btgpactual.com/29964797000111/banking/accounts/29964797000111-555-1-777776752/statements?startDate=2099-12-15&endDate=2099-12-19&type=simple&pageSize=1000
                      next:
                        type: string
                        example: null
                    title: Link
                  data:
                    type: object
                    properties:
                      accountNumber:
                        type: string
                        example: 777776752
                      balance:
                        type: object
                        properties:
                          initial:
                            type: number
                            example: 30.03
                          current:
                            type: number
                            example: 15.53
                          final:
                            type: number
                            example: 15.53
                        title: Balance
                      dailyMovements:
                        type: array
                        items:
                          type: object
                          properties:
                            date:
                              type: string
                              format: date-time
                              example: '2024-03-07T00:00:00'
                            balance:
                              type: number
                              example: 3
                            movements:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: integer
                                    example: 1234
                                  type:
                                    type: string
                                    example: debit
                                  category:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        example: PIX
                                      description:
                                        type: string
                                        example: PIX
                                  description:
                                    type: string
                                    example: Pix realizado
                                  dateHour:
                                    type: string
                                    format: date-time
                                    example: '2024-05-08T10:49:15Z'
                                  amount:
                                    type: number
                                    example: 0.25
                                  descriptionDetails:
                                    type: string
                                    example: Banco 201 | CPF ***.926.338-**
                                  txId:
                                    type: string
                                    description: Identificador da transação.
                                    example: fd64be97df4546a7ab2ab1
                                  endToEndId:
                                    description: Identificador do pix. Presente somente em caso de transações do tipo PIX
                                    type: string
                                    example: E2302385204412985
                                  returnInfo:
                                    type: string
                                    example: null
                                  details:
                                    type: object
                                    properties:
                                      originId:
                                        type: string
                                        description: Identificador de origem da transação.
                                        example: 46a20277-0709-4167-a10a-eb39e468c35a
                                      barcode:
                                        type: string
                                        description: Código de barras. Presente somente em crédito de boleto
                                        example: 00020101021226860010000000000000000000
                                      ourNumber:
                                        type: string
                                        description: Nosso número do boleto. Presente somente em crédito de boleto
                                        example: '12345678901234567890'
                                title: Movement
                          title: DailyMovement
                    title: Data
                title: StatementsResponse
      security:
      - read:
        - brn:btg:empresas:banking:accounts
      x-docs-url: https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Accounts/consultar-extrato-por-account-id
      summary: Get by company id banking accounts by account id statements
      x-summary-source: derived
      operationId: getByCompanyIdBankingAccountsByAccountIdStatements
      x-operation-id-source: derived
  /{companyId}/banking/accounts/statements:
    get:
      tags:
      - Conta PJ
      description: Consultar extratos
      parameters:
      - name: companyId
        in: path
        required: true
        schema:
          type: string
        description: CNPJ da empresa
        example: '30306294000145'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  _links:
                    type: object
                    properties:
                      self:
                        type: object
                        properties:
                          href:
                            type: string
                            example: https://api.empresas.btgpactual.com/29964797000111/banking/accounts/29964797000111-555-1-777776752/statements?startDate=2099-12-15&endDate=2099-12-19&type=simple&pageSize=1000
                      next:
                        type: string
                        example: null
                    title: Link
                  data:
                    type: object
                    properties:
                      dailyMovements:
                        type: array
                        items:
                          type: object
                          properties:
                            date:
                              type: string
                              example: '2024-07-16T00:00:00'
                            balance:
                              type: integer
                              example: 55555
                            movements:
                              type: array
                              items:
                                type: object
                                properties:
                                  account:
                                    type: object
                                    properties:
                                      accountNumber:
                                        type: string
                                        example: 005555999
                                      branch:
                                        type: string
                                        example: 50
                                      bank:
                                        type: integer
                                        example: 208
                                      bankName:
                                        type: string
                                        example: BANCO BTG PACTUAL S.A.
                                  id:
                                    type: integer
                                    example: 2392839223
                                  type:
                                    type: string
                                    example: credit
                                  category:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        example: OTHERS
                                      description:
                                        type: string
                                        example: Outros
                                  description:
                                    type: string
                                    example: CREDITO CCB
                                  dateHour:
                                    type: string
                                    example: '2024-07-16T22:58:55.85Z'
                                  amount:
                                    type: integer
                                    example: 505050
                                  descriptionDetails:
                                    type: string
                                    example: Descrição
                                  endToEndId:
                                    type: string
                                    example: E2302385204412985
                                  returnInfo:
                                    type: string
                                    example: Return info
                                  details:
                                    type: object
                                    properties:
                                      originId:
                                        type: string
                                        example: 46a20277-0709-4167-a10a-eb39e468c35a
                                title: NoIDMovements
                          title: NoIDDailyMovements
                    title: NoIDData
                title: StatementsNoIDResponse
      security:
      - read:
        - brn:btg:empresas:banking:accounts
      x-docs-url: https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Accounts/consultar-extratos
      summary: Get by company id banking accounts statements
      x-summary-source: derived
      operationId: getByCompanyIdBankingAccountsStatements
      x-operation-id-source: derived
  /{companyId}/banking/accounts/{accountId}/balances:
    get:
      tags:
      - Conta PJ
      description: Consultar saldo
      parameters:
      - name: companyId
        in: path
        required: true
        schema:
          type: string
        description: CNPJ da empresa
        example: '30306294000145'
      - name: accountId
        in: path
        required: true
        description: ID da conta
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  accountId:
                    type: string
                    example: 33333333333333-208-50-1111111111
                  available:
                    type: object
                    properties:
                      amount:
                        type: number
                        format: float
                        example: 5555555.72
                      currency:
                        type: string
                        example: BRL
                  blocked:
                    type: object
                    properties:
                      amount:
                        type: number
                        format: float
                        example: 10
                      currency:
                        type: string
                        example: BRL
                      blockedDate:
                        type: string
                        format: date-time
                        example: null
                title: balancesResponse
      security:
      - read:
        - brn:btg:empresas:banking:accounts
      x-docs-url: https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Accounts/consultar-saldo
      summary: Get by company id banking accounts by account id balances
      x-summary-source: derived
      operationId: getByCompanyIdBankingAccountsByAccountIdBalances
      x-operation-id-source: derived
  /{companyId}/banking/accounts/{accountId}/statements/pdf:
    get:
      tags:
      - Conta PJ
      description: GET pdf base64
      parameters:
      - name: companyId
        in: path
        required: true
        schema:
          type: string
        description: CNPJ da empresa
        example: '30306294000145'
      - in: path
        name: accountId
        required: true
        schema:
          type: string
        description: ID da conta
      - in: query
        name: startDate
        required: true
        schema:
          type: string
          format: date
        description: Data inicial da filtragem de extrato
      - in: query
        name: endDate
        required: true
        schema:
          type: string
          format: date
        description: Data final da filtragem de extrato
      - in: query
        name: order
        required: true
        schema:
          type: string
          enum:
          - desc
          - asc
        description: Ordem de listagem
      - in: query
        name: type
        required: true
        schema:
          type: string
          enum:
          - simple
          - withdraw-applications
          - yields
        description: Tipo de listagem. simple = Sem rendimentos. withdraw-applications = Com rendimentos, aplicações e resgates. yields = Com rendimentos
      responses:
        '200':
          description: Successful response
          content:
            application/pdf:
              schema:
                type: object
                properties:
                  data:
                    type: string
                    example: PDF encodado em base64
                title: pdfResponse
      security:
      - read:
        - brn:btg:empresas:banking:accounts
      x-docs-url: https://developers.empresas.btgpactual.com/docs/api-specs-target/Banking%20-%20Accounts/get-pdf-base-64
      summary: Get by company id banking accounts by account id statements pdf
      x-summary-source: derived
      operationId: getByCompanyIdBankingAccountsByAccountIdStatementsPdf
      x-operation-id-source: derived
components:
  securitySchemes:
    read:
      type: oauth2
      flows:
        authorizationCode:
          tokenUrl: https://id.btgpactual.com/oauth2/token
          authorizationUrl: https://id.btgpactual.com/oauth2/authorize
          scopes:
            brn:btg:empresas:banking:accounts: Consultar dados de conta, extratos e saldo
x-reassembled-from:
  source: https://developers.empresas.btgpactual.com/docs/api-specs-target/
  method: Operation objects decoded verbatim from the "api" payload that the provider's Docusaurus OpenAPI docs embed in each reference page chunk (/assets/js/*.js); grouped by info.title; jsonRequestBodyExample and postman keys dropped.
  chunks:
  - https://developers.empresas.btgpactual.com/assets/js/5a97ba53.1471e4bb.js
  - https://developers.empresas.btgpactual.com/assets/js/b7d82902.292704e2.js
  - https://developers.empresas.btgpactual.com/assets/js/0b1a7088.8d8865ed.js
  - https://developers.empresas.btgpactual.com/assets/js/1e5a1ce1.ffa9b211.js
  - https://developers.empresas.btgpactual.com/assets/js/53463653.baa46348.js