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

# Consultar cobrança

> Recupere status, valores e dados de pagamento de uma cobrança.



## OpenAPI

````yaml openapi.json GET /charges/{id}
openapi: 3.0.3
info:
  title: ASCENT Pay
  version: 1.0.0
  description: API pública de cobranças Pix, saques e saldo.
servers:
  - url: https://onlyascent.pro/api/v1
security:
  - bearerAuth: []
paths:
  /charges/{id}:
    get:
      summary: Consultar cobrança
      description: Recupere status, valores e dados de pagamento de uma cobrança.
      operationId: consultar-cobranca
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Consulta concluída.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Cobranca'
        default:
          description: Falha na requisição. Consulte error.code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Erro'
components:
  schemas:
    Cobranca:
      type: object
      properties:
        id:
          type: string
          format: uuid
        amount_cents:
          type: integer
        fee_cents:
          type: integer
        external_id:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        object:
          type: string
          enum:
            - charge
        status:
          type: string
          enum:
            - pending
            - paid
            - expired
        method:
          type: string
        description:
          type: string
        net_cents:
          type: integer
        paid_at:
          type: string
          format: date-time
          nullable: true
        checkout_url:
          type: string
          format: uri
        pix:
          type: object
          properties:
            copy_paste:
              type: string
            qr_code:
              type: string
              description: Imagem PNG em data URL.
          required:
            - copy_paste
            - qr_code
          nullable: true
      required:
        - id
        - amount_cents
        - fee_cents
        - external_id
        - created_at
        - object
        - status
        - method
        - description
        - net_cents
        - paid_at
        - checkout_url
        - pix
    Erro:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Chave asc_live_ criada no painel ASCENT.

````

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