> ## 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.

# Listar cobranças

> Consulte da mais recente à mais antiga. created_before aplica um limite exclusivo à data de criação. A lista contém resumos.



## OpenAPI

````yaml openapi.json GET /charges
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:
    get:
      summary: Listar cobranças
      description: >-
        Consulte da mais recente à mais antiga. created_before aplica um limite
        exclusivo à data de criação. A lista contém resumos.
      operationId: listar-cobrancas
      parameters:
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: external_id
          in: query
          schema:
            type: string
        - name: status
          in: query
          schema:
            type: string
            enum:
              - pending
              - paid
              - expired
        - name: created_before
          in: query
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: Consulta concluída.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListaCobrancas'
        default:
          description: Falha na requisição. Consulte error.code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Erro'
components:
  schemas:
    ListaCobrancas:
      type: object
      properties:
        object:
          type: string
          enum:
            - list
        data:
          type: array
          items:
            $ref: '#/components/schemas/ResumoCobranca'
        has_more:
          type: boolean
      required:
        - object
        - data
        - has_more
    Erro:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
    ResumoCobranca:
      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
      required:
        - id
        - amount_cents
        - fee_cents
        - external_id
        - created_at
        - object
        - status
        - method
        - description
        - net_cents
        - paid_at
  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.