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

# Entries do receiver



## OpenAPI

````yaml GET /ledger/receivers/{id}/entries
openapi: 3.1.0
info:
  title: Astron Pay API
  version: 1.0.0
  description: >-
    API B2B para integração de câmbio crypto ↔ BRL via PIX. Autentique com
    `x-api-key` + `x-api-secret`.
  contact:
    name: Astron Pay
    url: https://astronpay.co
    email: dev@astronpay.co
servers:
  - url: https://api.astronpay.co/api/v1
    description: Production
security:
  - apiKey: []
    apiSecret: []
  - bearerAuth: []
tags:
  - name: Fee Tiers
    description: Consulta e atualização das taxas do merchant.
  - name: Receivers
    description: CRUD, KYC, limites e wallet signing dos receivers.
  - name: Quote
    description: Cotações de payin e payout.
  - name: Payin
    description: Ordens de entrada (BRL → crypto).
  - name: Payout
    description: Ordens de saída (crypto → BRL).
  - name: Orders
    description: Consulta genérica de ordens.
  - name: Merchant Wallet
    description: Assinatura de transações com a wallet gerenciada do merchant.
  - name: Ledger
    description: Saldos, entries e liquidações.
  - name: Webhook Config
    description: Configuração de webhook e listagem de eventos.
paths:
  /ledger/receivers/{id}/entries:
    get:
      tags:
        - Ledger
      summary: Histórico de entries do receiver
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: page
          in: query
          schema:
            type: integer
            default: 1
        - name: limit
          in: query
          schema:
            type: integer
            default: 20
            maximum: 100
          description: Registros por página (máx 100).
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/LedgerEntry'
                  total:
                    type: integer
                  page:
                    type: integer
                  limit:
                    type: integer
        '404':
          description: Receiver não encontrado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    LedgerEntry:
      type: object
      required:
        - id
        - accountType
        - currency
        - amount
        - direction
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        accountType:
          type: string
          enum:
            - EXTERNAL
            - EXTERNAL_CRYPTO
            - RECEIVER_BANK
            - RECEIVER_BRL
            - RECEIVER_CRYPTO
            - MERCHANT_FEE
            - PLATFORM_FEE
            - PLATFORM_PIX_HOLDING
            - PLATFORM_CRYPTO_HOLDING
            - PLATFORM_OUTGOING
            - PLATFORM_SETTLEMENT
            - PLATFORM_EQUITY
            - PLATFORM_EQUITY_BRL
        currency:
          type: string
          example: BRL
        amount:
          type: string
          example: '1000.00'
        direction:
          type: string
          enum:
            - DEBIT
            - CREDIT
        idempotencyKey:
          type: string
        orderId:
          type: string
          format: uuid
          nullable: true
        settlementId:
          type: string
          format: uuid
          nullable: true
        createdAt:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
          example: VALIDATION_ERROR
        message:
          type: string
          example: Campo 'amountBrl' é obrigatório
        details:
          type: object
          additionalProperties: true
        requestId:
          type: string
          example: req_abc123
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
    apiSecret:
      type: apiKey
      in: header
      name: x-api-secret
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````