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

# Consultar cobrança

> Devolve a cobrança com o status atual. Use como confirmação do webhook. Permissão: `charge:read`.



## OpenAPI

````yaml /api-reference/openapi.json get /charges/{id}
openapi: 3.0.3
info:
  title: Nuvra API
  version: '1.0'
  description: >-
    API da Nuvra Payments: cobranças Pix, saldo e saques. Valores sempre em
    centavos inteiros. Sandbox (`nvr_dev_`) e produção (`nvr_live_`) usam a
    mesma base; quem decide o ambiente é a chave.
servers:
  - url: https://nuvrapayments.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Cobranças
  - name: Sandbox
  - name: Saldo e saques
paths:
  /charges/{id}:
    get:
      tags:
        - Cobranças
      summary: Consultar cobrança
      description: >-
        Devolve a cobrança com o status atual. Use como confirmação do webhook.
        Permissão: `charge:read`.
      operationId: consultarCobranca
      parameters:
        - in: path
          name: id
          required: true
          schema:
            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$
            type: string
          description: Id do recurso.
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  amount:
                    minimum: 1
                    type: integer
                    description: Valor em centavos. Mínimo 100 (R$ 1,00).
                    example: 15000
                  createdAt:
                    format: date-time
                    type: string
                    description: Quando a cobrança foi criada.
                    example: '2026-12-03T12:00:00.000Z'
                  currency:
                    enum:
                      - BRL
                    type: string
                    description: Moeda.
                  customer:
                    additionalProperties: false
                    properties:
                      document:
                        nullable: true
                        type: string
                        description: >-
                          CPF (11 dígitos) ou CNPJ (14, numérico ou
                          alfanumérico). Se enviado, é validado com dígito
                          verificador.
                        example: '12345678909'
                      email:
                        nullable: true
                        type: string
                        description: E-mail do cliente.
                        example: maria@example.com
                      name:
                        nullable: true
                        type: string
                        description: Nome do cliente.
                        example: Maria Silva
                      phone:
                        nullable: true
                        type: string
                        description: >-
                          Telefone em qualquer formato brasileiro, com ou sem
                          +55. Normalizado para E.164.
                        example: '+5511999998888'
                    required:
                      - name
                      - document
                      - email
                      - phone
                    type: object
                    description: >-
                      O cliente. Opcional no Pix: pode omitir o objeto inteiro.
                      `""` ou `null` em qualquer campo contam como ausente.
                  endToEndId:
                    nullable: true
                    type: string
                    description: >-
                      Identificador da liquidação Pix (formato `E...`). `null`
                      até o banco informar. Nunca é inventado.
                  externalReference:
                    nullable: true
                    type: string
                    description: 'A sua referência: chave de idempotência e de conciliação.'
                    example: pedido-4821
                  fee:
                    minimum: 0
                    type: integer
                    description: Taxa, em centavos.
                    example: 149
                  id:
                    type: string
                    description: Id da cobrança.
                    example: ord_...
                  method:
                    enum:
                      - pix
                    type: string
                    description: Método da cobrança.
                  net:
                    minimum: 0
                    type: integer
                    description: Valor líquido (`amount − fee`), em centavos.
                    example: 14851
                  paidAt:
                    format: date-time
                    type: string
                    description: Quando foi paga. Ausente ou `null` antes do pagamento.
                  payer:
                    additionalProperties: false
                    nullable: true
                    properties:
                      bank:
                        additionalProperties: false
                        nullable: true
                        properties:
                          ispb:
                            nullable: true
                            type: string
                            description: ISPB do banco (8 dígitos).
                          name:
                            nullable: true
                            type: string
                            description: Nome do banco.
                        required:
                          - ispb
                          - name
                        type: object
                        description: Banco do pagador.
                      document:
                        nullable: true
                        type: string
                        description: CPF ou CNPJ do pagador, mascarado.
                      documentType:
                        enum:
                          - cpf
                          - cnpj
                        nullable: true
                        type: string
                        description: Preenchido só quando o documento vem completo.
                      name:
                        nullable: true
                        type: string
                        description: Nome do pagador.
                    required:
                      - name
                      - document
                      - documentType
                      - bank
                    type: object
                    description: >-
                      Quem pagou, segundo o banco. Preenchido depois do
                      pagamento; `null` antes.
                  pix:
                    additionalProperties: false
                    properties:
                      copyPaste:
                        nullable: true
                        type: string
                        description: Código Pix copia e cola.
                        example: 00020126...5204
                      expiresAt:
                        format: date-time
                        nullable: true
                        type: string
                        description: Quando o QR Code expira.
                        example: '2026-12-03T13:00:00.000Z'
                      qrCodeBase64:
                        nullable: true
                        type: string
                        description: Imagem do QR Code (data URL).
                      qrCodeUrl:
                        nullable: true
                        type: string
                        description: URL da imagem do QR Code, quando disponível.
                      txid:
                        nullable: true
                        type: string
                        description: Identificador Pix da cobrança.
                    required:
                      - copyPaste
                      - qrCodeBase64
                      - qrCodeUrl
                      - expiresAt
                      - txid
                    type: object
                    description: Dados para o cliente pagar.
                  status:
                    enum:
                      - pending
                      - approved
                      - refused
                      - expired
                      - refunded
                    type: string
                    description: >-
                      `pending` → `approved` (paga) · `expired` · `refused` ·
                      `refunded`.
                    example: pending
                required:
                  - id
                  - externalReference
                  - status
                  - amount
                  - fee
                  - net
                  - endToEndId
                  - currency
                  - method
                  - customer
                  - payer
                  - pix
                  - createdAt
                type: object
          description: Cobrança.
        '401':
          description: Chave ausente, inválida ou revogada (`unauthorized`).
        '403':
          description: >-
            Sem permissão para esta operação (`insufficient_scope` ou
            `api_disabled`).
        '404':
          description: Cobrança não encontrada na sua conta (`not_found`).
        '429':
          content:
            application/json:
              schema:
                properties:
                  error:
                    enum:
                      - rate_limited
                    type: string
                  message:
                    type: string
                  retryAfter:
                    enum:
                      - 1
                      - 2
                    type: integer
                required:
                  - error
                  - message
                  - retryAfter
                type: object
          headers:
            Retry-After:
              schema:
                pattern: ^[1-2]$
                type: string
              description: Segundos até poder repetir.
          description: >-
            Muitas requisições (`rate_limited`). Respeite o header
            `Retry-After`.
        '503':
          description: Indisponível no momento. Tente de novo em alguns segundos.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Chave de API: `nvr_dev_...` (sandbox) ou `nvr_live_...` (produção).'

````

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