---
title: "CounterpartyAgent"
url: "https://devcenter.stone.com.br/apis/banking-statement/versions/6cf07218-05b9-47de-a54e-a2fcbd87ce72/schemas/CounterpartyAgent"
---

> Full API specification: https://devcenter.stone.com.br/apis/banking-statement/versions/6cf07218-05b9-47de-a54e-a2fcbd87ce72.md

# CounterpartyAgent

Informações sobre a contraparte envolvida na transação.

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Banking Statement API
  version: 1.0.0
servers:
  - url: https://api.stone.com.br
    description: Produção
  - url: https://sdx.api.stone.com.br
    description: Sandbox
components:
  schemas:
    CounterpartyAccount:
      type: object
      description: Detalhes da conta da contraparte.
      properties:
        account_code:
          type: string
          description: Número/código da conta.
        branch_code:
          type: string
          nullable: true
          description: Código da agência, se aplicável.
        account_type:
          type: string
          description: "Tipo de conta. Valores observados: PG, CC, PP, CD, CG."
    CounterpartyEntity:
      type: object
      description: Detalhes de identidade da contraparte.
      properties:
        name:
          type: string
          description: Nome da contraparte.
        document_type:
          type: string
          description: "Tipo de documento (ex: cpf, cnpj)."
        document:
          type: string
          description: Número do documento.
    CounterpartyInstitution:
      type: object
      description: Detalhes da instituição financeira.
      properties:
        ispb:
          type: string
          description: Código ISPB (identificador do sistema de pagamentos brasileiro).
        compe:
          type: string
          description: Código COMPE (identificador do banco).
        name:
          type: string
          description: Nome da instituição.
    CounterpartyAgent:
      type: object
      description: Informações sobre a contraparte envolvida na transação.
      properties:
        account:
          $ref: "#/components/schemas/CounterpartyAccount"
        entity:
          $ref: "#/components/schemas/CounterpartyEntity"
        institution:
          $ref: "#/components/schemas/CounterpartyInstitution"
```
